2015年1月20日

Permutations

摘要: Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,... 阅读全文

posted @ 2015-01-20 20:37 luckygxf 阅读(187) 评论(0) 推荐(0) 编辑

Permutation Sequence

摘要: The 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... 阅读全文

posted @ 2015-01-20 16:11 luckygxf 阅读(158) 评论(0) 推荐(0) 编辑

Rotate List

摘要: Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.这道题有点... 阅读全文

posted @ 2015-01-20 11:16 luckygxf 阅读(215) 评论(0) 推荐(0) 编辑

导航