摘要: https://leetcode.cn/problems/insert-into-a-binary-search-tree/ 推荐使用没有返回值的方法,因为比较好想233 递归法: class Solution { public: TreeNode* pre=nullptr; TreeNode* i 阅读全文
posted @ 2024-05-10 11:14 风乐 阅读(9) 评论(0) 推荐(0)