please help
Whats wrong with my code?
Hi Vivek. let me debug ur code
U had not sorted the array.
I have corrected ur code. Hope it clears all ur doubts
done, thanks for ur help
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.
the only difference i can spot is using a while loop instead of for, can u please point out my error
cnt++; kro
u are doing c++ (line 13)…
and code optimize krne ke liye e = stall[n-1] ki jagah
e = stall[n-1]-stall[0] kro
ok, sorry to bother u with such small mistake, thanks for ur help
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.