Your limit has been exceed. We have implemented this system because, We got difficulty on managing our servers. Please donate some amount to remove this limit.
Quota: 0 / 30Donate
Given data are
Now, for the first position in the sorted array, the entire array is to be scanned sequentially.
At present, 4 is stored at the first position, after searching the entire array, it is found that 71 is the largest value.
So, swap 4 with 71. After the first iteration, 71 will appear at the first position in the sorted array.
The same process is applied to the rest of the array elements.
Click here to submit your answer.