Event Bus with Emit, Subscribe, and Unsubscribe
Asked at Tesla · Coding Questions · Difficulty: Medium · Last asked Jul 4, 2025
Object-design coding screen: define a listener interface and an event bus class with `emit` and `subscribe`, then support multiple listeners per event and unsubscribe.
Loading the problem…
More Tesla interview questions
- Transformer Block with a Manual Backward Pass
- K-Means Clustering on Image Patches
- MDP Value Iteration and Policy Iteration
- CNN, Residual Connections and Activation Function Fundamentals
- Trajectory Waypoint Distance Queries
- Battery Cell Quality Statistical Case