https://ide.codingblocks.com/s/188271 One test not getting passed
Sorted array recursion
Hey @arsh_goyal
Your approach has some logical errors.
Passing n-1 in every recursive fnction call is wrong,
Also better approach is passing index i as the argument in your recursive function, ans passing i+1 in the recursive call instead of passing arr+1
Please try and implement the following changes in your code.
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.