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.
Optimization / memoization required
How do you know how many test you have gone through before time-out?
The user is not active anymore.
Removed input validation.
Removed input validation.
Forbid the input modification.
Read this, post your code here following the directions there.
My solution is an array wich first element is the highest value of the array and the second element is the second highest value of the array.
Have you removed the max value from the list somehow? If you did, then the list without that value is what the control function used to get the two max values and that's why it expects a different result.
Sorry, I dont understand what you mean with the word mutate.
Did you mutate the list?
I dont understand why for the input
[52359, 86937, 63480, 43951, 26522, 14543, 97719, 75202, 17498, 76899, 38367, 6940, 52720, 71337, 57809, 98606, 827, 52453, 65904, 36280, 77386, 4433, 55644, 20134, 95284, 43207, 58752, 19164, 5214, 80570, 66083, 42417, 36423, 95450, 79775, 61809, 61856, 79566, 30627, 68128, 13701, 97031, 60769, 33254, 27015, 41398]
I received the following error message
[98606, 97719] should equal [97719, 97031]
The two highest values are 98606 and 97719 and it's easy to check that it's true.
I have used python. Thanks!
I really enjoyed this Kata! More Kata of security please!
It's not very difficult but maybe it would be a 7 kyu. Nice kata, I have learned some features of python that I didn't know.
Loading more items...