摘要: 借助链表实现: class BSTIterator { final List<TreeNode> treeList; int currentPoint; int length; public BSTIterator(TreeNode root) { treeList = new LinkedList 阅读全文
posted @ 2020-07-19 23:44 牛有肉 阅读(170) 评论(0) 推荐(0) 编辑