engineering recuitment GATE CSE 2023-24 Test Series Algorithms Searching, Sorting and Hashing Sorting
Which of the following input will give the worst-case time for selection sort to sort an array in ascending order?
I. 1 2 3 4 5 6 7 8
II. 8 7 6 5 4 3 2 1
III. 8 7 5 6 3 2 1 41
I
2
II
3
II and III
4
I, II and III