What is best data structure suitable to implement editor like notepad?

后端 未结 6 814
抹茶落季
抹茶落季 2021-01-31 12:15

Which data structure/s is used in implementation of editors like notepad. This data structure should be extensible, and should support various features like edition, deletion, s

6条回答
  •  独厮守ぢ
    2021-01-31 12:47

    The usual thing is to have something like a list or array of arrays of characters. There has been a lot of stuff done on this over the years: you might have a look at this google search.

提交回复
热议问题