摘要: You are given a sorted unique integer array nums. Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, 阅读全文
posted @ 2020-10-29 14:18 fatttcat 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Given an array of n integers nums, a 132 pattern is a subsequence of three integers nums[i], nums[j] and nums[k] such that i < j < k and nums[i] < num 阅读全文
posted @ 2020-10-29 14:13 fatttcat 阅读(118) 评论(0) 推荐(0) 编辑
摘要: We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign r 阅读全文
posted @ 2020-10-29 13:49 fatttcat 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and 阅读全文
posted @ 2020-10-29 13:45 fatttcat 阅读(78) 评论(0) 推荐(0) 编辑
摘要: In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the ith domino. (A domino is a tile with two numbers from 1 to 6 - one on e 阅读全文
posted @ 2020-10-29 13:32 fatttcat 阅读(61) 评论(0) 推荐(0) 编辑