← Google questions

Minimum Semesters to Complete All Courses Given Prerequisites

Filed under Google

Given $n$ courses labeled from 1 to $n$ and a list of prerequisite relations, find the minimum number of semesters needed to complete all courses. You can take any number of courses concurrently in a…

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 Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.