Hard · Math
Maximum Number of Visible Points
Given integer points, an integer angle (0 ≤ angle < 360) and your location, return the maximum number of points you can see at once through a field of view angle degrees wide that you may turn to face any direction; points on its edges count, and points at your location are always visible.
Examples
Example 1
[[2,1],[2,2],[3,3]] a=90 @ [1,1]Output: 3 visible
Example 2
[[1,0],[2,1]] a=13 @ [1,1]Output: 1 visible
Rebuild it in the studio
Read every interview problem free. Ten rooms need no account. A token opens a problem in full — Pro never counts.