note.txt

来自「tongji acm-online judge solution」· 文本 代码 · 共 9 行

TXT
9
字号
the algorithm in "ex.dpr" and algorithm "ex2.dpr" is identic ,i.e. time complexities are both O(N).
The memory complexity of "ex.dpr" is O(N), but that of "ex2.dpr" is O(1).
D[i] in "ex.dpr" is the i-th char in text.
GetChar(i) for a Buffer in "ex2.dpr" is instead of D[i]. D[i] is equals to GetChar(i).
For each operation, only use D[i] and D[i+1], so Buffer has two chars.



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?