Gamified challenge · Asked in Capgemini
A square grid of shapes follows one rule: every row and every column holds each shape exactly once. In grid the shapes are the letters A to D (or E on a 5 × 5 grid), . is a cell you can't see, and exactly one cell is ?.
Write missing(grid) that returns the letter that belongs at ?. For [".BCA", "CD..", "..D.", "A.B?"] it's "D": the last row still needs C and D, and column 1 already has D, so C goes there and D takes the ?.
This game is part of the paid plans. Sign in, then pick a plan to write your answer, watch it play out, and step through the algorithm with its guide.
Sign in with Google