Shortest Word Distance Queries

Quick Overview

Preprocess a fixed word sequence so repeated word-pair queries return their exact minimum index distance without rescanning the full input.

Shortest Word Distance Queries

Company: LinkedIn

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: Preprocess a fixed word sequence so repeated word-pair queries return their exact minimum index distance without rescanning the full input.

LinkedIn logo
LinkedIn
Sep 1, 2026
hardSoftware EngineerTechnical ScreenCoding & Algorithms
15
0
Loading...