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.
This comment is hidden because it contains spoiler information about the solution
According to reality, this solution is O(m + n) which is the fastest it can get. Yours is O(m * n) which is one of the slowest.
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.
Loading more items...