by viraptor · 6y ago · 0 comments
That immediately brings Tex box badness to my mind. And the related line wrapping algorithm: http://www.tug.org/TUGboat/tb21-3/tb68fine.pdf
Good spotting BTW, the line wrapping algorithm (where each tweet is a "line") is a perfect match for the post you are responding to.
When doing programming competitions, you're often trying to figure out what standard algorithm is similar to the problem and how you need to tweak it to match.