in BMG Drafts, 33 mins ago, by
Bubbler Draft: Recursive Z-matrix (divide the matrix into four quadrants and visit the quadrants in Z-shaped order, and do the same for inner matrices) of size 2^n for a nonnegative integer n. Output can be 0- or 1-based. (0-based examples: n=0: [[0]]
, n=1: [[0,1], [2,3]]
, n=2: [[0,1,4,5], [2,3,6,7], [8,9,12,13], [10,11,14,15]]
)