Word Wrap Problem
Filed under Flipkart
The question
Implement a word wrap utility with constraints on maximum characters per line, maximum spaces at line ends, hyphenation rules for long words, avoiding invalid starting punctuation, and minimizing total cost.
No write-up yet. Related questions below have one.
Related Flipkart questions
Collected from public candidate posts and coding forums. Updated Nov 2026.