uacs2024

导航

2022年10月28日 #

leetcode145-二叉树的后序遍历 ps:后序遍历的迭代法感觉远远比前序中序的迭代法要难

摘要: 145. 二叉树的后序遍历 class Solution { public: vector<int> res; void Tracking(TreeNode* root) { if(root==nullptr) return; Tracking(root->left); Tracking(root- 阅读全文

posted @ 2022-10-28 19:42 ᶜʸᵃⁿ 阅读(12) 评论(0) 推荐(0) 编辑