Compute File Size on Disk
Implement computeSizeOnDisk(clusterSize, fileSize) to calculate the physical disk space allocated to a file.
Disk space is allocated in fixed-size clusters. A partially used final cluster still con...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
