Reported interview periodSep 2025–Aug 2026
Find Duplicate Files Efficiently
Walk a directory tree and return groups of files whose complete byte contents are identical.
Practice focusEach returned path must be absolute and resolved. Omit groups containing only one file. Group and path order are not significant. Requirements - Skip symbolic links and continue past files that become unreadable. - Treat multiple empty files as duplicates. - Avoid reading every byte of every file when cheap evidence can rule out equality. - A full-content comparison or collision-resistant digest must confirm every reported group. - Stream large files in bounded-size blocks rather than loading them entirely into memory.…