摘要: Given a string s, return the maximum length of a substring such that it contains at most two occurrences of each character. Example 1: Input: s = "bcb 阅读全文
posted @ 2024-11-10 12:08 CNoodle 阅读(4) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums and two positive integers m and k. Return the maximum sum out of all almost unique subarrays of length k of nums. 阅读全文
posted @ 2024-11-10 04:56 CNoodle 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers arr and two integers k and threshold, return the number of sub-arrays of size k and average greater than or equal to thresh 阅读全文
posted @ 2024-11-10 02:47 CNoodle 阅读(3) 评论(0) 推荐(0) 编辑