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…
More Tesla interview questions
- Transformer Block with a Manual Backward Pass
- K-Means Clustering on Image Patches
- MDP Value Iteration and Policy Iteration
- Trajectory Waypoint Distance Queries
- CNN, Residual Connections and Activation Function Fundamentals
- Rollback-Capable KV Store with Nested Transactions