board of size n × n. It should show every number from 1 to n² exactly once. The printer made a mistake: one number was printed twice, and so another number is missing from the card.
Return [repeated, missing].board=[[3, 1], [3, 2]] → [3, 4]
Numbers 1 to 4: 3 is printed twice and 4 is missing. The answer is [3, 4].
board=[[5, 8, 1], [7, 2, 9], [4, 6, 5]] → [5, 3]
5 appears twice and 3 is missing.
board=[[3, 1], [3, 2]]
[3, 4]
Run checks the first 3 tests in your browser. Submit checks all 59 tests on the server, hidden ones included.