Contrast TCP vs UDP; detect loss
PayPalSoftware Engineer · Technical ScreenLast updated
This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Contrast TCP vs UDP; detect loss states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Contrast TCP and UDP in reliability, ordering, congestion control, connection setup, and overhead. How does TCP detect packet loss and trigger retransmission (e.g., timeouts, duplicate ACKs/fast retransmit, and selective acknowledgments)?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.