Google TPS SWE 3 Interview Question
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-05-15Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
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.
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
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.