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.
just else and one x.count are extra. Much better to call functoin once.
If there are no good ideas ("as is often the case") then it traverses array only once.
This always traverses array two full times.
Yes, it was.
Solution too slow?
I'm getting this error -
Process exited prematurely with a SIGKILL signal.
What does this mean?
Since you can print the input, check with specific test is failing.
This comment is hidden because it contains spoiler information about the solution
Your code has problems with big numbers. There are no zeroes in the random tests, so that's not a problem.
Thx Chrono
got it. Thanks :)
11 (and the others) is not a substring. You're removing the middle numbers. A substring is formed with neighboring digits.
It's written
But why not other combinations like -
Am I missing something?
Awesome!