上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 64 下一页
摘要: A query word matches a given pattern if we can insert lowercase letters to the pattern word so that it equals the query. (We may insert each character 阅读全文
posted @ 2021-07-14 15:13 CNoodle 阅读(129) 评论(0) 推荐(0)
摘要: Given a string s, return the number of unique palindromes of length three that are a subsequence of s. Note that even if there are multiple ways to ob 阅读全文
posted @ 2021-07-13 01:29 CNoodle 阅读(371) 评论(0) 推荐(0)
摘要: A good meal is a meal that contains exactly two different food items with a sum of deliciousness equal to a power of two. You can pick any two differe 阅读全文
posted @ 2021-07-09 00:47 CNoodle 阅读(432) 评论(0) 推荐(0)
摘要: Given the array orders, which represents the orders that customers have done in a restaurant. More specifically orders[i]=[customerNamei,tableNumberi, 阅读全文
posted @ 2021-07-06 09:17 CNoodle 阅读(145) 评论(0) 推荐(0)
摘要: You are given two m x n binary matrices grid1 and grid2 containing only 0's (representing water) and 1's (representing land). An island is a group of 阅读全文
posted @ 2021-07-05 15:01 CNoodle 阅读(363) 评论(0) 推荐(0)
摘要: You are given some lists of regions where the first region of each list includes all other regions in that list. Naturally, if a region X contains ano 阅读全文
posted @ 2021-07-03 13:45 CNoodle 阅读(229) 评论(0) 推荐(0)
摘要: There are n bulbs that are initially off. You first turn on all the bulbs, then you turn off every second bulb. On the third round, you toggle every t 阅读全文
posted @ 2021-07-03 01:07 CNoodle 阅读(66) 评论(0) 推荐(0)
摘要: Given an integer n, return true if and only if it is an Armstrong number. The k-digit number n is an Armstrong number if and only if the kth power of 阅读全文
posted @ 2021-07-03 00:04 CNoodle 阅读(161) 评论(0) 推荐(0)
摘要: An n-bit gray code sequence is a sequence of 2n integers where: Every integer is in the inclusive range [0, 2n - 1], The first integer is 0, An intege 阅读全文
posted @ 2021-07-02 23:40 CNoodle 阅读(384) 评论(0) 推荐(0)
摘要: 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 阅读(166) 评论(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 阅读(163) 评论(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 阅读(304) 评论(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 阅读(262) 评论(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 阅读(321) 评论(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 阅读(142) 评论(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 阅读(368) 评论(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 阅读(265) 评论(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 阅读(206) 评论(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 阅读(128) 评论(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 阅读(231) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 64 下一页