Loading...

The File Size Profiler

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
junior, mid

Problem

The infra team suspects certain file types are hogging disk, but nobody has the numbers. Given file metadata strings ('filepath size_bytes timestamp'), calculate total storage per file extension. Files without extensions go under 'no_ext'. Treat extensions as case-insensitive.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.