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.
Really nice solution. It's always a pleasure to learn from others with more skill - bravo!
What do you mean by chunks? Chunks variable in his code is a list, which you also used for the same purpose in your code.
I am somewhat new to Python and this is the first 4 kyu kata I am able to solve. Is there any reason why everyone uses "chunks" in their code?
At first glance this threw me for a loop, but after reading the comments and taking some time to understand this, I'm glad places like this exist. I think I took the same approach for determining numbers but it took me 60+ lines to do it.
but why
cool
It looks short and cool, but it works very slowly, because of brute force and sort :(
Yours is very nice!
excellent
The answer is simple: it does not.
Nice. This was what I had in my mind for the first 20 minutes of trying to solve this one!
I don't understand the difference between len(word) > i + 1 and len(word) > i in this case would you mind explaining me please ? For me it does the exact same thing and i can't figure how it manage the shortest words :/
Can you please provide an expanded of version ( without list comprhension ) of this code, it looks very interesting, however i have difficulty expanding it :/
That's very kind of you Lucas. I only started learning python a few weeks ago and probably diving in too much to things when I don't have the real basics down without thinking about them. These katas are fun but usually I end up writing what I call "BASIC" brute force solutions using python, at least I sometimes have an idea "how" it should work, like this solution here I had made notes along those lines but whereas this person actually implemented it so cleanly I ended up with a big mess of code trying to handle specific cases
so seeing how you guys get on is kind of inspiring AND depressing at the same time :)
You are well on your way to being a great programmer. You don't lack an innate capability or intelligence if you got this far!
Loading more items...