Skip to content

Commit 1132861

Browse files
committed
Update binary-search-tree-iterator.cpp
1 parent d3f4433 commit 1132861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/binary-search-tree-iterator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ class BSTIterator {
2727
s_.emplace(cur_);
2828
cur_ = cur_->left;
2929
}
30-
cur_ = s_.top(); // Left most node.
30+
cur_ = s_.top(); // Left most node.
3131
s_.pop();
3232

3333
const auto *node = cur_;
34-
cur_ = cur_->right; // Visit right child.
34+
cur_ = cur_->right; // Visit right child.
3535

3636
return node->val;
3737
}

0 commit comments

Comments
 (0)