my code is not working for the case when median and next digit are same.
where does the next element goes when digit and median are same, please tell me.
and how to correct my code
my code is not working for the case when median and next digit are same.
where does the next element goes when digit and median are same, please tell me.
and how to correct my code
@shivamgoel150 there are some little mistakes in your code i have updated and commented that parts for you, look at this https://ide.codingblocks.com/s/294648
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.