思路1

用个 hash 加速查找 pre 中第一个节点在 in 中的位置

注意新建的node一定要用new,不然局部变量不会存在在其作用域之外。

Last updated