code–https://ide.codingblocks.com/s/392738
ques–https://hack.codingblocks.com/app/contests/2022/474/problem
Doubt--Recursion-Selection Sort
hello @aaliyah_beg
this min is not updating correctly becuase it is local variable.
to correct it , pass min as param in function . and perform swap in base case j==n
This way, pl comment the errors
its not printing the correct output.
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.