40
Awesome Team
Alexander Lyabah
http://www.checkio.org/user/oduvan/
Last seen 1 day ago
Member for 13 years, 11 months, 6 days
Difficulty Easy
love it!
I think those two functions have something in common :)
Line 3: I think you don't need function list here
More
pretty straight forward
You can replace lines 22:24 by
return len(stack) <= 0
More
I like the idea here of not using the third function
http://www.checkio.org/mission/min-max/publications/samulih/python-27/first/
More
I've just found out that definition of `str.count` is different than `list.count`
>>> help(list.count)
count(...)
L.count(value) -> integer -- return number of occurrences of value
>>> help(str.count)
count(...)
S.count(sub[, start[, end]]) -> int
More
we are looking for the best solution for this mission.
Upvote if you like it
More
the fact of using
checkio=lambda*a:
instead of
def checkio(a):
make it look like puzzle for me
More
+1 for the right and clear solution
-1 I would do lambda as an main function only for puzzle solution :)
More
idea was stolen from http://www.checkio.org/mission/end-of-other/publications/Faibbus/python-3/first/
More