Scripting: a file-manipulation problem in a language of your choice (Python used) that amounted to finding duplicates.
Asked in the Round 1 (Scripting + Linux Internals) stage. Solved in ~15 minutes.
Implement find_duplicate_files(files). The input is an array of maps, each containing a unique path string and a content string. Return an array of groups, where each group contains paths whose contents are identical. Include only groups with at least two paths. Preserve input order within groups and order groups by the first path encountered.
def find_duplicate_files(files):