← Back to Difficulty Selection

Code Review (Easy): The Unified Activity Stream

Story

Lena was working on a new dashboard for ReviewThat Labs that combines activity feeds from several different microservices. Each service provides its own list of events already sorted by time, but she needs to display them all together in a single, chronologically ordered master feed. Eva reviewed the initial prototype and suggested creating a reusable helper to merge any number of these streams into one. For instance, if the team receives three separate lists of timestamps like [1, 4, 5], [1, 3, 4], and [2, 6], the utility should output a single unified sequence of [1, 1, 2, 3, 4, 4, 5, 6].

Your Task

Read the story and code, then decide if the code is ready for production or needs improvement.

Hints

What would block an approval? Give me a hint.

Next

Check out Next Topic: Unified Event Timelines

Cookies help us track your progress - nothing extra.