Questions › Technical PM › Top-Interview
Write a program that scans the file system to identify and report duplicate files, handling real files, extensions, and file reading operations.
- Technical PM
- Top-Interview
- Medium
- 10 min
Focus on outlining a clear approach for scanning the file system, emphasizing how you will handle real files and their extensions. Start by discussing how you would traverse directories and read file contents, considering edge cases like symbolic links and permission issues. Explain your strategy for identifying duplicates, such as using hash functions to compare file contents efficiently. Be prepared to discuss how your program will report findings, including potential user-friendly output formats. Finally, consider performance implications and how you would optimize the scanning process for large file systems.
What this question tests
- Technical PM
- Structured problem solving
- Communication
- Trade-off reasoning
Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.
Related Technical PM questions
- Build a web crawler with multi-threading.Top-Interview · Technical PM · Easy
- Design an end-to-end batching system for LLM queries.Top-Interview · Technical PM · Easy
- Develop a strategy for OpenAI's fine-tuning capabilities using publicly available docs.Top-Interview · Technical PM · Easy
- What is DevOps?Top-Interview · Technical PM · Easy
- How would you position Cosmos?Top-Interview · Technical PM · Easy
- Have you worked with AI or generative AI products before?Top-Interview · Technical PM · Easy
All Technical PM questions · Product manager interview questions by skill area