上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 61 下一页
摘要: You are given an integer finalSum. Split it into a sum of a maximum number of unique positive even integers. For example, given finalSum = 12, the fol 阅读全文
posted @ 2023-07-06 10:04 CNoodle 阅读(34) 评论(0) 推荐(0) 编辑
摘要: There is a bag that consists of items, each item has a number 1, 0, or -1 written on it. You are given four non-negative integers numOnes, numZeros, n 阅读全文
posted @ 2023-07-06 06:57 CNoodle 阅读(7) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed 2D integer array nums. Initially, your score is 0. Perform the following operations until the matrix becomes empty: From eac 阅读全文
posted @ 2023-07-05 07:59 CNoodle 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the resulti 阅读全文
posted @ 2023-06-29 05:04 CNoodle 阅读(155) 评论(0) 推荐(0) 编辑
摘要: For two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t is concatenated with itself one or more times). Given two string 阅读全文
posted @ 2023-06-27 14:44 CNoodle 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words, y 阅读全文
posted @ 2023-06-27 13:43 CNoodle 阅读(19) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array costs where costs[i] is the cost of hiring the ith worker. You are also given two integers k and candidates. W 阅读全文
posted @ 2023-06-27 11:13 CNoodle 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the pivot integer x such that: The sum of all elements between 1 and x inclusively equals the sum of all elements bet 阅读全文
posted @ 2023-06-26 23:08 CNoodle 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 你有一个用于表示一片土地的整数矩阵land,该矩阵中每个点的值代表对应地点的海拔高度。若值为0则表示水域。由垂直、水平或对角连接的水域为池塘。池塘的大小是指相连接的水域的个数。编写一个方法来计算矩阵中所有池塘的大小,返回值需要从小到大排序。 示例: 输入:[ [0,2,1,0], [0,1,0,1] 阅读全文
posted @ 2023-06-22 06:38 CNoodle 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(27) 评论(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 阅读(27) 评论(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 阅读(27) 评论(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 阅读(63) 评论(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 阅读(305) 评论(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 阅读(35) 评论(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 阅读(118) 评论(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 阅读(30) 评论(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 阅读(131) 评论(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 阅读(28) 评论(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 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 61 下一页