InterviewDB Question

String Layout: Word Wrap and Text Justification in a Fixed-Width Container

Question Details

Problem Given a list of words and a line width W, implement full text justification (like a word processor). Words on each line (except the last) must be spaced so the total line length equals exactly W. Spaces are distributed as evenly as possible;…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Android Coding Frontend Onsite Ios Strings