Misleading output for test case [2, 2, 2, 11]
Type your question above this line.
Hello everyone,
I’ve just checked the provided solution and found out that with the test case [2, 2, 2, 11] the output result is [2, 11, 2, 11] instead of the expected [2, 11, 2, 2] if I’m not mistaken. My proposal is to add swapping of the elements. Any clarification or feedback is highly appreciated.
Course: https://www.educative.io/collection/5668639101419520/5671464854355968
Lesson: https://www.educative.io/collection/page/5668639101419520/5671464854355968/5070198568648704