โ† Chubb questions

Minimum k integers summing to each array element

Filed under Chubb

The question

For each integer in an array, check if it can be represented as the sum of k positive integers where exactly k-1 integers are even powers of 2 (excluding 0) and exactly one integer is less than 4. Return the minimum value of k for each element, or -1 if impossible.

No write-up yet. Related questions below have one.

Related Chubb questions

Collected from public candidate posts and coding forums. Updated Nov 2026.