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

Method get_dict

sorts/external_sort.py:66–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.buffers = dict.fromkeys(range(self.num_buffers))
65
66 def get_dict(self):
67 return {
68 i: self.buffers[i] for i in range(self.num_buffers) if i not in self.empty
69 }
70
71 def refresh(self):
72 for i in range(self.num_buffers):

Callers 1

mergeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected