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.
An s = "A man, a plan, a canal – Panama" should be added to the test cases.
This fails if s = "A man, a plan, a canal – Panama". This should be part of the acceptance.
This solution fails due to rounding errors when converting between float64 and int with large numbers
Fails for a solution where N == 0. Returns true, but should return false.
adding:
if (n == 0) return false;
fixes it, but it's not as pretty...
I've tried a few solutions, but I can't get it to complete either. I wonder if something has changed.