摘要:
Problem : Given a $m \times n$ matrix, if an element is 0, set its entire row and column to 0. Do it in place. Example 1: Example 2: Follow up: A stra 阅读全文
摘要:
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个区间是否有公共部分,如果有公共部分则选取右端 阅读全文
摘要:
Problem : Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou 阅读全文