Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityInterview Summary
I interviewed for a Senior Software Engineer position at Nextdoor after applying online. The company scheduled two technical interviews directly: one coding round and one system design round.
The coding question involved parsing streaming file system data and building a hierarchical structure with parent-child relationships, including cases where child nodes arrive before their parents. The system design round focused on designing Nextdoor's newsfeed, with particular emphasis on data consistency, caching, and pagination when ranking is handled by a black-box service.
Interview Details
Round 1 — Coding: Build a File System Tree from Streaming Data
The coding interview involved building a file system representation from structured input data. Unlike a typical LeetCode problem, this was a more practical implementation exercise involving input parsing, object-oriented design, and maintaining hierarchical relationships. The task required processing input records and organizing them into a tree-like file system structure.
The implementation needed to support:
- Input Parsing: Parse the provided input data into meaningful file system records.
- Node Representation: Design a node structure to represent entries in the file system.
- Parent-Child Relationships: Maintain the relationships between parent nodes and their children.
- Hierarchical Structure: Organize parsed records into the appropriate file system hierarchy.
- Streaming Input: Handle records arriving incrementally rather than assuming the entire input is available in advance.
Follow-Up 1 — Handling Child Nodes Before Parent Nodes
One important edge case involved the order in which records arrived. The interviewer asked how the implementation would handle a situation where a child node appeared in the input stream
Unlock Full Details
Create a free account to unlock this interview experience report.