Ad
  • Custom User Avatar

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

  • Custom User Avatar

    At least half your statement is false. If it is true that it incorrectly handles the cases where all sides are negative, please provide a specific example.

    In[1] is_triangle(0, 0, 0)
    Out[1] False
    
    In[2] is_triangle(-1, -1, -1)
    Out[2] False
    
  • Custom User Avatar

    It returns False in those cases, just like the description says to.

  • Custom User Avatar

    This solution is wrong - it does not take into account cases where all sides are 0 or negative.

  • Custom User Avatar

    This solution is wrong. It does not stop cases where all sides are 0 or negative.

  • Custom User Avatar

    Thanks for the kata, I learned a whole new topic and for the first time I hear about Polish notation. Interesting to know.

  • Custom User Avatar

    While the only issue here was that you do not expect any code, just "STRANGE_STRING= ....".

    Can you find a string that satisfies this criteria?

    You should just set the value of STRANGE_STRING to meet the previous criteria.

    Python initial code:

    STRANGE_STRING = 'foo'
    

    What is not clear there? You can argue about not having to write a function and code like in almost every other kata, but what you should do is written in the description.

  • Custom User Avatar

    While critique of descriptions is a fair thing, I would sincerely recommend adjusting your general attitude a little bit.

  • Custom User Avatar

    Please adjust the description so it is clear what exactly is expected to be a code for testing. I spent (as many other solvers here) many more minutes figuring out what is wrong with the code. While the only issue here was that you do not expect any code, just "STRANGE_STRING= ....".

    Not fair, really. Description level almost as bad as daspreuße's. He is the kind of bad kata description. You may be his heir soon.

  • Custom User Avatar

    vaaaaaaaax! Don't I recognize you, whatt47? It seems like you leave a stream of havoc wherever you go.

  • Custom User Avatar

    Could you elaborate on the "expects us to hardcode wrong practices" part?

  • Custom User Avatar

    @daspreuße, man... Your katas are so badly broken. You are messy while writing instructions, your testing fails all over and specs for intended types are unclear, too. This particular kata expects us to hardcode wrong practices. I see no point doing these.

    So many times I found you just copy things all over without any review or thorough revision what did you actually wrote.

    From this very moment on I avoid your katas for good. It's not worth the time.

  • Custom User Avatar

    There is a mistake in the description: "Thus, the expected value of a random element from the matrix is 3.". Should be "473/6" instead of "3"

  • Custom User Avatar
  • Custom User Avatar

    There's an issue with the description. The input is defined as "Two integers r and c representing the number of rows and columns of the matrix, respectively" but, in the provided example, an input of "11 5" somehow expects the calculation of a 12x6 matrix.

  • Loading more items...