Skip to content

Latest commit

 

History

History

points-in-the-circle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

You have the radius of a circle with the center in point (0,0).

Write a function that calculates the number of points in the circle where (x,y) - the cartesian coordinates of the points - are integers.

Example: for radius = 2 the result should be 13.

0 <= radius <= 1000