Available question text
Simulate two pointers from the ends moving inward, tracking each person's remaining water and incrementing a refill count whenever they must top up to fully water the next plant. If both reach the same plant, the one with more remaining water (Alice on a tie) waters it.
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 2105. Watering Plants II
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source