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.
JS Translation
Go translation
Description should be language-agnostic
Parameter name in initial solution setup should be
snake_case
Python new test framework should be used
Good kata. I would rate it a 4kuy. But there are some problems. Your solution doesn't make the final decision any easier. For example, I got one of the random tests:
In this case, it seems to me there is no point in 0x, and any online solver sites do as much simplifying as I do. Perhaps we should redo this point?
Use approx equality instead of rounding
This kata is just a copy of "Strange principal" (https://www.codewars.com/kata/55fc061cc4f485a39900001f)
I literally just copy and pasted my other answer into this one.
Also, the other one was 7 kyu and this one 6, which I don't fully understand, but isn't really the main issue.
So sorry but realy don't understand the solution. Maybe this problem have a name that I can make research to more understand the solution please ? Or maybe someone have some sources to share ? :)
We actually receive a list of 6 tuples of 3 coordinates (I guess). This is a bad design. We should receive two tuples of 3 tuples each.
This comment is hidden because it contains spoiler information about the solution
Hi,
The angle between two planes shouldn't be restricted to [0, 90], because it arbitrary assumes the orientations of normal vectors, therefore some methods giving mathematicaly right anwsers fail.
Such assumption would cause problems in scientific calculations.
This comment is hidden because it contains spoiler information about the solution
Nice one, but there are some troubles with it yet (all appearing in the random tests):
first problem (unfortunately, I don't have the inputs for that one):
=> zero values shouldn't appear in the final string
Secondly, your random generator can create null coefficients.
If that's not a problem on the principle (even if a bit weird), your solution handles them with the same problem than before:
Finally, you need more fixed tests, especially more edge cases like:
One suggestion, now: why not to have something more general with various degrees for P2?
It is a fun kata but it is still need some fix.
Please have a look at https://i.imgur.com/hhdKi4v.jpg
similar to what damjan had addressed before.
I think your random tests are wrong:
"convert0" - not my function;-)?!
534 has 8 factors, right?
[1,2,3,6,89,178,267,534]
So
hcn(534)
should be 24? It also has 8 factors:[1,2,3,4,6,8,12,24]
But I get the following error for the input 534:
Also, the starting 'initial solution' needs to be titled
hcn
.