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.
cool
This comment is hidden because it contains spoiler information about the solution
my solution:
if(max_sum > sum){
continue;
} else {
max_sum = new_sum;
max_index = n;
}
your solution:
if (sm > mx_sm) {
mx_sm = sm; mx_nd = u;
}
my english is poor, so i can`t write my piont
I don't see your point.
the last part:
if(max_sum > sum){
continue;
} else {
max_sum = new_sum;
max_index = n;
}
the result is wrong;
it's no working, when i click 'run tests', but click 'submit' is success. in javascript.