上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 59 下一页
摘要: Given three integers x, y, and bound, return a list of all the powerful integers that have a value less than or equal to bound. An integer is powerful 阅读全文
posted @ 2023-05-04 01:02 CNoodle 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Given a string s, determine if it is valid. A string s is valid if, starting with an empty string t = "", you can transform t into s after performing 阅读全文
posted @ 2023-05-04 00:19 CNoodle 阅读(22) 评论(0) 推荐(0) 编辑
摘要: There are three stones in different positions on the X-axis. You are given three integers a, b, and c, the positions of the stones. In one move, you p 阅读全文
posted @ 2023-04-30 03:41 CNoodle 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums and two integers firstLen and secondLen, return the maximum sum of elements in two non-overlapping subarrays with lengths  阅读全文
posted @ 2023-04-28 01:39 CNoodle 阅读(18) 评论(0) 推荐(0) 编辑
摘要: You have a set which contains all positive integers [1, 2, 3, 4, 5, ...]. Implement the SmallestInfiniteSet class: SmallestInfiniteSet() Initializes t 阅读全文
posted @ 2023-04-26 01:56 CNoodle 阅读(87) 评论(0) 推荐(0) 编辑
摘要: You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each index 阅读全文
posted @ 2023-04-25 23:39 CNoodle 阅读(44) 评论(0) 推荐(0) 编辑
摘要: You are given the root of a binary tree. A ZigZag path for a binary tree is defined as follow: Choose any node in the binary tree and a direction (rig 阅读全文
posted @ 2023-04-22 06:59 CNoodle 阅读(129) 评论(0) 推荐(0) 编辑
摘要: You have n gardens, labeled from 1 to n, and an array paths where paths[i] = [xi, yi] describes a bidirectional path between garden xi to garden yi. I 阅读全文
posted @ 2023-04-16 01:54 CNoodle 阅读(33) 评论(0) 推荐(0) 编辑
摘要: You are given a string s, which contains stars *. In one operation, you can: Choose a star in s. Remove the closest non-star character to its left, as 阅读全文
posted @ 2023-04-11 12:46 CNoodle 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Given a string s, partition the string into one or more substrings such that the characters in each substring are unique. That is, no letter appears i 阅读全文
posted @ 2023-04-04 23:31 CNoodle 阅读(55) 评论(0) 推荐(0) 编辑
摘要: You are given two positive integer arrays spells and potions, of length n and m respectively, where spells[i] represents the strength of the ith spell 阅读全文
posted @ 2023-04-03 05:22 CNoodle 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Two strings word1 and word2 are considered almost equivalent if the differences between the frequencies of each letter from 'a' to 'z' between word1 a 阅读全文
posted @ 2023-03-28 04:52 CNoodle 阅读(108) 评论(0) 推荐(0) 编辑
摘要: You are given an integer n. There is an undirected graph with n nodes, numbered from 0 to n - 1. You are given a 2D integer array edges where edges[i] 阅读全文
posted @ 2023-03-26 03:45 CNoodle 阅读(55) 评论(0) 推荐(0) 编辑
摘要: Design an algorithm that accepts a stream of characters and checks if a suffix of these characters is a string of a given array of strings words. For 阅读全文
posted @ 2023-03-25 01:03 CNoodle 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, return the number of subarrays filled with 0. A subarray is a contiguous non-empty sequence of elements within an array. 阅读全文
posted @ 2023-03-21 10:58 CNoodle 阅读(31) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, determine if it is a complete binary tree. In a complete binary tree, every level, except possibly the last, is compl 阅读全文
posted @ 2023-03-15 12:45 CNoodle 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is divisible by p. 阅读全文
posted @ 2023-03-10 11:37 CNoodle 阅读(48) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed string blocks of length n, where blocks[i] is either 'W' or 'B', representing the color of the ith block. The characters 'W' 阅读全文
posted @ 2023-03-09 01:38 CNoodle 阅读(50) 评论(0) 推荐(0) 编辑
摘要: You are given an array time where time[i] denotes the time taken by the ith bus to complete one trip. Each bus can make multiple trips successively; t 阅读全文
posted @ 2023-03-08 06:49 CNoodle 阅读(80) 评论(0) 推荐(0) 编辑
摘要: You are given two strings s1 and s2 of equal length consisting of letters "x" and "y" only. Your task is to make these two strings equal to each other 阅读全文
posted @ 2023-02-25 06:44 CNoodle 阅读(27) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 59 下一页