EN It's good that you clearly pointed out the error. RU Хорошо, что вы четко указали на ошибку.
Thanks.
No problem :)
arr should be a list of unique integers.
arr
The one you tested the function whith, namely [3, 5, 3, 7, 4] doesn't match this requirement, since 3 is repeated twice, hence the result.
[3, 5, 3, 7, 4]
Loading collection data...
EN
It's good that you clearly pointed out the error.
RU
Хорошо, что вы четко указали на ошибку.
Thanks.
No problem :)
arr
should be a list of unique integers.The one you tested the function whith, namely
[3, 5, 3, 7, 4]
doesn't match this requirement, since 3 is repeated twice, hence the result.