Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Fixed.

  • Test case for Java seems to suggest that 0 is True while 1 is False

  • The description and samples suggests that c is the final argument (well, kind of)--but random tests do not have the same happen. At least in Python... but from other comments in other languages?

    Perhaps add a sample test case where c is in the first or second spot. With the error being "checking if c is in a weird spot" or something

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

  • Fixed.

  • Java sample test cases are still written in wrong syntax.

  • If I know the input integers are not sorted,I can easily solved the problem.
    but the kata is confused.

  • In the current c++ version one can pass the attempt portion and fail the sample test portion. I noticed this because there is at least one solution accepted as correct, which is absolutely incorrect. You can check this by simply checking the case a^2 + b^2 = c^2 only.

  • Fixed

  • Java test cases still have wrong syntax.


      assertEquals("undefined",s.slope(new int[] {-7,2,-7,4}));
      assertEquals("5",s.slope(new int[] {10,50,30,150}));
      assertEquals("-5",s.slope(new int[] {15,45,12,60}));
      assertEquals("6",s.slope(new int[] {10,20,20,80}));
      assertEquals("undefined",s.slope(new int[] {-10,6,-10,3}));
  • The C++ starting function is erroneously and amusingly called PythagoreanTripe.

  • I used to have a plain text file with all my solutions for better duplicate search capabilities (searching for solutions themselves with simple regexps) but stopped updating it at some point. Now some solution downloading script could be useful...

  • the real problem about finding the duplicates is rather that the research function on CW is sometimes quite poor...! ;)

  • This is why I think an agreed upon quality rubric would be helpful.

    @Blind4Basics if you can't find the duplicate, I don't think you can raise it as an issue :)

    I'd say there are several (many) kata that use c**2 = a**2 + b**2. I wouldn't personally count it as a duplicate unless you had to use it in the same way to complete the same task. It would be nice if we could come to an agreed upon standard. See the section on measuring quality in this comment.

    Note also, that from a pedagogy perspective, similar and only slightly different tasks are very useful.

  • Loading more items...