sir i was trying to write code for this question…(kth node from end of linked list)…
getting an error while running it…
void nodeFromEnd(node *&head,int k){
node * slow = head;
node * fast = head;
int jump = 1;
while(jump <= k){
fast = fast ->next;
}
while(fast != NULL){
fast = fast -> next;
slow = slow -> next;
}
cout<data;
}