Please expalin the ques


please explain the ques


(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 will repeat two times -> b , b


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


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*”.