I’m getting wrong because of the way I’m printing to console, can I have the code Instructor wrote to print on console.
How to get the code instructor wrote?
Hello @hemu1999, pls elaborate your doubt clearly, I am not able to understand what are you trying to say.
Actually I got it right on leetcode, to submit here, I have to write the print function where I’m lacking. In the video instructor didn’t coded this function but submitted which means he coded the print function which I need
Okay actually if you have seen he might have that function or code part inside the main function and that part is not necessary for submitting on leetcode that is just to show how the modified linked list will look like. And printing it same as printing a normal linked list as you get the head pointer of the new list. Just initialise the pointer from the head and keep on iterating until you get any Null value.
I hope it is clear to you and still if there is any confusion or issue pls let me know.
Thanks 
Wow! Such a cool reply… Tq so much
Okay, I know you are asking for the code and it is not possible to get. What you can do copy-paste your code here and we will let you know what are you doing wrong.
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.