摘要: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: Given a matrix of m x n elements (m r 阅读全文
posted @ 2019-12-04 21:35 强威 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initia 阅读全文
posted @ 2019-12-04 21:30 强威 阅读(255) 评论(0) 推荐(0) 编辑