← Goldman Sachs questions

Smallest number from M/N pattern

Filed under Goldman Sachs

Given a pattern string consisting of 'M' (increasing) and 'N' (decreasing), construct the smallest number using digits 1-9 without repetition that matches the pattern. 'M' means the next digit is…

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.