摘要: https://leetcode.com/problems/utf-8-validation/ public class Solution { public boolean validUtf8(int[] data) { int last = 0; for (int i=0; i 0) { if (str.length()... 阅读全文
posted @ 2016-09-16 23:06 blcblc 阅读(273) 评论(0) 推荐(0)
摘要: public class Solution { public boolean isSubsequence(String s, String t) { int idx = 0; for (int i=0; i<t.length()&&idx<s.length(); i++) { if (s.charAt(idx) == t.charA... 阅读全文
posted @ 2016-09-16 22:41 blcblc 阅读(119) 评论(0) 推荐(0)