Question: http://www.codechef.com/TUXO2014/problems/SREENI
My solution: http://www.codechef.com/viewsolution/3716014
I was trying to solve it by rotating the array about each element from 2nd loaction to the last location.. But it did not work..Can someone explain why?