Fastest Rolling One-Kilometer Average Speed from 5-Second Distance Samples

Quick Overview

Given the meters a runner covers in each 5-second interval, find the fastest average speed over a rolling one-kilometer stretch, defined as the shortest run of intervals ending at each point that covers at least 1000 meters. It tests sliding-window reasoning over large arrays and precise window definitions.

Fastest Rolling One-Kilometer Average Speed from 5-Second Distance Samples

Company: Optiver

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Online Assessment

Overview: Given the meters a runner covers in each 5-second interval, find the fastest average speed over a rolling one-kilometer stretch, defined as the shortest run of intervals ending at each point that covers at least 1000 meters. It tests sliding-window reasoning over large arrays and precise window definitions.

Optiver logo
Optiver
Sep 13, 2026
mediumSoftware EngineerOnline AssessmentCoding & Algorithms
8
0
Loading...