Design a Bar Graph Library.
MediumWe're building a bar graph library, and it's time to level up! We need to make it more flexible, powerful, and robust. Imagine users wanting to visualize various datasets with different styling needs – from simple sales figures to complex scientific data. The core challenge lies in designing a system that can handle diverse data sources, customizable bar styles, and real-time updates while remaining performant and thread-safe. Let's think through the data structures that can hold the data and how can we make the library work in a multi-threaded environment.
Requirements
Interview Simulation
Experience a realistic interview conversation. The interviewer will ask clarifying questions,and you'll reveal your understanding of the requirements.
Let's start by understanding the scope. What are the core functionalities this system needs to provide?
💡 Interview Tip
Identify the Actors (Who uses the system?) and their Use Cases (What are they trying to achieve?). Start with the 'Happy Path' scenarios.