MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

data_structures/binary_tree/avl_tree.py:17–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15
16class MyQueue:
17 def __init__(self) -> None:
18 self.data: list[Any] = []
19 self.head: int = 0
20 self.tail: int = 0
21
22 def is_empty(self) -> bool:
23 return self.head == self.tail

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected