is this efficient recursion code for bubble sort ?
Bubble sort - recursion
hello @prerak_semwal
yeah…
iterate bubble sort is the most efficient becuase that wont involves function calls
…
if u have option between recusion and interation to implement any algorithm then always go with iterative approach
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.