McqMate
| 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 | |
View all MCQs in
Data Structure and Algorithms (DSA)No comments yet