BrowserStack SDE-1 OA 2025 | Automated Test Suite Optimization Window & Virtual Device Cloud Network Vulnerability

Question · Posted Jun 2026

Problem 1 - Automated Test Suite Optimization Window Problem Statement An automated build pipeline logs the runtime durations of N sequential test cases into an integer array runtimes, where runtimes[i] represents the execution duration of the i-th test case in milliseconds. To maintain predictive stability, the infrastructure engineers want to identify the longest continuous block of test cases that exhibit low volatility. A contiguous block of test cases is considered Stable if and only if: max(runtimes[l...r]) - min(runtimes[l...r]) <= maxDifference ...

The full answer & interview discussion are available to premium members.

Log in Create a free account