MCPcopy 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

getMethod · 0.95
putMethod · 0.95
rotateMethod · 0.95

Tested by

no test coverage detected