5
XingYi Xie
Last seen 5 years ago
Member for 10 years, 3 months, 14 days
Difficulty Normal
I've been brought here by my friend a long time ago. But I just started learning Python as I signed in the course "An Introduction to Interactive Programming in Python" at Coursera, June, 2015.
Great! Clear and easy to understand~ It's so cool to solve the problem just in 1 line without any complicated structures.
More
Great! So cleaver! So that the solution don't need to check if it's an empty array.
More
Clear and creative. The solution with sets and binary bitwise operations? Thanks, I've really learned from your code.
More
Great! I've also considered about this solution, but I couldn't use join function correctly. Oh, thanks! Now I know.
More
不错哈~其实不用写循环的,用sum(array[::2])就行啦~
(It's nice, but you may not use loops, you can simply use sum(array[::2]) )
More
Although I don't understand, it's simple and great! Loop in a line and creating list?
More