Python 判断子序列
2021-04-07 13:27
阅读:358
标签:font span turn orm new dex def space lin Python 判断子序列 标签:font span turn orm new dex def space lin 原文地址:https://www.cnblogs.com/z977690557/p/13388986.html
s = "abc"
t = "ahbgdc"
class Solution:
def isSubsequence(self, s: str, t: str):
for i in range(len(s)):
if s[i] in t:
if i
return s;
else:
return false
下一篇:jar包冲突解决方案
评论
亲,登录后才可以留言!