13
Last seen 6 months ago
Member for 11 years, 5 months, 21 days
Difficulty Normal
Wow, this is an exciting piece of solution. Very difficult to follow, but rather though-invoking. I never thought about using lambda with recursiveness. Great!
More
Very clear code. Consider the use of built-in functions such as str.isupper(), such as
... if i.isupper(): ...
Also consider the use of list comprehensions.
More
This solution, though difficult to interpret, is actually really inspiring. I was thinking "I'm sure there's no way to write an answer within 10 lines for this task" while doing the quiz, but...
All I can say is "Hello world"...
More
Good code. The last else statement can either be deleted or merged with the last line without compromising readability.
More
Awesome solution. I'm sure you could make it a one-liner if you wanted to.
More
1. "not len(array)" is equivalent to "not array"
2. index slicing is better than looping
More
Great insight of the pattern between first and last day of the year and the frequency. Bravo!
More
Great solution! Just one quick comment, bin itself returns a string type --- no need to convert it string.
More
Good solution! However, bin itself (a string) has the method count as well. No need to convert it to list anymore ;-D
More
(Random review)
A mathematical solution of linear growth, even with a proof. Good work!
More
1. the int() call is unnecessary
2. the last return statement is unnecessary
More