Skip to content

Commit 860cc55

Browse files
committed
feature/Added-StackUsingTwoQueues
1 parent c36e0c4 commit 860cc55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

data_structures/stacks/TwoQueuedStack.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ def pop(self):
3939
And since stack follows Last In First Out (L.I.F.O) order the
4040
following has been implemented.
4141
"""
42-
popped = self.queue1[0]
43-
self.queue1.pop(0)
42+
popped = self.queue1.pop(0)
4443
return popped
4544
else:
4645
return None

0 commit comments

Comments
 (0)