Ad
  • Default 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?

  • Default User Avatar

    The issue has been resolved. I enjoyed your Kata.

  • Custom User Avatar

    how about now?

  • Default 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.

  • Default 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

  • Default 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.

  • Custom User Avatar

    For JS, the max value is excluded, so you should change <= ${max} into < ${max}:

    `${batch} random tests: ${min} <= sides <= ${max}

  • Custom User Avatar

    added it tnx

  • Custom User Avatar

    A prism is a polyhedron with two parallel, congruent bases and rectangular lateral faces connecting the corresponding sides of the bases.

    like with the other kata, a svg or similar picture might be useful here

  • Custom User Avatar

    fixed

  • Default User Avatar

    The default function name that is loaded into the Solution window is "find_polyhedron_properties". The default tests however are looking for a function named "prism_properties".

  • Custom User Avatar

    you can republish the kata now

  • Default User Avatar

    fixed, thank you

  • Loading more items...