Design the core of a text editor: lines of text and a cursor that moves up, down, left, right and by pages — with every operation's cost in mind.
Design the core of a text editor: lines of text and a cursor that moves up, down, left, right and by pages — with every operation's cost in mind.
Opens with the full question.