Uber logoUber
CodingMembers

Shortest Word Distance

Members only

Given an array of strings and two distinct words that both appear in it, return the minimum index distance between any occurrence of the two words.

SWE
array
two-pointer
string
easy
Frequency
Single report
Last asked
2026-03-13
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...