Ad
  • Custom User Avatar

    C Translation (author inactive).

  • Custom User Avatar

    Cool kata, just 2 small suggestions for clarity:

    1. State that you are looking for the largest/smallest absolute area i.e. unsigned area; so a triangle with a signed area of -25 has an absolute area of 25. Otherwise, mathematically speaking, the "smallest" area triangle will always be the negative value of the largest area triangle.

    2. (Python 3.10) - It is stated that "Areas should be rounded to tenths." but when I returned (25.0, 5.0) I got error message expecting int values i.e. (25,5) - imho it would be better to be consistent in the return types?

  • Custom User Avatar

    Make your program efficient. With 5 points, you can make 60 triangles, but only 10 of them will be different.

    This is a weird statement. According to combinatorics, there should be C(5, 3) = 5! / (3! * 2!) = 5 * 4 / 2 = 10 triangles. I don't understand where the number 60 comes from.