← Goldman Sachs questions

Construct array of length n from sign string

Filed under Goldman Sachs

Given a string of length n-1 containing '+' and '-' characters representing relational constraints between adjacent elements, construct an array containing all numbers from 1 to n satisfying 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.