the sorted insert fuction is not working when largest no is inserted can you please check
just check the insert_sorted function rest things are fine
the sorted insert fuction is not working when largest no is inserted can you please check
just check the insert_sorted function rest things are fine
Hello @talhashamim001 please wait i am checking your code.
could you please explain your logic till then so that we can find the mistake ASAP.
Ive iterated till the end of the lnked list if I could’nt find any no greater that the no to be placed then its the largest element and I ve added that after the end of the list after the wile loop is over
Hello @talhashamim001 i have corrected your code and commented the mistake:
your fucntion insert_sorted is correct but the problem was in other :
if you have any doubt you can ask here:
Happy Learning!!
heyyyyyyyyyy please check it na
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.