IMO 2026 day 1 ex 1 with some small numbers
Only the idea.
Only for small lists of small numbers.
If we get 1 in the list in, you have to update
untill all the numbers are >1
To have a length of the list decreasing,
and to be able to go back (decrease n),
i change only the 2 first terms without shuffle.
If you try with many/large numbers the calcs are not good.