The problem should state isMatch("a",".") is true while isMatch(".", "a") is false!!!

  • 0

    I thought both strings could be able to interpret using the regular expression rule. But it turns out the first string is just itself, and only the second one can be interpreted.

    I think the problem statement is not clear enough. Wasted so much time...

    Hopefully anyone else see this post would not misunderstand the problem as I did.

Log in to reply

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