You need to sign in or sign up before continuing.×
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. Thank you!
The "[100, 150, 350, 400] should equal [100, 200, 300, 400]" means that you solution returned
[100, 150, 350, 400]
, while the answer expected by tests is[100, 200, 300, 400]
. It does not say anything about whether the test case is valid or not, because we do not know what was the input of the test case. All we know is that the answer returned by your solution has two incorrect elements.Hello,
I noticed that some of the test cases in the task seem to be incorrect based on the problem description. Specifically:
[100, 150, 350, 400] should equal [100, 200, 300, 400] – however, this sequence has two incorrect elements, which contradicts the task's rule that only one element can be incorrect.
[200, 250, 300, 350] should equal [100, 200, 300, 400] – this seems to be an issue where the sequence is correct, but the test case expects it to be fixed, which isn't in line with the problem's requirements.
Test case 88 failed: [2, 10, 12, 17] => [2, 10, 18, 26], expected [2, 7, 12, 17] – the difference in the sequence is not consistent with the expected progression.
These tests seem to contradict the condition that only one element in the sequence can be corrupted. I believe these test cases need to be corrected to ensure they align with the problem statement.
Thank you!