Home / Engineering / Data Structure and Algorithms (DSA) / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) In selection sort of n elements,how many times is the swap function called in the complete execution of the algorithm?

(A) 1
(B) n-1
(C) n(n-1)/2
(D) none of these
Correct answer : Option (B) - n-1

Share

Discusssion

Login to discuss.