← Questions

Find when failures started in a log

0
AmazonCodingLast asked Jan 2026

A service writes a time-ordered log of request results, and at some point it started failing. Find the moment the failures began. Discuss the approach when you can only read the log once as a stream, and when it is stored and you can jump to any position.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding