Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
That's not entirely true. I have some experience in programming, but i'm learning Python now too, just like you.
I found that problem difficult, yet very interesting. Good luck!
I have been a memeber since last year when I just started to learn Python. You are a experienced programmer! And I want to delve into that 3kyu lift problem tonight :)
Congratulations! I always love the feeling when i get that big green button after having wrapped my mind around a difficult problem.
I've only been a member for a few weeks. This took me just a couple of hours, but there are other 3-kyu problems i couldn't yet solve. (This one took me some 12 hours, for example: https://www.codewars.com/kata/58905bfa1decb981da00009e/train/python .)
I looove recursion. It is often the first thing that comes to mind. There are usually better algorithms, but in this particular case this was the right one. (I think.)
By the way, you're the first follower i have! Thank you! I'll do my best not to disappoint you. :)
yep:) I've been working on it since last year and just solved it today :)
Great minds think alike? :)
me the same
i've spent 2 hours cluelessly till i used stacks...then i saw this way. Awesome
thanks
result
is a list, and in python,[]
(the empty list) is evaluated toFalse
when cast to boolean.bool([]) -> False
bool(['a']) -> True
Hi! Could you tell me what does the "if result" mean? And why do you use it here?
good idea