

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