Skip to content

Commit a3a6181

Browse files
refactor 392
1 parent 5970640 commit a3a6181

File tree

1 file changed

+0
-23
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-23
lines changed

src/main/java/com/fishercoder/solutions/_392.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 392. Is Subsequence
5-
*
6-
* Given a string s and a string t, check if s is subsequence of t.
7-
8-
You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,000) string, and s is a short string (<=100).
9-
10-
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (ie, "ace" is a subsequence of "abcde" while "aec" is not).
11-
12-
Example 1:
13-
s = "abc", t = "ahbgdc"
14-
15-
Return true.
16-
17-
Example 2:
18-
s = "axc", t = "ahbgdc"
19-
20-
Return false.
21-
22-
Follow up:
23-
If there are lots of incoming S, say S1, S2, ... , Sk where k >= 1B, and you want to check one by one to see if T has its subsequence. In this scenario, how would you change your code?
24-
25-
*/
263
public class _392 {
274

285
public static class Solution1 {

0 commit comments

Comments
 (0)