Available question text
Place each number into one of numSlots (each slot holds at most two numbers) to maximize the sum of (number AND slotIndex). With numSlots ≤ 9 and n ≤ 2*numSlots, the core challenge is a combinatorial assignment optimized via bitmask/DP (or base-3 slot-occupancy DP).
Related questions
Continue with questions that share topics or the same question type.
- Maximum Sum Score of Array
Coding
- Minimize Maximum Pair Sum in Array
Coding
- Partition Array for Maximum Sum
Coding · Array · Dynamic Programming
- Apply Operations on Array to Maximize Sum of Squares
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2172. Maximum AND Sum of Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source