Showing 3 of 21 questions
Transform a sorted linked list into a balanced binary search tree. The tree's structure should reflect the sorted order of the list.
#1. Convert Sorted List to Binary Search Tree
Determine if it is possible to finish all courses given prerequisite relationships between them. Essentially, detect if a cycle exists in the course dependencies.
#2. Course Schedule
You're given a list of courses and their prerequisites. Determine a valid order in which you can take all the courses, respecting the dependencies. If it's impossible to finish all courses, indicate that.
#3. Course Schedule II
Page 1 of 1 · 21 total