getting 1 cases wrong
Issorted recursion
Pls tell me whats wrong in my code
j ka logic samjh nhi aya kya karna cha rahe ho??
j end se chal raha h?
use kya comparison kar rahe ho ?
I am trying to compare last and first if last is > then j–
you have started from start and I have started from last
first and last ka comparison kyo
aise array hui
1 5 7 3 9
to kya yeh sorted h
jabki
a[i] < a[j]
GOT IT THANKS,SO I SHOULD TAKE LAST AND 2ND LAST AND SO ON.
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.