Back to problems

Implement a Duplicate-File Reporter

Object-Oriented Programming · Anthropic · Medium

A file scanner produces a list of strings, where each string describes one directory. The first token in the string is the directory path, and every remaining token is a file entry of the form filename(content). The content part is a non-empty sequence of lower-case letters and digits. An empty content marker, written as filename(), means the file could not be read or was changing during the scan; such files must be ignored. Two files are duplicates when their contents are…

Checking your access…