aboutsummaryrefslogtreecommitdiff
path: root/vertical_order_bst.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vertical_order_bst.cpp')
-rw-r--r--vertical_order_bst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vertical_order_bst.cpp b/vertical_order_bst.cpp
index e8bf5bf..a429d4d 100644
--- a/vertical_order_bst.cpp
+++ b/vertical_order_bst.cpp
@@ -2,7 +2,7 @@
class Solution {
public:
- vvd(int) verticalTraversal(TreeNode *root) {
+ vvd verticalTraversal(TreeNode *root) {
map<int, map<int, multiset<int>>> mmm;
queue<pair<TreeNode *, pair<int, int>>> qpp;
qpp.push({root, {0, 0}});
@@ -17,7 +17,7 @@ public:
if (node->right)
qpp.push({node->right, {x + 1, y + 1}});
}
- vvd(int) ans;
+ vvd ans;
for (auto q : mmm) {
vector<int> col;
for (auto p : q.second)