Question 38
In a list L, two elements L[i] and L[j] form a significant inversion if L[i] > 2 * L[j] and i < j . The total number of significant inversions for L = [5, 4, 1, 2, 3] is___.
5
4
3
2
In a list L, two elements L[i] and L[j] form a significant inversion if L[i] > 2 * L[j] and i < j . The total number of significant inversions for L = [5, 4, 1, 2, 3] is___.
5
4
3
2
Correct answer
3
Question 38 of 50 in the IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 21 Dec 2025, in the September 2025 term (Programming, Data Structures And Algorithms Using Python 18 Dec 25). It carries 4 marks.