Skip to content

Commit f2205a1

Browse files
committed
Attach NOTES - LeetHub
1 parent 5ea4f0a commit f2205a1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

392-is-subsequence/NOTES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
1+
```
2+
let i =0, j =0;
3+
while(i< s.length){
4+
if(j >= t.length) return false;
5+
if(s[i] === t[j]){
6+
i++; j++
7+
}else{
8+
j++
9+
}
10+
}
11+
return true;```

0 commit comments

Comments
 (0)