Loading docs/ds/cartesian-tree.md +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ author: sshwy, zhouyuyang2002, StudyingFather, Ir1d, ouuan, Enter-tainer ```text 新建一个大小为 n 的空栈。用 top 来标操作前的栈顶,k 来标记当前栈顶。 For i:=1 to n int k = top k := top While 栈非空 且 栈顶元素 > 当前元素 k-- if 栈非空 Loading Loading
docs/ds/cartesian-tree.md +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ author: sshwy, zhouyuyang2002, StudyingFather, Ir1d, ouuan, Enter-tainer ```text 新建一个大小为 n 的空栈。用 top 来标操作前的栈顶,k 来标记当前栈顶。 For i:=1 to n int k = top k := top While 栈非空 且 栈顶元素 > 当前元素 k-- if 栈非空 Loading