网站首页
-
[LeetCode 1371] Find the Longest Substring Containing Vowels in Even Counts
Giventhestring s,returnthesizeofthelongestsubstringcontainingeachvowelanevennumber...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
字符串-mask-每个元音包含偶数次的最长子字符串
2020-03-08 00:23:04问题描述:给你一个字符串 s ,请你返回满足以下条件的最长子字符串的长度:每个元音字母,即 'a','e','i','o','u',在子字符串中都...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
【题解】力扣888.公平的糖果棒交换
题目来源888.公平的糖果棒交换思路及算法记Alice的糖果棒的总大小为\(sumA\),Bob的糖果棒的总大小为...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
零碎知识点整理 零碎的知识点 英语
leetc判断元素是否在字符串,列表,元祖内ifyinnums ...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
【LeetCode每日一题】2020.6.18 1028. 从先序遍历还原二叉树
1028.从先序遍历还原二叉树我们从二叉树的根节点root开始进行深度优先搜索。在遍历中的每个节点处,我们输出D条短划线(其中D是该节点的深度),然后输出该节点的值。(如果节点的深度为...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
【Leetcode】129. 求根到叶子节点数字之和
题目链接https://leetcode-cn.com/problems/sum-root-to-leaf-numbers/题目描述解题思路1.先序遍历(DFS)...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
1371. 每个元音包含偶数次的最长子字符串
给你一个字符串 s ,请你返回满足以下条件的最长子字符串的长度:每个元音字母,即 'a','e','i','o','u',在子字符串中都恰好出现了偶数次。 示...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
LeetCode 无重复字符的最长子串 All In One
LeetCode无重复字符的最长子串AllInOneLeetCode无重复字符的最长子串AllInOne...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
滑动窗口模板 滑动窗口是什么
滑动窗口模板以1052.爱生气的书店老板为例classSolution{/***@paramInteger[]$customers*@param...
2024-03-29 sanyeah gitee 0 ℃ 0 评论 -
求子数组最大平均数--算法 求最大子数组之和
求子数组最大平均数[我的解法,思路在代码注释中] 官方的解法[下面有图解] 第二组和第一组之和比较最大值,结果是第二组51大 ...
2024-03-29 sanyeah gitee 0 ℃ 0 评论