Search
⌘K
Get Premium
Leetcode 3516. Find Closest Person
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.