Questions › Technical PM › Top-Interview
Given a nested merchandise catalog dictionary, extract attributes for a specific item and traverse related items recursively to build the full relationship tree.
- Technical PM
- Top-Interview
- Hard
- 20 min
Focus on demonstrating your understanding of data structures, particularly dictionaries and recursion. Start by clearly defining the structure of the nested merchandise catalog and the specific item you need to extract. Then, outline your approach to traverse the catalog recursively, ensuring you explain how you will handle related items and maintain the relationship tree. Be prepared to discuss edge cases, such as items with no related products or circular references, and how your solution will address these scenarios. Finally, consider the efficiency of your algorithm and any potential optimizations you might implement.
What this question tests
- Technical PM
- Structured problem solving
- Communication
- Trade-off reasoning
Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.
Related Technical PM questions
- Group anagramsTop-Interview · Technical PM · Hard
- Design an application performance monitoring system.Top-Interview · Technical PM · Hard
- Design a system to predict YouTube ad conversions.Top-Interview · Technical PM · Hard
- Design a file system.Top-Interview · Technical PM · Hard
- Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.Top-Interview · Technical PM · Hard
- Design a document processing pipeline.Top-Interview · Technical PM · Hard
All Technical PM questions · Product manager interview questions by skill area