Layer Trees & Graph Templates
A Figma file is a tree before it is anything else. The page holds frames, a frame holds groups, a group holds shapes and text, and any of those can nest again to whatever depth a designer builds. That scene tree is the model the editor walks every frame to lay out and paint, and it is the model the coding round reaches for again and again. When a prompt talks about layers, frames, groups, or components, it is almost always asking you to traverse a tree or a graph and combine something as you go.
The rounds run on CoderPad, live and executable, and they often open with a blank file. No TreeNode class, no adjacency list, no parser to turn the input into a structure. You define the node, you build the test input, then you solve. The bar sits at a solid medium. The set is standard once you see past the framing: depth-first and breadth-first traversal, each iterative and recursive, plus the two graph workhorses of reachability and dependency ordering. What makes it Figma is the wrapper, a layer tree in place of a generic n-ary tree and a component graph in place of an anonymous set of edges.
children list built from parent indices, or a defaultdict(list) for a graph. Say why as you build. A layer holds any number of children, so this tree is n-ary. A component graph needs a visited set because instances can point back at shared components. This is partly a real-skill check and partly a Figma habit, because the product itself is a scene tree to the core and the editor never stops walking it. An interviewer who watches you lay down a clean structure in twenty seconds is watching someone who has modeled data before, not only memorized answers.- 4 problems, worked step by step
- about 14 min
Premium lessonFigma interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · Cancel anytime
Figma interview guideKnow what Figma asks before you walk in.
28 coding · 5 system design · 17 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.