Back to problems

Find Duplicate Files + Follow-ups on Optimization and Distributed Systems

System Design · OpenAI · Easy

Problem You are given a collection of file records. Each record contains a path, the file's contents, and optional metadata. Return the groups of files whose contents are exactly identical. Metadata and paths do not affect whether two files are duplicates. Only groups containing at least two files should appear in the result. Preserve the input order within each group, and list the groups according to the first file from each group encountered in the input. A suitable…

Checking your access…