LeetCode No.19 Remove Nth Node From End of List | #Linked-list
Q:Givenalinkedlist,removethenthnodefromtheendoflistandreturnitshead.Forexample,Givenlinkedlist:1->2->3->4->5,andn=2.Afterremovingthesecondnodefromtheend,thelinkedlistbecomes1->2->3->5.A:(写在最前面:两种解法都特别