Interview DigestInterview Digest

OA Practice Workspace

Technical2026-09-29

Design an algorithm to detect and list duplicate files within a folder by comparing their content.

AI-Expanded — inferred from the question title, not from the original candidate report

Given a root directory path, design an algorithm to identify and return a list of all duplicate files by comparing their actual content rather than just their names or metadata. Your solution should efficiently handle large datasets by minimizing unnecessary file reads and must account for potential memory constraints when processing files of varying sizes.

Context & Summary

The candidate was asked to design an algorithm to identify and list duplicate files based on their content within a directory.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.