13
grutte_pier
11 24
743/ 845
Jakob van Bethlehem
Last seen 5 years ago
Member for 10 years, 4 months
Difficulty Normal
Best reviews / Newest reviews
First-AbnerZheng24 1
You could summarise the last line by > return not bool(stack) More
First-zhangjian
Interesting method to get out the words! More
My First Recursive function!-DavidJones
The extra 'int' in the last line is really not needed, as the inputs are already int More
First-flex
You could skip calculation of the average, because _len(l)_ will be the same for each row, or in other words: _index(max(sum))==index(max(avg))_ More
First-Eto
Just in case you didn't check other solutions yet: the builtin _count_ method does exactly what you explicitly typed in the loop More
First-Screw
Very creative how you have used some algebraic properties of numbers to determine whether the number is divisible. More
bobriko's one-lines-suic
This may well be the fastest solution; nice find! More
First-bluewaters
You were probably not aware yet of the _**_ operator in Python? See https://docs.python.org/2/tutorial/introduction.html#id1 More
First-AlexGiesbrecht
Excellent solution, reminding us all of the possibility to add a step to the slice operator More
Second-luvs
Much better than your first :D More
First-A.Garcia
There are quite a few 'non-Pythonic' elements to this: * _if array==[]_ is exactly equivalent to just using _if array_ * in Python you really shouldn't write a loop over an index, which is then used to access a list (unless you really, really can not do otherwise). Instead you should over the list d More
1 2 3 4
5