Locate a Point Light Source from Photon Hits on a 1D Plane
Problem
The target "plane" is the 1D line y = 0 (the x-axis). A point light source is at (px, py) with py > 0. It emits photons uniformly at random over the lower half-plane (the angle θ from the ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
