That's because you're mutating the input, and the control function takes the same mutated input to calculate the expected value.
The input array should not be modified!
That's in the description.
This comment is hidden because it contains spoiler information about the solution
Read this: https://docs.codewars.com/training/troubleshooting/#print-input
I don't understand how to look at the input data for this test. The rest of the tests pass.
Your code returned the first, wrong value instead of the expected one.
What : 'First a of in' should equal 'First A Of In' ???
Hi! This kata = 8 level
Loading collection data...
That's because you're mutating the input, and the control function takes the same mutated input to calculate the expected value.
That's in the description.
This comment is hidden because it contains spoiler information about the solution
Read this: https://docs.codewars.com/training/troubleshooting/#print-input
I don't understand how to look at the input data for this test. The rest of the tests pass.
Your code returned the first, wrong value instead of the expected one.
What :
'First a of in' should equal 'First A Of In' ???
This comment is hidden because it contains spoiler information about the solution
Hi! This kata = 8 level