Consider an infinite wraparound string base formed by repeating the lowercase English alphabet indefinitely: "...zabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz...".
Given a string s, return the number of unique non empty substrings of s that also appear as substrings in base.
Constraints:
s.length
s consists of lowercase English letters.
Consider an infinite wraparound string base formed by repeating the lowercase English alphabet indefinitely: "...zabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz...".
Given a string s, return the number of unique non empty substrings of s that also appear as substrings in base.
Constraints:
s.length
s consists of lowercase English letters.