Skip to content

Commit 1f86c40

Browse files
refactor 467
1 parent dd49b92 commit 1f86c40

File tree

1 file changed

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

1 file changed

+0
-25
lines changed

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

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

3-
/**
4-
* 467. Unique Substrings in Wraparound String
5-
*
6-
* Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz",
7-
* so s will look like this: "...zabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd....".
8-
* Now we have another string p.
9-
* Your job is to find out how many unique non-empty substrings of p are present in s.
10-
* In particular, your input is the string p and you need to output the number of different non-empty substrings of p in the string s.
11-
* Note: p consists of only lowercase English letters and the size of p might be over 10000.
12-
13-
Example 1:
14-
Input: "a"
15-
Output: 1
16-
Explanation: Only the substring "a" of string "a" is in the string s.
17-
18-
Example 2:
19-
Input: "cac"
20-
Output: 2
21-
Explanation: There are two substrings "a", "c" of string "cac" in the string s.
22-
23-
Example 3:
24-
Input: "zab"
25-
Output: 6
26-
Explanation: There are six substrings "z", "a", "b", "za", "ab", "zab" of string "zab" in the string s.
27-
*/
283
public class _467 {
294
public static class Solution1 {
305
/**

0 commit comments

Comments
 (0)