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
No two neighbours
A row of houses each holds some non-negative amount of cash, given as nums. You may collect from any houses you like, except that you may never collect from two houses that are next to each other. Return the largest total you can collect.
Try to finish with O(1) extra space.
innums = [1, 2, 3, 1]out4
innums = [2, 7, 9, 3, 1]out12
innums = [2, 1, 1, 2]out4
You can read it now. The editor opens when the check is cleared.