The test case need to be improved.


  • -1
    K

    if s="ab" and p="*", i think the answer should be false. However, i found the solution in the forum will regard it as true. and it can pass the test cases.


  • 1
    V

    isMatch("ab" , * ) must return true as * can match any sequence of characters even a sequence with different characters


Log in to reply
 

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