Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ solution.py
File
solution.py
Hackerrank_problems/Queue using Two Stacks/solution.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
Queue:
2
""
"
3
A queue using two stacks (head and tail), the head
4
stack keeps the elements in a queue order, it means
Callers
nothing calls this directly
Calls
4
enqueue
Method · 0.80
print_top
Method · 0.80
Queue
Class · 0.70
dequeue
Method · 0.45
Tested by
no test coverage detected