Remove adjacent words with common first two letters
Filed under ICU Medical
The question
Find and remove adjacent words that share the same first two letters. The interviewer added a constraint that if three adjacent words share the same first two letters, they should not be removed.
No write-up yet. Related questions below have one.
Related ICU Medical questions
Collected from public candidate posts and coding forums. Updated Nov 2026.