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: 思路 : 首先算出链表的长度(因为平移的时候以长度为周期重复
阅读全文
摘要: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
阅读全文
摘要:Problem : Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路 : 将区间的左端点按从小到大进行排序,然后观察相邻2个区间是否有公共部分,如果有公共部分则选取右端
阅读全文