Bubble sort is a _______ sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the _______ order.

  • Comparison-based, wrong
  • Divide and conquer
  • Greedy
  • Simple
Bubble sort is a comparison-based sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *