40/40
Part 7 of 7 · Follow-upsCheck yourself
Check yourself
6 questions
  1. 1.What makes an order of filling a dynamic programming table correct?

  2. 2.For the longest increasing run with one deletion, why does the table need a row for nothing deleted and a row for at most one deleted?

  3. 3.In the edit distance table, what does moving from d[i - 1][j] to d[i][j] stand for?

  4. 4.Several routes share the best score, and you must return the one whose list of junctions comes first. A forward pass that keeps a parent for each junction returns a best route that isn't that one. What fixes it?

  5. 5.A lift is added that carries riders from an exit back up to the trailhead, and every lap of the loop is worth points. What happens to the best route?

  6. 6.A route may ride at most k expert stretches. Why does the table need a cell for every junction and every count up to k?

Now the problem this lesson builds to: 38 The best way down a trail parkPractice it