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
Answer» B. n-1
2.6k
0
Do you find this helpful?
7

Discussion

No comments yet