12 2014 档案

[leetcode]Copy List with Random Pointer @ Python
摘要:原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A linked list is given such that each node contains an additional random pointe... 阅读全文

posted @ 2014-12-31 08:19 AIDasr 阅读(233) 评论(0) 推荐(0)

[leetcode]Reverse Nodes in k-Group @ Python
摘要:原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod... 阅读全文

posted @ 2014-12-31 07:32 AIDasr 阅读(1195) 评论(0) 推荐(0)

[Leetcode] Remove Duplicates from Sorted List
摘要:Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, r... 阅读全文

posted @ 2014-12-29 11:58 AIDasr 阅读(227) 评论(0) 推荐(0)

[leetcode] Permutation Sequnce
摘要:原题地址:https://oj.leetcode.com/submissions/detail/5341904/题意:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of ... 阅读全文

posted @ 2014-12-27 10:57 AIDasr 阅读(194) 评论(0) 推荐(0)

导航