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 4

1
I
2
II
3
II and III
4
I, II and III

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation