摘要: 自己写的,有点麻烦 class Solution: def isSubsequence(self, s: str, t: str) -> bool: # 第一步先验证s是t的无序子序列 # 使用字典记录t中每个字符的出现次数 mydict = dict() for i in t: if not my 阅读全文
posted @ 2024-04-18 16:09 Junior_bond 阅读(16) 评论(0) 推荐(0)