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

Method __lt__

data_structures/heap/min_heap.py:13–14  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

11 return f"{self.__class__.__name__}({self.name}, {self.val})"
12
13 def __lt__(self, other):
14 return self.val < other.val
15
16
17class MinHeap:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected