Amazon | OA 2024 (SDE-I) | Vulnerability servers & Max median (packets)
Q1: Amazon Web Services has n servers where the i ^ (th) server's vulnerability score is vulnerability[i]. Aclient wants to deploy their application on a group ofm contiguous servers. The vulnerability of a group isdefined as the k ^ (th) minimum vulnerability among the chosen servers. Find the vulnerability of each possible group of m contiguous servers the clientcan choose.
Verdict: Tried to solve this using min heap, but was only able to pass 7/15 test cases as I got TLE.
Q2: Given m channels(int) with a packets(list). We need to distribute the packects to m channels, ensure the sum of all channels median is max. Each channel should get atleast one packet.
Verdict: Solved this by sorting the packets list and passed 15/15 test cases.
Can I expect an interview call??


