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
This comment is hidden because it contains spoiler information about the solution
Mark your post as having spoiler content next time, please.
About your code, the range is wrong and why are you using that filter for? Those things are what makes your code so slow.
This comment is hidden because it contains spoiler information about the solution
Either you're using recursion / looping infinitely, or your algorithm is very slow. I'd bet it's the first option, I'm passing JS tests in 2 secs with inefficient algorithm. Try to figure it out with sys-out printlns.
Hi,
Basic tests passed, but I have random tests error:
Execution Timed Out (16000 ms)
How can I solve this??
too many random test, it makes no sense