MCPcopy Create free account
hub / github.com/algorithm006-class02/algorithm006-class02 / merge

Function merge

Week_01/G20200343030608/heapq.py:222–257  ·  view source on GitHub ↗

Merge multiple sorted inputs into a single sorted output. Similar to sorted(itertools.chain(*iterables)) but returns a generator, does not pull the data into memory all at once, and assumes that each of the input streams is already sorted (smallest to largest). >>> list(merge([1,

(*iterables)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

findCircleNumMethod · 0.50

Calls 1

heapifyFunction · 0.85

Tested by

no test coverage detected