MCPcopy
hub / github.com/TheAlgorithms/Python / NWayMerge

Class NWayMerge

sorts/external_sort.py:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47class NWayMerge:
48 def select(self, choices):
49 min_index = -1
50 min_str = None
51
52 for i in range(len(choices)):
53 if min_str is None or choices[i] < min_str:
54 min_index = i
55
56 return min_index
57
58
59class FilesArray:

Callers 1

sortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected