03 2024 档案
摘要:You are given an integer array nums and a positive integer k. Return the number of subarrays where the maximum element of nums appears at least k time
阅读全文
摘要:You are given a 0-indexed array nums consisting of positive integers. You can do the following operation on the array any number of times: Choose an i
阅读全文
摘要:You are given a string title consisting of one or more words separated by a single space, where each word consists of English letters. Capitalize the
阅读全文
摘要:You are given a 0-indexed string word of length n consisting of digits, and a positive integer m. The divisibility array div of word is an integer arr
阅读全文
摘要:Given a string s consisting only of characters 'a', 'b', and 'c'. You are asked to apply the following algorithm on the string any number of times: Pi
阅读全文
摘要:There is an undirected tree with n nodes labeled from 0 to n - 1 and n - 1 edges. You are given a 2D integer array edges of length n - 1 where edges[i
阅读全文
摘要:You are given a binary string s that contains at least one '1'. You have to rearrange the bits in such a way that the resulting binary number is the m
阅读全文

浙公网安备 33010602011771号