首页 > TAG信息列表 > minsize

[LeetCode] 1297. Maximum Number of Occurrences of a Substring 子串的最大出现次数

Given a string s, return the maximum number of ocurrences of any substring under the following rules: The number of unique characters in the substring must be less than or equal to maxLetters. The substring size must be between minSize and maxSize i

Leetcode刷题之矩阵中的指针用法

矩阵中的指针用法 1 快慢指针 ​ Leetcode27移除元素 给你一个数组 nums 和一个值 val,你需要 原地 移除所有数值等于 val 的元素,并返回移除后数组的新长度。不要使用额外的数组空间,你必须仅使用 O(1) 额外空间并 原地 修改输入数组。 public int removeElement(int[] nums,