Skip to content

Commit c28925b

Browse files
committed
Update binary-tree-postorder-traversal.cpp
1 parent aa39a9e commit c28925b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/binary-tree-postorder-traversal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class Solution2 {
6161
vector<int> res;
6262
stack<pair<TreeNode *, bool>> s;
6363
s.emplace(root, false);
64-
bool visited;
6564
while (!s.empty()) {
65+
bool visited;
6666
tie(root, visited) = s.top();
6767
s.pop();
6868
if (root == nullptr) {

0 commit comments

Comments
 (0)