EyeNewz Tech Get the app

Geeksforgeeks · Technology

Find Lattice Points in the Circle

Given an integer r, representing the radius of a circle centered at the origin (0, 0), find the total number of lattice points lying on the circumference of the circle. A lattice point is a point in 2-D space whose coordinates are both integers.Examples: Input: r = 5Output: 12Explanation: The lattice points are

Read original Open in app

Licensed summary · LicensedSummary