Official algorithmic problem description and constraints.
You are given an integer π. Output a 2πΓ2π checkerboard made of 2Γ2 squares alternating '##' and '..', with the top-left cell being '##'.
The picture above shows the answers for π=1,2,3,4
Detailed video explanations, mathematical intuition, and clean C++ implementation code.