← Goldman Sachs questions
CodingReported in a candidate post, Nov 2019

Form the least possible number from a sequence

Filed under Goldman Sachs

Given a pattern of I (increasing) and D (decreasing) characters, build the smallest number that satisfies it using the digits 1 to 9 at most once each. I means the next digit is larger than the…

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.