SMU Summer 2024 Contest Round 2

SMU Summer 2024 Contest Round 2 Sierpinski Carpet Problem Statement Given an integer n, output a matrix of size $3^n \times 3^n$. Approach For $n = 0$, the matrix is a single "#". For higher levels, each matrix is composed by placing a smaller matrix in the center and surrounding it with eight copies of the previous level's matrix. Th ...

Posted on Fri, 11 Sep 2026 16:22:16 +0000 by lances