This problem is looking for the number of vertices on the hexagonal grid inside the circle of radius r. The center of the hexagon is not counted as a point for this problem, and this is true for every hexagon inside the circle.
251 Solvers
Program an exclusive OR operation with logical operators
641 Solvers
292 Solvers
Back to basics 16 - byte order
173 Solvers
Detect a number and replace with two NaN's
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!