diff options
Diffstat (limited to 'binary_tree_zigzag.cpp')
-rw-r--r-- | binary_tree_zigzag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binary_tree_zigzag.cpp b/binary_tree_zigzag.cpp index 641fc41..186a99f 100644 --- a/binary_tree_zigzag.cpp +++ b/binary_tree_zigzag.cpp @@ -6,11 +6,11 @@ class Solution { public: - vvd(int) zigzagLevelOrder(TreeNode *root) { + vvd zigzagLevelOrder(TreeNode *root) { if (!root) return {}; queue<TreeNode *> q; - vvd(int) ans; + vvd ans; q.push(root); int level = 0; while (!q.empty()) { |