Available question text
Given positions x and y of two people and static position z, both move at the same speed toward z; determine which arrives first by comparing their distances to z and return 1, 2, or 0 if it's a tie.
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 3516. Find Closest Person
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source