Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Haskell translation
fixed
C translation test code swaps x and y coordinates from regular (x,y) order when printing
It seems that in C translation, max & min are swapped in the test output:
made a hotfix cuz the fork actually had min and max values swapped (you had
min
thenmax
in the struct, which the description had the other order)sorry about that :(
approved, had to fork your translation since the description was outdated with the 'Descirption' issue though
If not stated, the area by definition is always the positive value, and the sides are undirected, so it's not required to specifically note about absolute area. (Otherwise yeah, the area might be negative in some circumstances, but that's an overkill imho)
Probably that was because of some shenanigans with assertions; rn both 3.10 and 3.11 correctly evaluate either float or int values, so it doesn't really matter to specify that either.
Hope I've answered your suggestions, closing this now
Very interesting kata, good job.
C Translation (author inactive).
Cool kata, just 2 small suggestions for clarity:
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 of25
. Otherwise, mathematically speaking, the "smallest" area triangle will always be the negative value of the largest area triangle.(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 expectingint
values i.e.(25,5)
- imho it would be better to be consistent in the return types?fixed by someone
? where are you seeing this?
java or python?
But it obviously doesn't?... Anyways, whatever
When the order of selected points matters, there are
5 * 4 * 3 = 60
ways to choose.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.Loading more items...