← Goldman Sachs questions

Calculate minimum distance between two strings in a paragraph

Filed under Goldman Sachs

Given two target strings and a paragraph containing them, calculate the minimum distance (in terms of word indices) between the two strings, ignoring case and punctuation, and divide the result by 2.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.