0467. Unique Substrings in Wraparound String
Description
**Input:** p = "a"
**Output:** 1
Explanation: Only the substring "a" of p is in s.**Input:** p = "cac"
**Output:** 2
**Explanation:** There are two substrings ("a", "c") of p in s.**Input:** p = "zab"
**Output:** 6
**Explanation:** There are six substrings ("z", "a", "b", "za", "ab", and "zab") of p in s.ac
Last updated