0 day streak
Anonymous · shared experience20 Dec 2025 · 9 views

CRED: Compute latency, throughput and error rate over a time range from events

Interview question #CRED SDE 1 Machine coding

Problem. You start from an existing boilerplate codebase that already holds event data. Extend it so that, for a given start and end timestamp, it computes and shows three metrics:

  • Latency
  • Throughput
  • Error rate

Requirements.

  • Every provided test case must pass
  • The design must make new metrics easy to add later. The prompt named a 90th-percentile latency as an example of what might come next

What the interviewer cared about. A clean design, correct results, and room to extend. Passing the tests was necessary but not enough on its own.

Context. This was the first round of an SDE-1 process, followed by a system design round on a ride-hailing platform where only drivers set prices and riders cannot counter-offer. The post does not include the event format or sample data, so expect to read and work within unfamiliar existing code.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.