If a list contain 'n' number of elements and all the elements by default sorted in ascending order then how many comparisons will be required during 1st pass of bubble sort to arrange the list in ascending order?

1
0
2
1
3
n - 1
4
n

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation