BUCKET SORT CODE ISNT GIVING THE CORRECT OUTPUT


here is the link to my code for bucket sort .

why isn’t it giving me the correct output ?

Hello @Vishesh-Chaitanya-1475805525886480 check now:


Happy Learning!!

Can you tell me where was the error ?

you were using only if but you have to use else if in last two comparison in your function.

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.