• + 1 comment

    I think there is problem in the algorithm, instead of reversing the subarray , it should be sorted.