1453. Maximum Number of Darts Inside of a Circular Dartboard

https://leetcode.com/problems/maximum-number-of-darts-inside-of-a-circular-dartboard

Description

You have a very large square wall and a circular dartboard placed on the wall. You have been challenged to throw darts into the board blindfolded. Darts thrown at the wall are represented as an array of points on a 2D plane.

Return the maximum number of points that are within or lie on any circular dartboard of radius r.

Example 1:

Example 2:

Example 3:

Example 4:

Constraints:

  • 1 <= points.length <= 100

  • points[i].length == 2

  • -10^4 <= points[i][0], points[i][1] <= 10^4

  • 1 <= r <= 5000

ac

Last updated

Was this helpful?