Ad
  • Custom User Avatar

    That's because there's many rectangles which can be very large. This approach is not going to work in this kata.

  • Custom User Avatar

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

  • Custom User Avatar

    Wrong and confusing formula in example in description:
    S = S(R1) + S(R2) + S(R3) - S(R1 ∩ R2) - S(R1 ∩ R3) - S(R2 ∩ R3) = 36

    It should be either general formula:
    S = S(R1) + S(R2) + S(R3) - S(R1 ∩ R2) - S(R1 ∩ R3) - S(R2 ∩ R3) + S(R1 ∩ R2 ∩ R3) = 36

    Or formula specific to example where unions of value 0 are not shown:
    S = S(R1) + S(R2) + S(R3) - S(R1 ∩ R2) = 36

  • Custom User Avatar

    what i can understand is that generall gist is draw concentric squares + change little differences