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
The comment in the initial code says to move 1's to the end.
A really cool brainteaser. At first glance I did not think it was possible to do with regular expressions. I've been unable to get this kata off my mind, and I am very happy to finally have solved it.
Could possibly use more test cases than 4.
Does it have random tests?
I get a similar issue in coffeescript. I pass the hardcoded tests, but get the same error for all random tests:
This comment is hidden because it contains spoiler information about the solution
I get an error running test, but get a pass when submitting solution
the wording of the question, seems to written by a non-native english speaker
One of the provided tests are incorrect.
Verification tests do not provide an error message