Minimum Time to Finish All Courses
Asked at Snowflake · Coding Questions · Difficulty: Hard · Last asked Jun 15, 2026
A university offers `n` courses labeled `1..n`. Some courses have prerequisites, and every course takes a fixed number of months. A course can start as soon as **all** of its prerequisite courses have finished, and any number of courses may be studied at the same time. Return the minimum number of months needed to finish every course.
Loading the problem…
More Snowflake interview questions
- Design a Distributed Job Scheduler with Cron, Pause, Resume
- SET Card Game: Validate a Triple and List All Sets on the Table
- Design an ACL Authorization Service
- Design an S3-Style Blob Store with Deduplication
- Anti-Clockwise Outline of a Binary Tree
- SQL: Project Duration & Budget per Employee