A Circle and a Square

  • + 0 comments

    Calculating the boundaries of the square is the nub of this question. I had considered a square to be enclosed by two pairs of parallel lines at right angles and sides of equal length which it is. The output from my code for the square somtimes differed a little from HR output. Changing from int to float types helped, but the answer seems to need the hacker to consider the square as 2 triangles.