Searching and Sorting questions

Q27

GATE DA 2025 DASearching and SortingMSQ1 mark

Report a problem with Q27

What is wrong?
For which of the following inputs does binary search take time O(log⁡n)O(\log n) in the worst case?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q29

GATE DA 2025 DASearching and SortingMSQ1 mark

Report a problem with Q29

What is wrong?
Suppose that insertion sort is applied to the array [1,3,5,7,9,11,x,15,13][1, 3, 5, 7, 9, 11, x, 15, 13] and it takes exactly two swaps to sort the array. Select all possible values of xx.
More than one option can be correct.
Show answer without attempting

Loading the answer…

0/20 correct0 marks

Related topics in Programming Data Structures and Algorithms