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
Merge overlapping ranges
You get a list of ranges, each [start, end] with start <= end, in no particular order. Combine every group of ranges that overlap (ranges that only touch at an endpoint also combine) and return the resulting ranges sorted by start.
in[[1, 3], [2, 6], [8, 10], [15, 18]]out[[1, 6], [8, 10], [15, 18]]
in[[1, 4], [4, 5]]out[[1, 5]]
in[[6, 8], [1, 2]]out[[1, 2], [6, 8]]
You can read it now. The editor opens when the check is cleared.