Advertisements
Advertisements
Question
How many swaps does selection sort perform in worst case?
Options
N - 1
N*(N - 1)/2
N!
N2
MCQ
Solution
N - 1
shaalaa.com
Selection Sort
Is there an error in this question or solution?
How many swaps does selection sort perform in worst case?
N - 1
N*(N - 1)/2
N!
N2
N - 1