06 2021 档案

摘要:A new online video game has been released, and in this video game, there are 15-minute rounds scheduled every quarter-hour period. This means that at  阅读全文
posted @ 2021-06-24 00:36 CNoodle 阅读(175) 评论(0) 推荐(0)
摘要:On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). Now rain starts to fall. At time t, the depth of the water ever 阅读全文
posted @ 2021-06-21 04:54 CNoodle 阅读(171) 评论(0) 推荐(0)
摘要:You are given an array colors, in which there are three colors: 1, 2 and 3. You are also given some queries. Each query consists of two integers i and 阅读全文
posted @ 2021-06-20 14:06 CNoodle 阅读(321) 评论(0) 推荐(0)
摘要:You are given an array of strings arr. A string s is formed by the concatenation of a subsequence of arr that has unique characters. Return the maximu 阅读全文
posted @ 2021-06-20 01:47 CNoodle 阅读(273) 评论(0) 推荐(0)
摘要:You have n packages that you are trying to place in boxes, one package in each box. There are m suppliers that each produce boxes of different sizes ( 阅读全文
posted @ 2021-06-19 06:14 CNoodle 阅读(329) 评论(0) 推荐(0)
摘要:Given an integer array nums, your goal is to make all elements in nums equal. To complete one operation, follow these steps: Find the largest value in 阅读全文
posted @ 2021-06-19 00:10 CNoodle 阅读(148) 评论(0) 推荐(0)
摘要:Given two n x n binary matrices mat and target, return true if it is possible to make mat equal to target by rotating mat in 90-degree increments, or 阅读全文
posted @ 2021-06-17 12:53 CNoodle 阅读(381) 评论(0) 推荐(0)
摘要:A triplet is an array of three integers. You are given a 2D integer array triplets, where triplets[i] = [ai, bi, ci] describes the ith triplet. You ar 阅读全文
posted @ 2021-06-15 01:08 CNoodle 阅读(289) 评论(0) 推荐(0)
摘要:You are given two strings s and p where p is a subsequence of s. You are also given a distinct 0-indexed integer array removable containing a subset o 阅读全文
posted @ 2021-06-15 00:15 CNoodle 阅读(211) 评论(0) 推荐(0)
摘要:You are given an array of strings words (0-indexed). In one operation, pick two distinct indices i and j, where words[i] is a non-empty string, and mo 阅读全文
posted @ 2021-06-14 23:35 CNoodle 阅读(133) 评论(0) 推荐(0)
摘要:Given a string s and an integer k, return true if you can use all the characters in s to construct k palindrome strings or false otherwise. Example 1: 阅读全文
posted @ 2021-06-12 00:24 CNoodle 阅读(240) 评论(0) 推荐(0)
摘要:The pair sum of a pair (a,b) is equal to a + b. The maximum pair sum is the largest pair sum in a list of pairs. For example, if we have pairs (1,5),  阅读全文
posted @ 2021-06-11 23:40 CNoodle 阅读(382) 评论(0) 推荐(0)
摘要:You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and '-' before 阅读全文
posted @ 2021-06-10 00:57 CNoodle 阅读(276) 评论(0) 推荐(0)
摘要:Given the roots of two binary search trees, root1 and root2, return true if and only if there is a node in the first tree and a node in the second tre 阅读全文
posted @ 2021-06-09 01:09 CNoodle 阅读(410) 评论(0) 推荐(0)
摘要:Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rules: Ra 阅读全文
posted @ 2021-06-08 11:29 CNoodle 阅读(250) 评论(0) 推荐(0)
摘要:Given a binary tree, return the sum of values of nodes with even-valued grandparent. (A grandparent of a node is the parent of its parent, if it exist 阅读全文
posted @ 2021-06-03 12:54 CNoodle 阅读(143) 评论(0) 推荐(0)
摘要:Given an array of integers arr, sort the array by performing a series of pancake flips. In one pancake flip we do the following steps: Choose an integ 阅读全文
posted @ 2021-06-03 00:33 CNoodle 阅读(103) 评论(0) 推荐(0)