Measure the Closest Occurrences of Two Different Words
Company: Snowflake
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Measure the Closest Occurrences of Two Different Words. Given wordsDict and two distinct words occurring in it, return the minimum absolute difference between an index of word1 and an index of word2. Indices are zero