Code not getting submitted

I even tried replicating the code, but still its giving wrong output on leetcode, please if you can suggest me any solution?

hEY @saksham_thukral
Please share link to the question as well as ur code :slight_smile:

Ques Link:- https://leetcode.com/problems/copy-list-with-random-pointer/
My Solution Link:- https://drive.google.com/file/d/1RuH08L0jvpI09E2cs5anEHcrxHOFrag3/view?usp=sharing

in my solution over codeblocks, i am not able to explore the way to take input in the same manner as presented in question, but the actual solution function in my solution link is “node * copyRandomList” in the code link above. I am although trying to submit this particular function over leetcode, but its giving wrong output. Please if you can also tell me that how can i take input in the same manner as required.

hEY @saksham_thukral
Added line 64 and changed node to Node

https://ide.codingblocks.com/s/344856

Could you also tell me how can i take input for this type of list in the same manner as in question, as i can take random values separately as input, but not along with the data value of the node. So could you give me any type of hint or code that can help me to understand how can i take the input in the same manner ass in the question. It would be of great help!!

Taki input as pairs and store them
Then create nodes from data values
and then allocate their random pointers

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.