摘要: 前序遍历 递归写法 class Solution { public: vector<int> preorderTraversal(TreeNode* root) { vector<int> res, leftRes, rightRes; if(root == nullptr) return res; 阅读全文
posted @ 2020-07-13 16:54 imagineincredible 阅读(114) 评论(0) 推荐(0) 编辑