Find Word Pair Indices Within K Distance
CodingPhoneSoftware EngineerReported Nov, 2026New
Company question banks are included with the Insider plan.
You are given a string text of words separated by single spaces, a string query made of exactly two different words separated by a single space, and an integer k.
Number the words of text from...