Ad
  • 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!

  • Custom User Avatar

    Encript => Encrypt; Decript => Decrypt

  • Custom User Avatar

    how does the tester expected them to be spelled?

  • Custom User Avatar

    I don't know whether it was intentional but the "encript" and "decript" function names are not spelled correctly.

  • Custom User Avatar

    Also note that the test cases work, when run separately by hitting the "TEST" button. When I define "alphabet = []" and hit the "ATTEMPT" button, the encript and chained fixed tests fail and the decript random tests also fail. In all cases however, your kata is reporting that the decript tests are successful.

  • Custom User Avatar

    1B has been sight at some point, but not during the entire night.

    At least two neighbouring apartments of A toggled lights four or more times during the night, while the occupant of apartment A wasn't consistently in sight that night.

  • Custom User Avatar
    Block: 
    [[0, 0, 0], [0, 3, 0], [0, 0, 0]],
    
    Observations: 
    [['1A', 1], ['1A', 0], ['1A', 1], ['1A', 0], ['1B', 3], ['2B', 0], ['2B', 1], ['2B', 0], ['2B', 1]]
    

    Switches 1A and 2B 4 times. And the answer should be: [ '1B', '2A' ] BUT in "observations" there is ['1B', 3]. That is, a person appeared in the window(with a light). He shouldn't be in the answer. The answer should be:[ '2A' ].

    Did I misunderstand something? Or is there a problem with my solution?

  • Custom User Avatar

    The issue has been resolved. I enjoyed your Kata.

  • Custom User Avatar

    how about now?

  • Custom User Avatar

    For the Coffeescript version of this Kata, I am receiving a "ReferenceError: flattenArray is not defined" error for approximately 10% of the Random Tests.

  • Custom User Avatar

    The Coffeescript version is definitely broken. It appears that when the "Random Test Cases" are performed, the preloaded "words" array only contains one word ([ "ZONES "]).

  • Custom User Avatar

    Has anybody tested the performance of this ? it feels to me like recursivity would be less efficient than a regular loop here

  • Custom User Avatar

    There appears to be a problem with the Coffeescript version of this kata with respect to the Random Tests. I receive the following error message "RangeError: Maximum call stack size exceeded" when the Random Tests are performed. If I copy the first random test arguments and make a new Fixed test using those exact same arguments, the error message is not generated.

  • Custom User Avatar

    This was probably one of the simplest ways to do it without digging into regex. nice job.

  • Loading more items...