i tried very hard to find the mistake can u please ammend the code https://ide.codingblocks.com/s/426199
Please tell why my code is not giving any output
Hey @harryson the way you are building your linked lis, you won’t get a right answer. Instead submit your code on leetcode, here’s the link for the problem
Also the logic isn’t right. Check the logic here, and apply it in your code and submit it on leetcode only.
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.