Akhil sends codes to his friends that tell them how to shade in squares of a grid to reveal a secret picture. Each code contains a blank grid with a list of numbers next to each row, which are used to shade in the row from left to right. The first number in a list represents the number of blank squares at the beginning of the row. The second number represents the number of squares that need to be shaded next. After that, the numbers alternate between the number of blank squares and the number of shaded squares until you reach the end of the row.
For example, if the list of numbers was \(2\), \(2\), \(1\), then the leftmost \(2\) squares would be blank, the next \(2\) squares would be shaded, and the next square would be blank. A completed picture is shown.
Draw the picture for the given code.
Akhil turns some of his codes into puzzles. For each column, he adds a list of numbers representing the number of blank and shaded squares, as he has for the rows. Then, for each row and column, he removes the numbers representing blank squares. Two of his puzzles are shown. Try to solve them.
Theme: Computational Thinking