3. Starting with a sorted array, take a block and put it at the
end. So, for example, 1 3 5 9 10 12 15 20 34 could become 1 3 12 15
20 34 5 9 10 Find the beginning index of the disturbed piece. So,
for example, the disturbed piece starts at index 7.
3. Starting with a sorted array, take a block and put it at the end. So, for example, 1 3 5 9 10 12 15 20 34 could becom
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am