Skip to content

Commit c40a1f4

Browse files
committed
Update implement-stack-using-queues.cpp
1 parent 67b59b3 commit c40a1f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/implement-stack-using-queues.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Stack {
1414
}
1515
}
1616

17-
// Removes the element on top of the stack.
17+
// Remove the element on top of the stack.
1818
void pop() { // O(1)
1919
q_.pop();
2020
}
@@ -43,7 +43,7 @@ class Stack2 {
4343
top_ = x;
4444
}
4545

46-
// Removes the element on top of the stack.
46+
// Remove the element on top of the stack.
4747
void pop() { // O(n)
4848
for (int i = 0; i < q_.size() - 1; ++i) {
4949
top_ = q_.front();

0 commit comments

Comments
 (0)