Any test case for *p=".******", there exists consecutive *

  • 4

    is this case valid? i.e. p=".********************************", *p="afava.*******cdada"

  • 0

    I don't think p = "." is valid. According to the description, "a" represent zero or more 'a's. However, if ''s are consecutive, there is no meaning of that. So there must be restriction that each each '' must comes after another character.

Log in to reply

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