11:36 PM
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]]
)
Draft: Count bingos on a boolean 5x5 board where marked cells are true(1) and the others are false(0).
Draft: Given no input, output a solution to 4 queens on a 4x4 board: [[0, 1, 0, 0], [0, 0, 0, 1], [1, 0, 0, 0], [0, 0, 1, 0]]
or its reflection (or its string equivalent)
Draft: Given an array of positive integers having length 3n+2, compute its "sum-and-skip" transform: [1, 2, 3, 4, 5, 6, 7, 8] -> [1+2, 3, 4+5, 6, 7+8] = [3, 3, 9, 6, 15]