M

Mr. Dubey • 52.43K Points
Coach

Q. Which of the following is the biggest advantage of selection sort?

(A) its has low time complexity
(B) it has low space complexity
(C) it is easy to implement
(D) it requires only n swaps under any condition
Share

Explanation by: Mr. Dubey
 selection sort works by obtaining least value element in each iteration and then swapping it with the current index. so it will take n swaps under any condition which will be useful when memory write operation is expensive.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Loading Comments....

Question analytics