28/28
Part 6 of 6 · Follow-upsCheck yourself
Check yourself
6 questions
  1. 1.Width 2. Row 0 is A, B, C and row 1 is C, D. What does row 1 become under level 1?

  2. 2.Your level 1 makes shown = set() inside the loop over rows. Which test catches it?

  3. 3.Under the screen rule, why is one forward index enough to fill a row?

  4. 4.Screen holds A and B, width 2, row B, A, C. Why does the row end after C instead of going on to B and A?

  5. 5.Under the grid rule, column 1 holds B, and the row is A, B with width 2. What does greedy by rank show, and what is the most it could fill?

  6. 6.You swap level 1's set for a Counter so each title can appear up to m times. Which test can still pass while the code is wrong?

That's the lesson.
Now the problem this lesson builds to: 57 No repeated titles on the first screenPractice it