• + 2 comments

    Oh yeah, "simple text editor" is exactly the place to trade time for space - your average "imaginary editor user" requests 100 undos per millisecond and has petabytes of RAM. Really, guys, some common sense is as important as your readiness to time your python code. So is the ability to pay attention to the requirements - while there is no explicit requirement to use stacks, the problem still is in "Data Structures > Stacks" category - shouldn't the solution reflect that?