上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 59 下一页
摘要: You are given a 0-indexed array nums of n integers, and an integer k. The k-radius average for a subarray of nums centered at some index i with the ra 阅读全文
posted @ 2023-06-20 15:07 CNoodle 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, return the maximum possible sum of elements of the array such that it is divisible by three. Example 1: Input: nums = [3, 阅读全文
posted @ 2023-06-20 04:34 CNoodle 阅读(22) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed array of positive integers nums. Find the number of triplets (i, j, k) that meet the following conditions: 0 <= i < j < k < 阅读全文
posted @ 2023-06-13 13:22 CNoodle 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Given a m x n matrix grid which is sorted in non-increasing order both row-wise and column-wise, return the number of negative numbers in grid. Exampl 阅读全文
posted @ 2023-06-08 12:35 CNoodle 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Given a 0-indexed n x n integer matrix grid, return the number of pairs (ri, cj) such that row ri and column cj are equal. A row and column pair is co 阅读全文
posted @ 2023-06-06 03:58 CNoodle 阅读(265) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed array nums of size n consisting of non-negative integers. You need to apply n - 1 operations to this array where, in the ith 阅读全文
posted @ 2023-06-05 13:02 CNoodle 阅读(31) 评论(0) 推荐(0) 编辑
摘要: You are given a list of bombs. The range of a bomb is defined as the area where its effect can be felt. This area is in the shape of a circle with the 阅读全文
posted @ 2023-06-03 02:46 CNoodle 阅读(106) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed array of strings words and a 2D array of integers queries. Each query queries[i] = [li, ri] asks us to find the number of st 阅读全文
posted @ 2023-06-02 04:17 CNoodle 阅读(24) 评论(0) 推荐(0) 编辑
摘要: The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return al 阅读全文
posted @ 2023-05-30 13:06 CNoodle 阅读(126) 评论(0) 推荐(0) 编辑
摘要: You are given an array of equal-length strings words. Assume that the length of each string is n. Each string words[i] can be converted into a differe 阅读全文
posted @ 2023-05-25 06:45 CNoodle 阅读(25) 评论(0) 推荐(0) 编辑
摘要: There is a set of n items. You are given two integer arrays values and labels where the value and the label of the ith element are values[i] and label 阅读全文
posted @ 2023-05-24 00:55 CNoodle 阅读(8) 评论(0) 推荐(0) 编辑
摘要: You have n tiles, where each tile has one letter tiles[i] printed on it. Return the number of possible non-empty sequences of letters you can make usi 阅读全文
posted @ 2023-05-19 14:39 CNoodle 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Given a directed acyclic graph, with n vertices numbered from 0 to n-1, and an array edges where edges[i] = [fromi, toi] represents a directed edge fr 阅读全文
posted @ 2023-05-18 14:05 CNoodle 阅读(23) 评论(0) 推荐(0) 编辑
摘要: You are given two arrays of strings that represent two inclusive events that happened on the same day, event1 and event2, where: event1 = [startTime1, 阅读全文
posted @ 2023-05-17 06:33 CNoodle 阅读(33) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed 2D integer array questions where questions[i] = [pointsi, brainpoweri]. The array describes the questions of an exam, where 阅读全文
posted @ 2023-05-13 05:41 CNoodle 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums that does not contain any zeros, find the largest positive integer k such that -k also exists in the array. Return the pos 阅读全文
posted @ 2023-05-13 02:23 CNoodle 阅读(44) 评论(0) 推荐(0) 编辑
摘要: You are given a string of length 5 called time, representing the current time on a digital clock in the format "hh:mm". The earliest possible time is  阅读全文
posted @ 2023-05-09 10:51 CNoodle 阅读(31) 评论(0) 推荐(0) 编辑
摘要: You are given the string croakOfFrogs, which represents a combination of the string "croak" from different frogs, that is, multiple frogs can croak at 阅读全文
posted @ 2023-05-06 01:33 CNoodle 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k. Vowel letters in English are 'a', ' 阅读全文
posted @ 2023-05-06 00:34 CNoodle 阅读(144) 评论(0) 推荐(0) 编辑
摘要: In the world of Dota2, there are two parties: the Radiant and the Dire. The Dota2 senate consists of senators coming from two parties. Now the Senate 阅读全文
posted @ 2023-05-05 06:25 CNoodle 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 59 下一页