listing. Each line describes one folder: first its path, then its files separated by spaces, each written as name(content). For example, the line "home/docs a.txt(hello) b.txt(world)" means the folder home/docs holds a file a.txt with the text hello and a file b.txt with the text world.
The full path of a file is the folder path, then /, then the file name, for example home/docs/a.txt.
Find every group of two or more files with identical content and return the groups as lists of full paths. The order of the groups and of the paths inside each group does not matter.listing=["home/docs a.txt(hello) b.txt(world)", "home/pics c.txt(hello)", "home d.txt(bye)"] → [['home/docs/a.txt', 'home/pics/c.txt']]
Only home/docs/a.txt and home/pics/c.txt share the same content, hello. The other files are unique.
listing=["disk x.txt(42) y.txt(42) z.txt(42)", "disk/tmp w.txt(7)"] → [['disk/x.txt', 'disk/y.txt', 'disk/z.txt']]
Three files in the same folder have equal content and form one group.
listing=["root a.txt(one)", "root/b c.txt(two)"] → []
/; a file name uses English letters, digits and dots; content is a non-empty string of English letters and digitslisting=["home/docs a.txt(hello) b.txt(world)", "home/pics c.txt(hello)", "home d.txt(bye)"]
[['home/docs/a.txt', 'home/pics/c.txt']]
Run checks the first 3 tests in your browser. Submit checks all 48 tests on the server, hidden ones included.