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.
Well it is an infinit loop. The only thing that makes it NOT infinit is that return also acts as break.
Which makes it a potential bug.
hardcore
hard
And who told you otherwise? I just said it wasn't an infinite loop as you claimed.
yeah obviously but its completely useless to have an infinite loop that runs once WHEN IT DOESNT EVEN NEED TO EXIST
It's not an infinite loop, in fact, it only runs once.
Infinite loop and pass? how in the world did 11 people get this?
It's up to the author to make sure users do what they are supposed to do. If it's possible to bypass the requirements, it's the author's responsability.
Read the description. Then read it again.
You can even check kata's title.
Doing what you are asked for is a part of the task, at least in my book. (try it at job interview)
Because tests don't cover this properly does not mean you should abuse that.
In fact making a simple list comp takes away all the challenge here.
This comment is hidden because it contains spoiler information about the solution
If the solution it's here means it passes the tests so either you or the kata are wrong, not the algorithm.
How did 11 people come up with this answer? :\
This comment is hidden because it contains spoiler information about the solution
Kata description asks to remove values from given array, not create a new one
Normally to "go to the next one" that's what
while
loop condition if for, but doing it withbreak
keyword is fine too. And yep,break
's only use in python is to break out of loop.Loading more items...