摘要: Problem : Given a linked list, rotate the list to the right by k places, where k is non negative. Example 1: Example 2: 思路 : 首先算出链表的长度(因为平移的时候以长度为周期重复 阅读全文
posted @ 2020-01-31 17:28 littledy 阅读(86) 评论(0) 推荐(0)
摘要: Problem : The set contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following sequence 阅读全文
posted @ 2020-01-31 10:23 littledy 阅读(89) 评论(0) 推荐(0)