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.
I'm not really familiar with the review process. Are the suggested changes alreadylive on the website or is the old code still running there? In any case on the website I'm currently still getting the same type of error:
expected:<466805.28571428574> but was:<466805.28571428556>
expected:<780934.9302325582> but was:<780934.930232558>
Sorry for closing that issue prematurely, I should've noticed that the tolerance is too small... 🤦♂️
Please review & scrutinize Java fork
epsilon of 1e-15 is used but is too small because that would be +-1 21st digit where a double only offers 15 or so
java 17
I believe I fixed the issue that a solution can generate multiple solutions with the same value. Please try again.
In what language?
The issue with the precision at random tests got once resolved due to user simply using the wrong return type.However even using the right return type (as far as I can see) a similar precision issue still occurs (even with much lower deviation as in the older case).
Some examples:
expected:<853157.2307692308> but was:<853157.2307692306>
expected:<672661.1111111111> but was:<672661.1111111109>
expected:<579131.1153846154> but was:<579131.1153846155>
Please read how to use markdown formatting when posting code here: https://docs.codewars.com/training/troubleshooting#post-discourse
This comment is hidden because it contains spoiler information about the solution
incorrect solution
prints should be removed
It can be VERY hard to solve certain problems without a loop. In fact, some performance kata's require a
O(1)
solution, instead ofO(n)
, so don't judge a kata's difficulty on its flavour for loops.As I recall, you click that option to edit and then click on Rank (which is separate from Average Rank). I don't believe it requires any actual editing changes. But as I say, I rarely approve katas, so others will be more familiar with the process.
By the way, what exactly is needed to approve? I sometimes see the green bar "You have the ability to approve this kata. You simply need to edit the kata and set its rank. .... Edit/Approve Kata"
I see the average rank. But if I republish, it doesn't seem to have any effect. Do I have to edit the description in some way?
Thanks for approving.
Maybe I should explain why I originally posted the kata at rank 6.
The book only shows that one example, which is a simple calculation. So I was originally thinking rank 7. When I started extending it to other cases, I realized it was significantly harder. (I was only confident my solution was correct when it matched the results of simulation). But I'm not very good at geometry problems, so I wasn't sure how hard it was. Also, I don't think I've seen a level 5 that doesn't require a loop.
No insult to the problem was intended. :-)
Loading more items...