# Minimum Distance to the Target Element (LeetCode 1848) ## Approach Scan for target values and keep the closest index distance to start. ## Tip Say the invariant out loud before coding so the interviewer sees your structure. Interview prep notes. Rehearse the walk-through with [official website](https://www.linkjob.ai/).