Math
3516. Find Closest Person
On a line, positions x (person 1), y (person 2) and z (target). Whoever is closer to z arrives first: return 1 if the first is closer, 2 if the second, 0 on a tie.
Loading…
On a line, positions x (person 1), y (person 2) and z (target). Whoever is closer to z arrives first: return 1 if the first is closer, 2 if the second, 0 on a tie.
Loading…