This competition goes for N days and there are M employees such that : - The employee ID starts from 1. - The maximum ID possible is M. -
On each day of the competition, an "Employee of the Day"title is awarded to the employee who does the most work on that particular day and is given a party. However, the manager believes in consistency. Once this title has been given, the employee who has won the most number of such titles until that particular moment is presented with a "Consistency Trophy". If there are many such employees, the largest ID among them is given the trophy. The "Title Giving"and "Trophy Giving"happens at the end of each day of the competition. You will be given the ID of the employee who won the "Employee of the Day"title on each day of the competition. Your job is to find out the ID of the employee who was awarded the "Consistency Trophy"on each day of the competition.
Comments
Leave a comment