GATE DA 2025 · Question 29 · Programming, Data Structures and Algorithms · Multiple select (MSQ) · 1 mark · no negative marks
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.
- (A) 10
- (B) 12
- (C) 14
- (D) 16
Answer
Answer (A), (C)
Answer from the official GATE DA 2025 answer key.
The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes