Flipkart Interview Experience | Set 39
The Firing List
There is down-turn in the ship-building industry. Ace Shipping Corp (ASC) wants to be prepared by having a system that will help evaluate the total cost saving they will achieve if they were to ‘let go’ some employees.
Following are the rules for drawing up this Firing List:
-
Each manager at every level in the organization will have to contribute ‘heads’ from his team to the firing list
-
The input to the system would be a small integer k (=1,2, etc) which would be the number of employees chosen per manager. The output would be the total cost saved for this k. Different values of k would give an idea of the total cost saving achieved.
-
The primary selection criteria is Performance Rating. k employees with the minimum rating under a given manager are to be selected.
-
If two employees have the same rating, the one with the higher salary gets selected (to maximize cost saved)
-
The activity might be requested for the sub-org under any manager. The default is to consider the entire org.
-
Although total number of reportees for a manager is usually of the order of 10, it could possibly be a much larger number in some org too. An optimal way of choosing the k reportees would be preferred.
The following information needs to get stored per Employee:
-
Employee ID (unique)
-
Name
-
Performance Rating (1-5, 1 is lowest, 5 is highest)
-
Salary (Rs)
An example org structure is given below with the cost saving achieved for (E1, k=2) and (E4, k=1) respectively
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Recommended Posts:
- Flipkart Interview Experience(1.10 years experience SDE 1)
- Flipkart Interview Experience| Set 38 (For SDE II)
- Flipkart Interview Experience | Set 41 (For SDE 1)
- Flipkart Interview Experience | Set 24
- Flipkart Interview Experience | Set 23
- Flipkart Interview Experience | Set 22 (For SDE 2)
- Flipkart Interview Experience | Set 21
- Flipkart Interview Experience | Set 20 (For SDE-II)
- Flipkart Interview Experience for SDE-1
- Flipkart Interview Experience | Set 40 (For SDE 1)
- Flipkart Interview Experience | Set 27 (For SDE)
- Flipkart Interview Experience | Set 32 (For SDE-1)
- Flipkart Interview Experience | Set 30 (For SDE 2)
- Flipkart Interview Experience | Set 15B
- Flipkart Interview Experience | Set 29




