GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/src/IsSubsequence.java at master · LeBW/leetcode Expand file tree/ Copy pathIsSubsequence.javaMore file actions 16 lines (16 loc) · 361 Bytes / Copy pathIsSubsequence.javaFile metadata and controls16 lines (16 loc) · 361 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 /** * 392. Is Subsequence * @author LBW */ public class IsSubsequence { 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 += 1; } j += 1; } return i == s.length(); } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |