[LeetCode] Shortest Word Distance

1 · · May 16, 2024, 1:54 p.m.
Summary
243. Shortest Word Distance Given an array of strings wordsDict and two different strings that already exist in the array word1 and word2, return the shortest distance between these two words in the list. ...