上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 61 下一页
摘要: We start at some node in a directed graph, and every turn, we walk along a directed edge of the graph. If we reach a terminal node (that is, it has no 阅读全文
posted @ 2021-08-05 12:27 CNoodle 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given points symmetrically, in other words, answer whet 阅读全文
posted @ 2021-08-04 23:11 CNoodle 阅读(102) 评论(0) 推荐(0) 编辑
摘要: You are given a string num, which represents a large integer. You are also given a 0-indexed integer array change of length 10 that maps each digit 0- 阅读全文
posted @ 2021-08-02 13:17 CNoodle 阅读(101) 评论(0) 推荐(0) 编辑
摘要: You are given a string s consisting of lowercase English letters, and an integer k. First, convert s into an integer by replacing each letter with its 阅读全文
posted @ 2021-07-30 23:00 CNoodle 阅读(210) 评论(0) 推荐(0) 编辑
摘要: You are given a string time in the form of hh:mm, where some of the digits in the string are hidden (represented by ?). The valid times are those incl 阅读全文
posted @ 2021-07-25 00:47 CNoodle 阅读(102) 评论(0) 推荐(0) 编辑
摘要: You are given an n x n binary matrix grid. You are allowed to change at most one 0 to be 1. Return the size of the largest island in grid after applyi 阅读全文
posted @ 2021-07-18 02:11 CNoodle 阅读(213) 评论(0) 推荐(0) 编辑
摘要: The beauty of a string is the difference in frequencies between the most frequent and least frequent characters. For example, the beauty of "abaacc" i 阅读全文
posted @ 2021-07-17 11:36 CNoodle 阅读(149) 评论(0) 推荐(0) 编辑
摘要: order and str are strings composed of lowercase letters. In order, no letter occurs more than once. order was sorted in some custom order previously. 阅读全文
posted @ 2021-07-15 00:58 CNoodle 阅读(140) 评论(0) 推荐(0) 编辑
摘要: You are given two positive integer arrays nums1 and nums2, both of length n. The absolute sum difference of arrays nums1 and nums2 is defined as the s 阅读全文
posted @ 2021-07-15 00:20 CNoodle 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(111) 评论(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 阅读(289) 评论(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 阅读(408) 评论(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 阅读(127) 评论(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 阅读(326) 评论(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 阅读(206) 评论(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 阅读(47) 评论(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 阅读(139) 评论(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 阅读(353) 评论(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 阅读(145) 评论(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 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 61 下一页