Locked
Pass the Dictionary check first
Everything after it builds on dictionaries. Each rep in the check has to be passed without opening the solution. Hints and Basics are fine.
Still to clear · 8 of 8
- Trace: keep the table
- Which line crashes?
- Write: menu from two lists
- Write: total a bill
- Debug: cheapest item
- Write: items under a budget
- Write: who sits where
- Write: apply price changes
Preview · where this ladder is heading
Can every course be finished?
You must take num_courses courses labeled 0..num_courses-1. Each pair [a, b] in prerequisites says course b must be completed before course a. Return True if there is some order that completes every course, False if the requirements make that impossible.
innum_courses = 2, prerequisites = [[1,0]]outTrue
innum_courses = 2, prerequisites = [[1,0],[0,1]]outFalse
innum_courses = 3, prerequisites = []outTrue
You can read it now. The editor opens when the check is cleared.