Bubble Sort
You are given arrays . What will return the next function in the next picture.
Link to the image: https://ibb.co/vzFR5kr
Input format
Print an integer that denotes the answer to the question.
Link to the image: https://ibb.co/vzFR5kr
Input format
- The first line contains the integer () denoting the number of elements of array .
- The second line contains positive integers () denoting the elements of the array.
Note: It is guaranteed that all elements of array are different.
Print an integer that denotes the answer to the question.
SAMPLE INPUT
5
1 3 2 5 4
SAMPLE OUTPUT
2
Explanation
Answer is 2 (to verify this, you can simply implement this procedure)
Comments
Post a Comment
Please give us your valuable feedback