Question DSA-SORT-0058
MediumWhat is an inversion in an array?
- A.
A pair (i, j) with i < j but a[i] > a[j]
- B.
An element equal to its index
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Sorting question
What is an inversion in an array?
A pair (i, j) with i < j but a[i] > a[j]
An element equal to its index
Sign up free to see the answer and a step-by-step explanation.
A duplicate value
A negative number