Consecutive Event Detection
Anthropic interview questions · Easy · Coding round · reported 3× · 5 tests
Given a stream snapshot encoded as booleans, find every maximal contiguous run of
true values whose length is at least minRun.
Interface
Run your code with Ctrl+Enter to see results.