There's an array of values from 1 to n. It isn't sorted. We have to sort it, but there are only to ways to move: third element to beginning or last element to beginning. How to do that ?
Name:
Anonymous2010-10-24 16:37
This task may revert to an impossible task (to find non-randomly), as it's kind of similar to Collatz conjecture