Please expalin the ques


#1

please explain the ques


#2

(asterisk / star) simply means repeat previous character as many times as you want(including zero times).
aab , cab => 1
because c* -> c will repeat zero times -> aab , ab
a
-> a will repeat two times -> b , b


#3

how is isMatch("", “abc*”) zero then?


#4

because the preceding character of * i.e. the last character before * can be repeated 0 or more times. But the input string should also match the first two characters “ab” before it comes to “c*”.