Available question text
Select exactly k items (each with profit and category) to maximize total_profit + (number_of_distinct_categories)^2, requiring a trade-off between picking highest-profit items (even if same category) and increasing category diversity for a quadratic bonus. The core challenge is combinatorial selection that balances sum maximization with a nonlinear reward for distinct categories.
Related questions
Continue with questions that share topics or the same question type.
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 2813. Maximum Elegance of a K-Length Subsequence
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source