Loading...
Given a list of words and two different words, find the shortest distance between them in the list (measured by index difference).
practice,makes,perfect,coding,makes practice coding
3
practice, makes, perfect, coding, makespractice and codingpractice is at index 0 and coding is at index 3