Find Duplicate Files Without a Directory-Walking Utility

Given a root path root in a local file system, find all duplicate files in that directory and all of its subdirectories.

Two files are duplicates if and only if their byte contents are exactly ...

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: