AMADEUS Hiring Challenge | Off Campus OA (2025) | Number of Flowers in Full Bloom
Amadeus · Question · Posted Jun 2026
Problem Statement You are given a 2D integer array flowers, where flowers[i] = [starti, endi] indicates that the i-th flower blooms from day starti to day endi (inclusive). You are also given an integer array people, where people[i] represents the arrival time of the i-th person. For each person, determine how many flowers are blooming at the time they arrive. Return an array answer where answer[i] is the number of flowers in bloom when the i-th person arrives. Example 1 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account