Katkat
Technical Screen

Phone Screen: Climb Detection on Elevation Samples, Then Tolerating Partial Descents

StravaSoftware Engineer · Technical Screen · Sep 2026

Climb Detection Given an array of elevation samples taken at regular intervals, return the [startIndex, endIndex] of the first climb. Return [] if no climb exists. Part 1 — Strict Climb A climb: Starts when elevation begins increasing. Can stay flat. Cannot decrease. Ends at the highest elevation reached during the climb. Example: [3, 2, 1, 0, 0, 1, 2, 2, 3, 5, 10, 10, 7, 15] → [4, 10] Part 2 — T…

Shared by a candidate · reported Sep 2026. Interview formats change; use it as a guide, not a script.