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.