Shortest Word Distance II
Understand how to build and implement a custom data structure that takes an array of strings and quickly computes the shortest distance between any two distinct words. This lesson guides you through initializing the WordDistance class and using its method to solve multiple queries efficiently.
We'll cover the following...
We'll cover the following...
Statement
Design a data structure that takes in an array of strings and efficiently computes the shortest distance between ...