Per-Position Match Signal Between Two Strings

Asked at Tesla · Coding Questions · Difficulty: Medium · Last asked Jun 3, 2026

A word game compares a guess with a secret target of the same length and reports, for every position of the guess, whether its character is in the right place, present at another place, or absent. Implement that report.

Loading the problem…