上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 61 下一页
摘要: Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 0s and a closed island is an island to 阅读全文
posted @ 2023-01-20 07:27 CNoodle 阅读(54) 评论(0) 推荐(0) 编辑
摘要: You are given the logs for users' actions on LeetCode, and an integer k. The logs are represented by a 2D integer array logs where each logs[i] = [IDi 阅读全文
posted @ 2023-01-20 02:02 CNoodle 阅读(47) 评论(0) 推荐(0) 编辑
摘要: A password is said to be strong if it satisfies all the following criteria: It has at least 8 characters. It contains at least one lowercase letter. I 阅读全文
posted @ 2023-01-19 05:51 CNoodle 阅读(39) 评论(0) 推荐(0) 编辑
摘要: You are given a positive integer n, indicating that we initially have an n x n 0-indexed integer matrix mat filled with zeroes. You are also given a 2 阅读全文
posted @ 2023-01-17 02:43 CNoodle 阅读(136) 评论(0) 推荐(0) 编辑
摘要: You are given an array nums that consists of non-negative integers. Let us define rev(x) as the reverse of the non-negative integer x. For example, re 阅读全文
posted @ 2023-01-17 01:11 CNoodle 阅读(109) 评论(0) 推荐(0) 编辑
摘要: You are given two strings sentence1 and sentence2, each representing a sentence composed of words. A sentence is a list of words that are separated by 阅读全文
posted @ 2023-01-16 06:21 CNoodle 阅读(96) 评论(0) 推荐(0) 编辑
摘要: You are given a tree (i.e. a connected, undirected graph that has no cycles) rooted at node 0 consisting of n nodes numbered from 0 to n - 1. The tree 阅读全文
posted @ 2023-01-14 06:29 CNoodle 阅读(65) 评论(0) 推荐(0) 编辑
摘要: As the ruler of a kingdom, you have an army of wizards at your command. You are given a 0-indexed integer array strength, where strength[i] denotes th 阅读全文
posted @ 2023-01-13 06:40 CNoodle 阅读(117) 评论(0) 推荐(0) 编辑
摘要: You are given a tree (i.e. a connected, undirected graph that has no cycles) consisting of n nodes numbered from 0 to n - 1 and exactly n - 1 edges. T 阅读全文
posted @ 2023-01-13 02:34 CNoodle 阅读(81) 评论(0) 推荐(0) 编辑
摘要: You are given a string s that contains some bracket pairs, with each pair containing a non-empty key. For example, in the string "(name)is(age)yearsol 阅读全文
posted @ 2023-01-12 07:13 CNoodle 阅读(25) 评论(0) 推荐(0) 编辑
摘要: The variance of a string is defined as the largest difference between the number of occurrences of any 2 characters present in the string. Note the tw 阅读全文
posted @ 2023-01-11 02:48 CNoodle 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane, return the maximum number of points that lie on the same stra 阅读全文
posted @ 2023-01-08 09:22 CNoodle 阅读(234) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array nums representing the contents of a pile, where nums[0] is the topmost element of the pile. In one move, you c 阅读全文
posted @ 2023-01-07 09:22 CNoodle 阅读(38) 评论(0) 推荐(0) 编辑
摘要: It is a sweltering summer day, and a boy wants to buy some ice cream bars. At the store, there are n ice cream bars. You are given an array costs of l 阅读全文
posted @ 2023-01-07 01:55 CNoodle 阅读(36) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed array nums consisting of positive integers, representing targets on a number line. You are also given an integer space. You 阅读全文
posted @ 2023-01-05 07:29 CNoodle 阅读(43) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array tasks, where tasks[i] represents the difficulty level of a task. In each round, you can complete either 2 or 3 阅读全文
posted @ 2023-01-04 11:50 CNoodle 阅读(367) 评论(0) 推荐(0) 编辑
摘要: You are given an array of positive integers price where price[i] denotes the price of the ith candy and a positive integer k. The store sells baskets 阅读全文
posted @ 2023-01-03 11:12 CNoodle 阅读(303) 评论(0) 推荐(0) 编辑
摘要: A sentence is a list of tokens separated by a single space with no leading or trailing spaces. Every token is either a positive number consisting of d 阅读全文
posted @ 2023-01-03 02:56 CNoodle 阅读(57) 评论(0) 推荐(0) 编辑
摘要: Given a string s, return the number of homogenous substrings of s. Since the answer may be too large, return it modulo 109 + 7. A string is homogenous 阅读全文
posted @ 2022-12-26 09:25 CNoodle 阅读(67) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums of length n, and an integer array queries of length m. Return an array answer of length m where answer[i] is the m 阅读全文
posted @ 2022-12-25 12:13 CNoodle 阅读(288) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 61 下一页