Algorithm · Databricks · Medium
Counting Encrypted Files in a Directory Medium · Topics · Company Tags · Hints You are given a list of file records, each consisting of an absolute path and an encryption status (0 for plain, 1 for encrypted). Paths use / as the separator, and directories can be nested arbitrarily. Write a program that accepts a query directory path and returns how many encrypted files are located inside that directory and any of its descendant subdirectories. A file is considered to reside…
Checking your access…