• This shouldn't pass, but it passes.

  • The reference code in the description is missing the JS version.

  • Python: The sorting requirement in the description and in the tests don't match.

    As described, the example output gets the second and third rectangles wrong (the second has a width of 2, the third a width of 1; the latter should come first as it shares a top left corner with the second but has a smaller width)

    [
      [(1, 1), (1, 2)], 
      [(2, 2), (2, 3)], 
      [(2, 2), (3, 2)] 
    ]
    

    The tests expect the output to simply be sorted lexicographically, i.e. without any special key function at all. This matches the output described above.

    The description should have this requirement removed for Python (don't know about Haskell tests).

  • It's a pretty interesting kata and unique, that's for sure. The problem is that the description is quite confusing. You should provide some details about how the function should work, that would be much easier to make some tests, that would prove that the implementation is wrong.

    Also, in C# tests break, when I call function with null as a parameter, I think you should probably look into that, because the first parameters, that would come to my mind when testing using string as paarameter is string.Empty and null.

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

    • Guess a number - duplicate of many katas
    • Implement a generator that also receives values - duplicate of this
  • This comment is hidden because it contains spoiler information about the solution

  • how many tests are there in total?
    Will help in terms of understanding how far off we are from completing before the timeout

  • Returning inconsistent datatypes is not a best practice. Consider asking for a list, possibly of length 0 or 1, of all possible solutions.

  • Something is off with this sentence:

    Given a mininum number of diamonds, find out the smallest rectangle land parcel that contains that number of parcels.

    • If minimum amount of diamonds is asked, are parcels with larger amount also OK? Examples seem to show otherwise. If I want to get 3 diamonds, why is [[0,0], [0,0]] (a single area with 4 diamonds) not valid?
    • I believe the end of the sentence should read "[...] that contains that number of diamonds", does it?
  • "parcel" is confusingly used for both land and diamonds.

    Given a mininum number of diamonds, find out the smallest rectangle land parcel that contains that number of parcels

    "exactly" that number seems to be missing here, and "minimum" is incorrect, because it implies any greater number is also acceptable and that seems not to be the case.

    The spacing of the map is incorrect in my webbrowser ( this may be my webbrowser's problem ).

  • Tests shouldn't let solution like this to pass.

  • Not all requirements are tested. There's only one test with one odd digit in a position where it's irrelevant. Edge cases should be tested. Random tests should be added.