We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2fa414 commit 2edebe4Copy full SHA for 2edebe4
C++/257. Binary Tree Paths.cpp
@@ -18,7 +18,6 @@ class Solution {
18
return res;
19
}
20
21
-private:
22
void DFS(TreeNode* root, vector<string>& res, string path){
23
path += to_string(root->val);
24
if(root->left || root->right) path += "->";
0 commit comments