LeetCode Question · Mar 2020 · Los Angeles

Linkedin | Phone | Shortest Word Distance

10 upvotes 2,855 views 2 replies

Question Details

Basically same as Given an array of string words, word A and word B. Return shortest distance between two words in the array. My solution is hashmap + two pointers. A bit...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Hash Table Strings Two Pointers