Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Second and third sample tests seem to be wrong :

    • [(-2, 5), (4, -1), (4, 11), (10, 5)]

      For n = 10: [4, (4, 11)] should equal [4, (4, -1)]

    • [(260, 120), (264, 92), (264, 148), (280, 60), (280, 180), (300, 40), (300, 200), (332, 24), (332, 216), (360, 20), (360, 220), (388, 24), (388, 216), (420, 40), (420, 200), (440, 60), (440, 180), (456, 92), (456, 148), (460, 120)]

      For n = 100: [20, (420, 40)] should equal [20, (420, 200)]

    • There are many ways to sort an array, you have to be explicit.

    • Use katex for math formulas :

      (x – h)^2 + (y – k)^2 = r^2
      
    • Description has be rewritten to correspond to actual quality standards.

    • In light mode, your example is hard to see.

  • Custom User Avatar

    I have several questions regarding this kata:

    1. You state that our task is "to find every integer point that lies on a circle's line". I assume that by "circle line" you mean that we need to find every point on the circumference of the circle where the value of "x" and "y" are both integers. Can you please confirm that my understanding is correct?

    2. In your solution window you provide:

      def draw_circle(x, y, r, ind)
      return []

      You provide us with the value of "x" and "y", a single point on the circumference of the circle. If my interpretation of your instructions (see #1 above) is correct, how can we solve this kata without knowing where the center of the circle is located (i.e., "h" and "k")?

    Thanks in advance for the clarification!