Examveda

What will be the base case for the code of recursive bubble sort?

A.

if(n < 1)
return;

B.

if(n == 0)
return;

C.

if(n == 1)
return;

D.

If(n == 2)
return;

Answer: Option C


This Question Belongs to Data Structure >> Sorting Algorithms

Join The Discussion

Related Questions on Sorting Algorithms