InterviewDB
Experience
·
Los Angeles
DOM Tree Manipulation - Build and Query a Simplified HTML DOM
phone
Interview Experience
Problem Implement a simplified in-memory DOM tree. Each node has a tag, optional id, a list of classes, and child nodes. Example Follow-ups How would you support a descendant combinator, e.g., "div p" (all <p> inside <div>)? Implement innerHTML that serializes the subtree back to an HTML string. What traversal strategy does query_selector use? Why BFS vs. DFS matters here. How do you handle query_selector on a very deep tree (10K levels) without stack overflow?
Full Details
🔒
Unlock all Affirm questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a affirm interview during the phone round.
It covers the following topics: Strings, Phone, Graph, Coding, Onsite, Stack .
More Affirm Interview Questions
1p3a
affirm fulltime software engineer tech phone screen interview overview
InterviewDB
Card Game - OOD Deck, Hand, and Turn-Based Game Engine
1p3a
Affirm Full-Time Tech Phone Screen Interview Experience
InterviewDB
Decision Tree - Implement Predict Traversal for a Binary Classification Tree
InterviewDB
Dispute Status - State Machine for Payment Dispute Lifecycle