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.
Wow, almost 400 geniuses all in one place! How astounding!
It's a kind of magic!!!
This comment is hidden because it contains spoiler information about the solution
too brilliant
Fantastic! Bravo! I spent more time exploring your code than writing my own. And I learned so many useful and interesting things from these refined solution!
Nice solution !
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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