We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I was actually stuck at the same situation of yours for an hour xD. I wonder how this problem can be done recursively without destroying the linked list.
I know its possible, as any program which can be written iteratively can be also written recursively and vice versa.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Get Node Value
You are viewing a single comment's thread. Return to all comments →
I was actually stuck at the same situation of yours for an hour xD. I wonder how this problem can be done recursively without destroying the linked list. I know its possible, as any program which can be written iteratively can be also written recursively and vice versa.