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.
I get it now, [26945, 0, 3] will give 69245, wich is > 26945.
Thank you very much :D!
The solution I dont understand is not this one [29917, 0, 1].
It it this one [26945, 3, 0], if you want i as small as possible it should be [26945, 0, 3].
Sorry I'll go for the question next time, but I still dont get it.
Both cases are 2 (index 0) inserted at the index of 0 (index 1 and 3).
What am I missing?
Can someone explain me why both of these case doesnt work the same way?
testing(209917, "[29917, 0, 1]");
testing(269045, "[26945, 3, 0]");
The way I understand it:
1): You find the smallest number (0)
2): You find the index of the digit i as small as possible (0 and 0)
3): You find the index of j, both the zeros (1 and 3)
In both cases you need to swap a Zero with the First element, why are the results [0,1] and [3,0] not in the same order?
Thanks :)
My code seems to work but when I attempt, the submit button doesnt appear.
The resutl I get.
Time: 1616ms Passed: 1 Failed: 0 Exit Code: 139
Test Results:
your_pick_peaks_function
should_pass_the_sample_test_cases_provided_in_the_description