摘要: 题目: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not po 阅读全文
posted @ 2017-04-24 22:19 Vincent丶丶 阅读(170) 评论(0) 推荐(0)
摘要: 题目: 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 -> 阅读全文
posted @ 2017-04-24 21:06 Vincent丶丶 阅读(155) 评论(0) 推荐(0)
摘要: 题目: Remove all elements from a linked list of integers that have value val. Example 题解: 这道题没什么好讲的,基础操作。需要注意的是链表的第一个node,因为没有前驱节点,所以该node需要特殊处理,会导致额外的代 阅读全文
posted @ 2017-04-24 20:47 Vincent丶丶 阅读(188) 评论(0) 推荐(0)