3407. Substring Matching Pattern

Share this post on:

This easy is easier than yesterday’s easy.

New tech: str.find(sub) / str.rfind(sub). find the first/last index of sub. if sub == “”, return 0/n; if sub not in str, return -1.

Share this post on:

Leave a Reply

Your email address will not be published. Required fields are marked *