Back to problems

Find duplicate files and apply image operations

Algorithm · Anthropic · Hard

Part 1 — Duplicate File Detection You are given an array paths of strings. Each string begins with a directory path, followed by one or more file entries of the form name(content). A full file path is the directory path followed by / and the file name. Two files are considered duplicates when their content strings are identical. Return every content group that contains at least two files. Each group should list the full paths of all files with that shared content. For…

Checking your access…