Recursion sorted array doubt

sir where i am doing mistake

hi @udaycodingblocks
u haven’t shared your code only… or u can refer my code -->

sir i submitted the code now

where i am making mistakes?

SortedArr(arr,n,i+1)

Return keyword is missing here… also u are missing the case where a[i+1] == a[i]

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.