How many swaps are required to sort the given array using bubble sort - { 2,…

PYQ CoCubes 2023

How many swaps are required to sort the given array using bubble sort - { 2, 5, 1, 3, 4}

  1. A.

    4

  2. B.

    5

  3. C.

    6

  4. D.

    7

Attempted by 390 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…