www

导航

2017年9月21日 #

二叉树和为某一值的路径

摘要: struct TreeNode { TreeNode *left; TreeNode *right; int val; }; void helper(TreeNode *root, vector &path, int currentsum, int sum) { path.push_back(root->val); currentsum += root-... 阅读全文

posted @ 2017-09-21 21:09 www_practice 阅读(133) 评论(0) 推荐(0) 编辑