上一页 1 2 3 4 5 6 7 8 9 10 ··· 61 下一页
摘要: Given a 0-indexed integer array nums of length n and an integer target, return the number of pairs (i, j) where 0 <= i < j < n and nums[i] + nums[j] < 阅读全文
posted @ 2023-11-24 03:03 CNoodle 阅读(44) 评论(0) 推荐(0) 编辑
摘要: HTML entity parser is the parser that takes HTML code as input and replace all the entities of the special characters by the characters itself. The sp 阅读全文
posted @ 2023-11-23 01:57 CNoodle 阅读(15) 评论(0) 推荐(0) 编辑
摘要: A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of c 阅读全文
posted @ 2023-11-22 07:16 CNoodle 阅读(15) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array nums. The array nums is beautiful if: nums.length is even. nums[i] != nums[i + 1] for all i % 2 == 0. Note tha 阅读全文
posted @ 2023-11-22 04:42 CNoodle 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Given a 0-indexed string s, permute s to get a new string t such that: All consonants remain in their original places. More formally, if there is an i 阅读全文
posted @ 2023-11-14 10:38 CNoodle 阅读(20) 评论(0) 推荐(0) 编辑
摘要: There are n cities numbered from 0 to n-1. Given the array edges where edges[i] = [fromi, toi, weighti] represents a bidirectional and weighted edge b 阅读全文
posted @ 2023-11-14 01:35 CNoodle 阅读(51) 评论(0) 推荐(0) 编辑
摘要: You are given four integers sx, sy, fx, fy, and a non-negative integer t. In an infinite 2D grid, you start at the cell (sx, sy). Each second, you mus 阅读全文
posted @ 2023-11-09 01:24 CNoodle 阅读(15) 评论(0) 推荐(0) 编辑
摘要: You are given a binary string s consisting only of zeroes and ones. A substring of s is considered balanced if all zeroes are before ones and the numb 阅读全文
posted @ 2023-11-08 02:17 CNoodle 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Given an integer array arr of distinct integers and an integer k. A game will be played between the first two elements of the array (i.e. arr[0] and a 阅读全文
posted @ 2023-11-05 13:48 CNoodle 阅读(52) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array nums of even length consisting of an equal number of positive and negative integers. You should rearrange the 阅读全文
posted @ 2023-11-04 13:13 CNoodle 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, return the number of nodes where the value of the node is equal to the average of the values in its subtree. Note: Th 阅读全文
posted @ 2023-11-03 07:02 CNoodle 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Given a 0-indexed integer array nums, find a 0-indexed integer array answer where: answer.length == nums.length. answer[i] = |leftSum[i] - rightSum[i] 阅读全文
posted @ 2023-11-01 03:58 CNoodle 阅读(19) 评论(0) 推荐(0) 编辑
摘要: (This problem is an interactive problem.) Each ship is located at an integer point on the sea represented by a cartesian plane, and each integer point 阅读全文
posted @ 2023-10-31 03:52 CNoodle 阅读(18) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array gifts denoting the number of gifts in various piles. Every second, you do the following: Choose the pile with the maxim 阅读全文
posted @ 2023-10-28 06:05 CNoodle 阅读(17) 评论(0) 推荐(0) 编辑
摘要: A transaction is possibly invalid if: the amount exceeds $1000, or; if it occurs within (and including) 60 minutes of another transaction with the sam 阅读全文
posted @ 2023-10-26 05:31 CNoodle 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of distinct positive integers, return the number of tuples (a, b, c, d) such that a * b = c * d where a, b, c, and d are elements 阅读全文
posted @ 2023-10-21 07:12 CNoodle 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Given four integers length, width, height, and mass, representing the dimensions and mass of a box, respectively, return a string representing the cat 阅读全文
posted @ 2023-10-20 10:56 CNoodle 阅读(23) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array nums and an integer k. You have a starting score of 0. In one operation: choose an index i such that 0 <= i < 阅读全文
posted @ 2023-10-18 09:48 CNoodle 阅读(41) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer num, split it into two non-negative integers num1 and num2 such that: The concatenation of num1 and num2 is a permutation of  阅读全文
posted @ 2023-10-09 14:16 CNoodle 阅读(22) 评论(0) 推荐(0) 编辑
摘要: There are n people standing in a line labeled from 1 to n. The first person in the line is holding a pillow initially. Every second, the person holdin 阅读全文
posted @ 2023-09-26 13:45 CNoodle 阅读(51) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 61 下一页