Expected of isMatch("ac", "ab*c") should be 0


#1

Why is the expected output of isMatch(“ac”, “ab*c”) is 1 as per the website? Because as per the question,
'.’ Matches any single character.
'*’ Matches zero or more of the preceding element.


#3

’*’ matches zero means in the given input (“ac”, “ab*c”)

’b’ can be taken zero number of times due to presence of ‘*’ just after it and hence match our target string “ac”.