Minimum time to collect all plates.
Unlock detailed company stats for this questionUpgrade
Given n plates on a 2D plane, where two plates can be collected together if they share a row or column and are within distance d, find the minimum time to collect all plates. Collecting one plate collects all plates connected to it. Constraints: 1 <= n <= 10^5, 0 <= d, x[i], y[i] <= 10^9. Example: n = 3, d = 1, x = [0, 2, 1], y = [0, 1, 2] -> 3.
Format · Uber HackerRank OA, second problem.
Community answers
No answers contributed by the community yet.
Related questions
Minimum Rounds to Complete All Tasks.Minimum Cost to Connect SticksMinimum Time to Finish the Race.Related courses

Course

Course
Course
