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 阅读全文
posted @ 2024-03-30 06:26 CNoodle 阅读(92) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2024-03-14 15:41 CNoodle 阅读(75) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2024-03-11 12:39 CNoodle 阅读(30) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2024-03-07 14:01 CNoodle 阅读(40) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2024-03-06 01:24 CNoodle 阅读(67) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2024-03-02 03:19 CNoodle 阅读(41) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2024-03-01 11:20 CNoodle 阅读(87) 评论(0) 推荐(0)