力扣:滑动窗口与双指针 记录自用
1456. 定长子串中元音的最大数目 - 力扣(LeetCode)https://leetcode.cn/problems/maximum-number-of-vowels-in-a-substring-of-given-length/description/
class Solution {
public: int maxVowels(string s, int k) { int left0;//左指针下标 int ri…
2026/7/24 17:28:56