Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TheAlgorithms/Python
/ get_number_blocks
Method
get_number_blocks
sorts/external_sort.py:124–125 ·
view source on GitHub ↗
(self, filename, block_size)
Source
from the content-addressed store, hash-verified
122
splitter.cleanup()
123
124
def
get_number_blocks(self, filename, block_size):
125
return
(os.stat(filename).st_size / block_size) + 1
126
127
128
def
parse_memory(string):
Callers
1
sort
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected