Skip to main content
All Questions

Given a hierarchical file system with inherited and overridden permissions, write a function to determine whether a user has access to a file at a specific time.

Unlock detailed company stats for this questionUpgrade
Folders can allow or deny users or groups; permissions propagate down unless overridden; historical permission states matter because each change has a timestamp. Implement the access check and explain your approach.

Community answers

No answers contributed by the community yet.

Related courses

Course

Forward Deployed Engineering Interviews

Land your next role in forward deployed engineering (FDE) at top companies like Google, Anthropic, OpenAI, and startups. Learn from mock interviews, frameworks, and advice from senior candidates. Perfect your system design, coding, and behavioral interviews.

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.