please check my code… it’s giving null pointer exception on leetcode
kthNode from End (Remove)
line 10 u need to add the condition if
fast points to null then we need to return head.next as our answer
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
