Problem 3344 · Medium

Maximum Sized Array

Grow the cube one layer at a time, using the bitwise OR of each pair, until the next layer would exceed the sum limit.

Open the interactive visualisation