AlgoMaster Logo

Wildcard Matching

s=aa,p=a
0 / 6
s = "aa"p = "a" ? one, * any runpattern (j)s (i)01a012aaFFFFFFdoes "aa" match "a"? the whole string, not a substring
algomaster.io
Step:Does "aa" match the pattern "a"? (? = any char, * = any run)