Implement the Linux find command as an API.
Your API should support searching for files that match:
- A size requirement
- A filename pattern
Assume the filesystem is represented as a tree-like structure of directories and files.
Your job:
Design and implement a find-like API that searches the file system and returns all files that satisfy the given filters.
Do a DFS traversal of the filesystem tree and apply a chain of filters (size filter, name filter). Include a flexible filter interface.
The VOprep team has long accompanied candidates through various major company OAs and VOs, including Google, Amazon, Citadel, SIG, providing real-time voice assistance, remote practice, and interview pacing reminders to help you stay smooth during critical moments. If you are preparing for these companies, you can check out our customized support plans—from coding interviews to system design, we offer full guidance to help you succeed.