###### Remove Nth Node From End of List
/**
* struct ListNode {
*     int val;
*     ListNode *next;
*     ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {

return NULL;

while(h != NULL && n > 0)
{
n--;
h = h->next;
}

if(h == NULL)//删除的是头指针的情况

while(h->next != NULL)
{
h = h->next;
h1 = h1->next;
}

h1->next = h1->next->next;

}
};

#### [LeetCode] 019. Remove Nth Node From End of List (Easy) (C++/Python)

2015-03-04 19:26:10

#### [leetcode] 19. Remove Nth Node From End of List python实现【easy】

2016-06-14 21:50:21

#### LeetCode:Remove Nth Node From End of List

2014-11-18 10:08:28

#### LeetCode 19 : Remove Nth Node From End of List (Java)

2015-12-01 20:02:39

#### 【LeetCode-面试算法经典-Java实现】【019-Remove Nth Node From End of List（移除单链表的倒数第N个节点）】

2015-07-22 07:24:29

#### [C语言][LeetCode][19]Remove Nth Node From End of List

2016-03-07 23:05:04

#### （Java）LeetCode-19. Remove Nth Node From End of List

2016-05-31 00:00:58

#### 【LeetCode】19 Remove Nth Node From End of List （c++实现）

2015-07-22 10:29:58

#### LeetCode19——Remove Nth Node From End of List

2015-02-05 15:07:55

#### [LeetCode19]Remove Nth Node From End of List

2014-05-24 13:13:50

## 不良信息举报

Remove Nth Node From End of List