MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / select

Method select

sorts/external_sort.py:48–56  ·  view source on GitHub ↗
(self, choices)

Source from the content-addressed store, hash-verified

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 3

mergeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected