摘要:
1.题目基本信息 1.1.题目描述 给你一个字符串 s ,请你找出 至多 包含 两个不同字符 的最长子串,并返回该子串的长度。 1.2.题目地址 https://leetcode.cn/problems/longest-substring-with-at-most-two-distinct-char 阅读全文
posted @ 2025-05-29 11:07
Geek0070
阅读(37)
评论(0)
推荐(0)
摘要:
1.题目基本信息 1.1.题目描述 给定长度为 n 的数组 prices 和 profits (下标从 0 开始)。一个商店有 n 个商品,第 i 个商品的价格为 prices[i],利润为 profits[i]。 需要选择三个商品,满足以下条件: prices[i] < prices[j] < p 阅读全文
posted @ 2025-05-29 11:04
Geek0070
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号