leetcode
文章平均质量分 83
chaxinrui
这个作者很懒,什么都没留下…
展开
-
leetcode 237和leetcode 206
237. Delete Node in a Linked List。 Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 -> 4 and原创 2016-08-29 14:24:10 · 378 阅读 · 0 评论 -
leetcode 19 和leetcode 83
19. Remove Nth Node From End of List 问题描述:Given a linked list, remove the nth node from the end of list and return its head. 题目规定了你可以认为n总是有效的,并尽可能只遍历链表一次就完成操作。 分析时首先可以想到的基本思路是找到倒数第n个节点然后删原创 2016-08-30 19:08:20 · 262 阅读 · 0 评论