Halfway Courses Across All Root-to-Leaf Tracks

Students follow different "tracks" through the Computer Science curriculum. More than one track may include the same course, but each student follows a single linear path from a "root" (a course with ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: