how to understand isMatch("ab", ".*") → true


  • 0
    C

    If the "." match 'a' then the "" Matches zero or more of the preceding element('a')
    If the "." match 'b' then the "
    " Matches zero or more of the preceding element('b')

    then how to understand : how to understand isMatch("ab", ".*") → true


Log in to reply
 

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