← Goldman Sachs questions

Find local minima in an array

Filed under Goldman Sachs · Also reported at Adobe, Siemens EDA, TATA 1MG

Given an array of integers, find any local minimum element in logarithmic time complexity. An element is a local minimum if it is less than or equal to its immediate neighbors.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.