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.
I just checked your solution. Maybe it seemed like 5 Kyu to you because you made it complicated yourself. A single
string.replace
with a singleRegExp
would've been sufficient to match and parse all the quantities and measures.2 and 4 are not in diagonal from 1.