Q.

In selection sort of n elements,how many times is the swp 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.1k
0
Do you find this helpful?
24

Discussion

No comments yet