摘要:
Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路 这道题我当时看到之后想的的办法就是将nums中第一个添加进结果集中,然后从nums的第一个开始遍历和和res结果集中进 阅读全文
摘要:
Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: 阅读全文