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.
Guys, correct me if im wrong but this solution proposes to use regex-based replaceAll() in a loop, which compiles and applies regex for every single char, which is, well, slow.
Big integers should be banned for this kata imo. Otherwise it's not about the algorithm but about how much memory you have.