Replies: 1 comment
-
Hey KratiGupt, I do not find provided code in my project. can you ellaborate where this code in written. and if this code is not related to this project than please delete this discussion and mail me the problem with proper questions. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
lass Solution {
public ListNode removeNthFromEnd(ListNode head, int n) {
ListNode temp=head;
int c=0;
while(temp.next!=null){
temp=temp.next;
c++;
}
int length=c-n;
}
Beta Was this translation helpful? Give feedback.
All reactions