Question 8

Given an array find if array gets sorted by reversing any subarray of this array. Ex: In {1, 2, 3, 4, 8, 7, 6, 9} we can reverse subarray from index 4 to 6.

KodNest Training New Batch is starting on 15th July 2020Check Now

New Report

Close