diff options
Diffstat (limited to 'path_sum2.cpp')
-rw-r--r-- | path_sum2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/path_sum2.cpp b/path_sum2.cpp index 3e64ee3..3ccfc65 100644 --- a/path_sum2.cpp +++ b/path_sum2.cpp @@ -2,15 +2,15 @@ class Solution { public: - vvd(int) pathSum(TreeNode *root, int targetSum) { - vvd(int) ans; + vvd pathSum(TreeNode *root, int targetSum) { + vvd ans; vector<int> d; dfs(root, targetSum, d, ans); return ans; } private: - void dfs(TreeNode *root, int targetSum, vector<int> d, vvd(int) & ans) { + void dfs(TreeNode *root, int targetSum, vector<int> d, vvd & ans) { if (root == NULL) return; d.push_back(root->val); |