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

Method __eq__

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

Source from the content-addressed store, hash-verified

25 return self[-1] < other[-1]
26
27 def __eq__(self, other):
28 return self[-1] == other[-1]
29
30
31def patience_sort(collection: list) -> list:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected