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 "if" statement accounts for those values by subtracting a number from the sum if it is to the left of a larger number
for instance...
MCMXC = [1000, 100, 1000, 10, 100]
if(data[numbers[i]] < data[numbers[i+1])... this is triggered when data[numbers[1]] AKA 100 is less than data[numbers[1+1]] AKA 1000
so...sum += data[numbers[1+1]] - data[numbers[1]] AKA 1000 - 100