Learning objectives

Write a method that returns true when any value appears twice anywhere in a rectangular int[][], comparing each cell with only the later cells in row-major order.

Calculate the number of comparisons N(N - 1) / 2 for a grid of N cells that has no duplicate.

Trace the shift of one column up by one place with wrap-around and state the new column contents.

Continue with a revision plan

These learning objectives are available to everyone. Sign in with an eligible plan to read the full note and worked examples.