Saved Bookmarks
| 1. |
When we sort the given elements by using bubble sort,then in third pass/iteration how many comparisons should we perform? 25,17,31,13,2 |
|
Answer» -2Explanation:In BUBBLE SORT FIRST iteration will COMPARE N-1 so in third it will compare n-3 where n is length of the element |
|