← Goldman Sachs questions

Filter and sort strings containing digits 1, 2, 3

Filed under Goldman Sachs

Given an array of strings, filter those that contain at least one instance of the digits '1', '2', and '3'. Return the filtered list sorted in lexicographical ascending order.

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.