Why this case is true?

  • 0

    s = ""
    p ="a***"
    The answer is true,
    s = "" p = "a***" is false.

    Could anyone explain the reason and how should we match if a pattern has consecutive''*'? Thanks!

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.