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.
almost had this one dammit
I'll get to this level eventually! haha
there's no slicing in there.
But this involves slicing in line 4...
Wasn't it a kata requirement to not use slices? 😕
Depends on your definition of "doesn't work."
pythonic code
Not only this is hard to read, but the performance is not very good.
balanced_num = balancedNum
it provides an alias to the snake_case version of the camelCase function name.
Example of function name aliasing:
p = print
p("Hello, World!")
Has anybody tested the performance of this ? it feels to me like recursivity would be less efficient than a regular loop here
Starting the loop from 0 is unecessary, wasting an iteration. Just a small detail
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's shocking how slow this solution is.
Our solutions have the same time complexity but different readability
doesn't work anymore
Loading more items...