Data Structures :: Searching & Sorting - Discussion
Home > Data Structures > Searching & Sorting > MCQs Questions Discussion
58 / 69
Choose the correct option.
The number of swappings needed to short the numbers 8, 22, 7, 9, 31, 19, 5, 13 in ascending order using bubble sort is
A11
B14
C13
D12
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
it should be 7 because elements are 8 and in bubble sort n-1 swapping happen for the whole list
Read Full Answer
Report Error
Please Login First Click Here