We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dfdd5e commit 40cbc19Copy full SHA for 40cbc19
Python/implement-stack-using-queues.py
@@ -62,6 +62,7 @@ def top(self):
62
def empty(self):
63
return self.q_.empty()
64
65
+
66
# Time: push: O(1), pop: O(n), top: O(1)
67
# Space: O(n)
68
class Stack2:
0 commit comments