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.
The object ROMAN is not guaranteed to be iterated through in the order it was declared according to JS specification, you should instead rely on an array, or just convert using
Object.keys(ROMAN).map(k => [k, ROMAN[k]]).sort((a, b) => b[1] - a[1])
.Can't do
!(x+y)
, because if x and y match, you'll get a false positive.