Feature #3: Find Median Age
Implementing the "Find Median Age" feature for our "Netflix" project.
We'll cover the following
Description
Our third task is building a filter that will fetch relevant content based on the age of the users for a specific country or region. For this, we use the median age of users and the preferred content for users that fall into that specified category.
Because the number of users is constantly increasing on the Netflix platform, we need to figure out a structure or design that updates the median age of users in real-time. We will have an array that constantly receives age values, and we will output the median value after each new data point.
Let’s understand this better with an illustration:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.