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

Method select

sorts/external-sort.py:47–55  ·  view source on GitHub ↗
(self, choices)

Source from the content-addressed store, hash-verified

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

Callers 1

mergeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected