Ad
  • Custom User Avatar

    changed "height" to "length", added remark on height.

  • Default User Avatar

    Hi, in which field of engineering are you trained? (honest question)

    Also, what improvements could be made to the description? You could offer up a rewrite, thanks.

  • Custom User Avatar

    As a trained teacher and engineer, I object to the wording of the question.

    If English is not your first language, ask for help.

  • Default User Avatar

    For those having issues understanding the wording of the kata:

    1. The ice brick is a rectangular prism, not a perfect cube.

    2. Should say bottle and rim height rather than length.

    3. Should say the brick's width and length (or depth) are equal rather than the width and the height. (This is what's causing people to think we're dealing with a perfect cube as it implies it's as tall as it is wide)

    4. The kata should mention that it is solving for an ice brick with the maximum possible width and length that fits in the bottle (As in the corner sides of the ice touches the walls of the bottle).

  • Default User Avatar

    The arc intesects with the top-right and bottom-left of the square which can only happen if the length of a side on the square and the radius of the circle is equal.

    Easiest way to see it is to imagine you had 4 of the same tiles in different orientation so that the arc makes a circle. You can see that the radius of that circle is the same length as the side of the square.

  • Default User Avatar

    1st and nth chair are the first and second chairs to be occupied and can be removed from the picture.

    Condition 1: (n-1)th chair is the lowest possible distance from the nth chair.
    All chairs with a higher distance from another occupied chair will be taken first.

    Condition 2: (n-1)th chair has the highest distance from the exit.
    When all chairs have the same distance from another occupied chair, the chairs closer to the exit will be taken first.

    Last remaining chair is the (n-1)th chair.