← Goldman Sachs questions

Find ordering of tasks from dependencies

Filed under Goldman Sachs · Also reported at OYO

Given a number of tasks `numTasks` and a list of prerequisite pairs where each pair `[u, v]` indicates that you must finish task `v` before task `u`, return the ordering of tasks you should take to…

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.