Back to Questions

Shortest Word Distance

147.3K viewsAsked at Spotify
Easy

Question Explain

Given an array of strings `wordsDict` and two words `word1` and `word2`, return the shortest distance between the two words in the list.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Shortest Word Distance - Interview Question