Deleting from a Linked List.
Posted on 2003-11-07
I need to know if this is possible.
Delete the last 'K' Nodes of a linked list.
1.In only one parse.
2.You have only the start pointer.
3.The number of nodes in the Linked list is not known.
1.'K' is greater than the number of nodes in the List.
All the restrictions and assumptions apply together. I need the approach to the solution.'C' Code will be appreciated.
Thanks to anyone who answers.