Coding Q2 — File Deduplication
Asked at Anthropic · Coding Questions · Difficulty: Medium · Last asked Jun 23, 2026
Walk a directory tree and group duplicate files. Two-layer dedup: first by file size, then by content hash. The base problem is short; the follow-ups about IO/CPU bounds, hash choice, and scale dominate the round.
Loading the problem…