[LeetCode] Fill a Special Grid

1 · · May 4, 2025, 5:28 a.m.
3537. Fill a Special Grid You are given a non-negative integer N representing a 2N x 2N grid. You must fill the grid with integers from 0 to 22N - 1 to make it special. A grid is special if it satisfies all the following conditions: All numbers in the top-right quadrant are smaller than those in the bottom-right quadrant. All numbers in the bottom-right quadrant are smaller than those in the bottom-left quadrant. All numbers in the bottom-left quadrant are smaller than those in the top-left qu...