Shortest Distance Between Two Words, Called Many Times (LC 244)
Also reported as Shortest Word Distance II
Phone ScreenLinkedInLast reported October 2026Medium Frequency
Reported
4× across candidate reports
First seen
December 2025
Last reported
October 2026
Reported outcome
pass
Problem Overview
LinkedIn phone-screen question, reconstructed from 4 candidate reports (December 2025 to October 2026). The write-up includes a Python solution that passes 6 test cases.
The full problem statement — full requirements, constraints, and edge cases
Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full LinkedIn catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every LinkedIn question.