InterviewDB
Question
·
USA
Topmost Accessible Node: Find the Highest Ancestor a User Can Read Given Permission Rules
phone
Question Details
Problem You have a permission tree where each node has an id, a parent_id, and an access_level (0=public, 1=restricted, 2=private). A user has a clearance level. A node is accessible if user_clearance >= node.access_level AND all ancestors are accessible. Given a target node and a user clearance, find the topmost accessible ancestor — the highest node in the path from root to target that the user can access. If the root itself is accessible, return the root. Follow-ups If the root itself is inac…
Full Details
🔒
Unlock all Figma questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a figma interview during the phone round.
More Figma Interview Questions
LeetCode
Apollo.io | Senior Frontend Engineer | L5
1p3a
Figma Machine Learning Engineering Fulltime Onsite Interview Experience
InterviewDB
Design Elements Intersection: Find Overlapping Rectangles and Compute Intersection Areas
InterviewDB
Implement 2D Canvas: Build a Drawing Surface with Shape Rendering and Hit Testing
InterviewDB
Keyword Highlighting: Highlight Multiple Keywords in Text While Handling Overlapping Spans