e.g. "aa", "a**"
No, no need. We shall assume the p string follows the regular matching "grammar", where no consecutive * exists.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.