Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ stack_using_two_queues.py
File
stack_using_two_queues.py
data_structures/stacks/stack_using_two_queues.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
__future__
import
annotations
2
3
from
collections
import
deque
4
from
dataclasses
import
dataclass, field
Callers
nothing calls this directly
Calls
4
StackWithQueues
Class · 0.85
push
Method · 0.45
pop
Method · 0.45
peek
Method · 0.45
Tested by
no test coverage detected