Karat logoKarat
CodingMembers

Word Wrap and Full Justification for a Text Editor

Members only

A two-part string-layout problem built around a word-processor feature, with a follow-up that changes how the output lines must look. The tricky parts are the boundary checks and keeping the bookkeeping exact under time pressure.

SWE
medium
string
greedy
string-processing
simulation
Frequency
Single report
Last asked
—
Stage
phone-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 6 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...