Available question text
Given an array where flowers[i] is the position that blooms on day i+1, find the earliest day when there exist two bloomed flowers with exactly k unbloomed positions between them (i.e., two bloomed positions at distance k+1 and all intermediate flowers not yet bloomed), or return -1 if never possible. The core challenge is to convert between day/order and position and efficiently detect such pairs using windowing or ordered-data structures so checks across large n stay subquadratic.
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 683. K Empty Slots
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source