Shortest Word Distance II
Try to solve the Shortest Word Distance II problem.
We'll cover the following...
Statement
Design a data structure that takes in an array of strings and efficiently computes the shortest distance between any two different strings in the array.
Implement the WordDistance class:
Ask