01 2020 档案

摘要: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 阅读(84) 评论(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 阅读(83) 评论(0) 推荐(0) 编辑
摘要:Problem : Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路 : 将区间的左端点按从小到大进行排序,然后观察相邻2个区间是否有公共部分,如果有公共部分则选取右端 阅读全文
posted @ 2020-01-30 20:07 littledy 阅读(83) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示