Available question text
Choose which gardens to raise to at least target using at most newFlowers to maximize full * (#complete) + partial * (minimum flowers among incomplete gardens). The problem reduces to sorting and using prefix sums to try each possible number of completed gardens and greedily/binary-search raising the minimum of the rest with leftover flowers to find the maximum beauty.
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 2234. Maximum Total Beauty of the Gardens
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source