I need to make some pseudocode for my class and I am stumped on how to do this question:
There is an NxN grid (1 < N < 1300). You have to place exactly 2 items in every 2x2 subgrid (Assume that there is a solution for every case). Print every solution.
Input Example: 3
Output Example:
111
000
111
000
111
000
101
010
101
010
101
010
etc... (where 0 is an empty space and 1 is taken)
Bonus: If every square in the grid was weighted, explain how you can find the best solution.