Suppose that insertion sort is applied to the array \([1, 3, 5, 7, 9, 11, x, 15, 13]\) and it takes exactly two swaps to sort the array. Select all possible values of \(x\).
- A10
- B12
- C14
- D16
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems