1 < arr[i] = 20
Input Format
The first line contains an integer, size, denoting the number of elements in array.
Each line i of the size subsequent lines (where 0 Si< size) contains an integer describing the ith eleme
Sample Cases
Input Output Output Description
5
1
2
2
Here to attain 2 switches we had to perform 2 swaps. After the first swap
we attain (1,2,1,2,5). After the second swap we attain (1,1,2,2,5).
12
1
15
Answers
Answered by
0
koi zinda hai kya xD ????
Similar questions