题目解题思路代码 题目类型:双指针 解题思路 代码class Solution { public boolean isSubsequence(String s, String t) { int i=0, j = 0; while (i < s.length() && j < t.length()) { if (s.charAt(i) == t.charAt(j)) { i++; } j++; } return i == s.length(); }}