2014年4月9日

【LeetCode练习题】Linked List Cycle II

摘要: Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?题目意思:第一个 阅读全文

posted @ 2014-04-09 21:01 Allen Blue 阅读(244) 评论(0) 推荐(0)

【LeetCode练习题】Permutation Sequence

摘要: Permutation SequenceThe set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie, forn= 3):"123""132""213""231""312""321"Givennandk, return thekthperm 阅读全文

posted @ 2014-04-09 19:41 Allen Blue 阅读(156) 评论(0) 推荐(0)

导航