Posts tagged "minecraft"

Pixel/Minecraft Circle Approximation

Challenge #5

Difficulty : ★ ★ ★ ☆ ☆

since pixels (or minecraft blocks) are square, they can’t represent a circle perfectly. figure out the closest approximation of a circle for a given pixel diameter.

Sample Input: 7

Sample Output:

  xxx
 x   x
x     x
x     x
x     x
 x   x
  xxx

Here is an image to help give you a better idea of what the output should look like

Various challenges for programmers to use to sharpen their skills, or as exercises when learning new programming languages and techniques.

view archive



Ask a question

Submit a challenge or solution