โ† Amazon questions

Substring Search Implementation

Filed under Amazon

Implement a substring search function to determine if a pattern string (needle) exists within a text string (haystack), returning true if found and false otherwise.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.