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-11-06 16:59
>>46
The most essential question is to make this max in O(n^2).
I dunno what correct modulo position is