Count Encrypted Files in a Directory Tree

You are given file records. Each record contains a file's absolute path and whether the file is encrypted. Paths are separated by /, and directories may be nested.

Implement a function that, given ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: