Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ front
Method
front
data_structures/queues/queue_on_pseudo_stack.py:50–54 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
48
@
return
item at front of self.stack
""
"
49
50
def
front(self) -> Any:
51
front = self.get()
52
self.put(front)
53
self.rotate(self.length - 1)
54
return
front
55
56
""
"Returns the length of this.stack"
""
57
Callers
nothing calls this directly
Calls
3
get
Method · 0.95
put
Method · 0.95
rotate
Method · 0.95
Tested by
no test coverage detected