leetcode 1208. 尽可能使字符串相等 2730. 找到最长的半重复子字符串
摘要:
两道题差不多思路,放到一起 1208. 尽可能使字符串相等 其中,字符串 s 和 t 只包含小写字母 法一:使用额外空间 class Solution { public: int equalSubstring(string s, string t, int maxCost) { int size = 阅读全文
posted @ 2024-12-07 19:50 ᶜʸᵃⁿ 阅读(7) 评论(0) 推荐(0)