Open jaybamroliya opened 3 years ago
I want to work on this issue @KhushbooGoel01 .please assign this to me
@jaybamroliya I don't understand the issue? please write issues carefully. Do you want to add this question? mention that. provide the link to the question.
There should be a Binary Tree Right Side view using recursion traversal
Code
class Solution { public: map<int, int> rightside; void find(TreeNode* root, int num){ if(root == NULL) return; rightside[num] = root->val; find(root->left, num+1); find(root->right, num+1); }
}