Highlight Whole-Word Matches and Merge Overlapping Spans
Company: Harvey
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: Highlight exact whole-word phrases, reject partial-word matches, merge overlapping text spans, and insert tags without shifting search positions.
Read the full Harvey Software Engineer interview experience this question came from