Available question text
Given three distinct integer positions on a line where in each move you can relocate an endpoint stone to any unoccupied integer between the endpoints, compute the minimum and maximum number of moves to reach three consecutive positions. The answer is the pair [minMoves, maxMoves], where min is 0, 1, or 2 depending on small-gap patterns between adjacent stones and max equals the total empty slots between the outer stones.
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 1033. Moving Stones Until Consecutive
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source