It seems so only at first glance, perhaps it still seems so because of the "mathematics" tag. But in fact, the complexity of this kata is fully consistent with its 5kyu and it is solved without any mathematics, just in cycles and does not require any difficult optimization.
It seems so only at first glance, perhaps it still seems so because of the "mathematics" tag. But in fact, the complexity of this kata is fully consistent with its 5kyu and it is solved without any mathematics, just in cycles and does not require any difficult optimization.
Yup, I tried to prioritize performance and lines of code. But you are right, this solution would not be suitable for work environments.
Yo, this looks clever, but it's very difficult to understand to a third party or yourself at a future date. I'd prioritize readability more.
good kata to learn about rounding errors
could use some more whiles, elses and switches
brother
Why is this kyu 5? Feels like a 4 or even 3.
Yes. I can't pass the tests because two elements are in different positions in various tests.
what does - - do in that code
it's not.