标签:return sub code 判断 == ++ 序列 ring size
1 class Solution 2 { 3 public: 4 bool isSubsequence(string s, string t) 5 { 6 int n = s.size(); 7 int i = 0; 8 for(int j = 0;j < t.size();j ++) 9 { 10 if(s[i] == t[j]) i++; 11 } 12 return i == n; 13 } 14 };
标签:return sub code 判断 == ++ 序列 ring size
原文地址:https://www.cnblogs.com/yuhong1103/p/12724686.html