I’m getting correct output but it shows wrong.
code link- https://ide.codingblocks.com/s/293356
Kth node from last problem
@Devansh_29
while(fast->data!=k){
This condition wrong. K is not the DATA of the list, you can’t compare it as such
@Devansh_29
while(fast->data!=k){
This condition wrong. K is not the DATA of the list, you can’t compare it as such