SoloMedium20m

The Command Helper That Missed a Near Match

### P2 · A nearby label disappears A fictional command-label helper receives deply. Its known labels include deploy, but the starter offers no suggestion under the fixed threshold.

Your task: Repair only edit_distance(left, right) in distance.py under the README's exact unit-cost edit contract. Preserve validation and the public interface. Do not widen the threshold or alter the frozen labels.

Investigate: Run python monitor.py and python -m unittest discover -v. Cover empty inputs, repeated symbols, shifts and exact Unicode code points. Open a PR against main with test evidence.

This helper only displays labels; it never executes commands. The dataset and incident are authored. Local checks are not live GetIn integration certification.

Skills you'll prove

pythonedit-distancealgorithmstestingdebuggingbook-vs-prod

Interview Tip

I distinguished positional mismatch from minimum edit cost and defined exactly what counts as a character. I verified insertion, deletion and substitution cases, used a bounded dynamic program, and checked a short-string edit-graph oracle rather than testing only the visible typo.

Browse freely — sign in when you're ready to open a ticket and prove your skills.