摘要: leetcode 173. 二叉搜索树迭代器:实现一个二叉搜索树迭代器类BSTIterator ,表示一个按中序遍历二叉搜索树(BST)的迭代器。 阅读全文
posted @ 2021-03-28 17:50 zju_cxl 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 给定一个二叉树的根节点 root ,返回它的 中序 遍历。使用递归、迭代、染色(迭代的另一种方法)三种方法实现。 阅读全文
posted @ 2021-03-28 17:44 zju_cxl 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 解决MemoryError: Cannot allocate write+execute memory for ffi.callback() 问题 阅读全文
posted @ 2021-03-28 17:02 zju_cxl 阅读(1395) 评论(0) 推荐(0) 编辑