Problem 1618 · Medium

Maximum Font to Fit a Sentence in a Screen

Binary search over ascending font sizes: a size works when its summed glyph widths and its height both fit the screen.

Open the interactive visualisation