</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Uber Questions

Minimum Triggers to Clear All Balls

Medium

Question

Balls lie on a 2D plane, and balls[i] = [x_i, y_i] is the position of the i-th ball. A pair of balls is connected if it sits on one horizontal line (the y-coordinates match) or one vertical line (the x-coordinates match), with a gap of at most d between them on that line. For two balls on one row, the gap is |x_i - x_j|; on one column it is |y_i - y_j|. ...

Asked at:Uber

More Uber interview questions

All Uber interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.