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.
think there's a bug in your random 'submit' test, i run on this array :
[-13,-58,-99,-77,-75,-96,-71,-53,-37]
and it was expecting to have a result of 62
most of the solutions (mine included) would fail if they tried "up" first because of the last test having mulitple possible path (the 'up' first would be a valid but longer path than expected solution).
should add some test case in the same spirit for defeating all solution that relies on trying the same direction first.
realizing i should have simply used a function like
and declares add/sub/mult/div's arguments in regular order