判斷子序列

雙指針法 public boolean isSubsequence(String s, String t) { // s爲空串 if (s.isEmpty()) return true; int i = 0, j = 0; while (i < s.length() && j < t.length()) { if (s.charAt(i)
相關文章
相關標籤/搜索