Given an array arr[] of size N, the task is to find the minimum moves to the beginning or end of the array required to make the array sorted in non-decreasing order. Examples: Input: arr[] = {4, 7, 2, 3, 9} Output: 2 Explanation: Perform the following operations: Step 1: Move the element 3
This is a summary. For the full story, refer to the original source. Public of India presents verified citizen-relevant reporting.