Pattern First Occurrence
TikTok interview questions · Medium · Coding round · 6 tests
With only the * wildcard, the cleanest approach is to treat the pattern as ordered literal segments that must appear in sequence.
The full question, tests and reference solution are available with a plan that includes TikTok.
Run your code with Ctrl+Enter to see results.