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

Method __lt__

sorts/patience_sort.py:24–25  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

22@total_ordering
23class Stack(list):
24 def __lt__(self, other):
25 return self[-1] < other[-1]
26
27 def __eq__(self, other):
28 return self[-1] == other[-1]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected