标签:== ems etc com ret amp tco href solution
public class Solution { public bool IsSubsequence(string s, string t) { var i = 0; var j = 0; while (i < s.Length && j < t.Length) { if (s[i] == t[j]) { i++; j++; } else { j++; } } if (i >= s.Length) { return true; } else { return false; } } }
https://leetcode.com/problems/is-subsequence/#/description
标签:== ems etc com ret amp tco href solution
原文地址:http://www.cnblogs.com/asenyang/p/6848479.html