First line contains space separated integers representing the node values of the linked list. The list ends when the input comes as ‘-1’. The next line contains a single integer k.
Please help in input of the linked list , the list ends when the input i s'-1'
Hi Indrajeet
The input stub is already given to you. You just have to write the code for Kth-element from last.
Hi Indrajeet
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.