摘要: Merge Intervals (M) 题目 Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6] 阅读全文
posted @ 2020-07-04 02:57 墨云黑 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Jump Game (M) 题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array repr 阅读全文
posted @ 2020-07-04 02:38 墨云黑 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Prison Cells After N Days (M) 题目 There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied 阅读全文
posted @ 2020-07-04 01:59 墨云黑 阅读(237) 评论(0) 推荐(0) 编辑