← Amazon questions

Reconstruct String Without Spaces

Filed under Amazon

Given a string with all spaces removed and a dictionary of valid words, reconstruct the original sentence by inserting spaces. Return any valid segmentation if multiple exist, or solve the Word Break…

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 Amazon questions

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