上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 76 下一页
摘要: There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptors on each of the remaining c 阅读全文
posted @ 2020-11-18 05:05 Schwifty 阅读(103) 评论(0) 推荐(0)
摘要: Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists some 0 < i < B.length - 1 such t 阅读全文
posted @ 2020-11-17 14:06 Schwifty 阅读(96) 评论(0) 推荐(0)
摘要: Given the root node of a binary search tree, return the sum of values of all nodes with a value in the range [low, high]. Example 1: Input: root = [10 阅读全文
posted @ 2020-11-16 14:25 Schwifty 阅读(84) 评论(0) 推荐(0)
摘要: Given the coordinates of four points in 2D space p1, p2, p3 and p4, return true if the four points construct a square. The coordinate of a point pi is 阅读全文
posted @ 2020-11-13 12:52 Schwifty 阅读(98) 评论(0) 推荐(0)
摘要: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t 阅读全文
posted @ 2020-11-11 12:50 Schwifty 阅读(98) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, find the maximum value V for which there exist different nodes A and B where V = |A.val - B.val| and A is an ancestor 阅读全文
posted @ 2020-11-10 03:54 Schwifty 阅读(136) 评论(0) 推荐(0)
摘要: Given an integer array nums, return the number of longest increasing subsequences. Example 1: Input: nums = [1,3,5,4,7] Output: 2 Explanation: The two 阅读全文
posted @ 2020-10-31 11:40 Schwifty 阅读(83) 评论(0) 推荐(0)
摘要: You are given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that th 阅读全文
posted @ 2020-10-30 06:19 Schwifty 阅读(140) 评论(0) 推荐(0)
摘要: You have an initial power of P, an initial score of 0, and a bag of tokens where tokens[i] is the value of the ith token (0-indexed). Your goal is to 阅读全文
posted @ 2020-10-25 05:02 Schwifty 阅读(151) 评论(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-22 07:26 Schwifty 阅读(120) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 76 下一页