Step 1: Use cases and constraints
Design a feature that shows how a user is connected to someone they search for. What will you handle, and what do you assume?
Answer each step in your own words before you look. The model answers follow System Design Primer: Design the data structures for a social network.
Design a feature that shows how a user is connected to someone they search for. What will you handle, and what do you assume?