Google TPS SWE 3 Interview Question
565
May 15, 2025
Graph : DFS + Greedy
You're given a server that can be pinged at specific timestamps. However, the server has a rate limit: it can only handle one ping every X seconds. If a ping comes before the X-second cooldown is over, it gets ignored.
Given a list of timestamps in increasing order when a client tries to ping the server and the cooldown period X, determine the minimum time required to send all pings successfully, accounting for the cooldown between valid pings.
You can delay pings to ensure they succeed, but they must be processed in order.
Comments (4)


