← Amazon questions
CodingMedium

Minimum wildcards required to match all strings

Filed under Amazon

Given a set of strings, find the minimum number of '?' wildcards needed in a pattern such that the pattern matches every string in the set. A '?' matches any single character.

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.