← PayPal questions

Word occurrences across files in a directory

Filed under PayPal

Write a program to read all files in a specified directory and return a dictionary where each key is a filename and each value is another dictionary mapping words found in that file to their frequency…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.