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.
results.putIfAbsent(time.hashCode(), a);
is awkward and I'd argue incorrect. What if hash codes collide and values for different times overwrite each other? What's wrong with justresults.putIfAbsent(time, a);
?thanks, added fix to translation to that one instead: https://www.codewars.com/kata/543ddf69386034670d000c7d.
thank you again.
I added java translation to the indicated kata.
thanks
The the expected and actual solutions seem inverted.
"expected: <-211.5> but was: <112.5>"
returned: -211.5
correct: 112.5
I will sort it out, thank you for the hint on using the env.
that is just me learning the env with publishing attempts. I will sort it out. thank you.
Fixed tests seem to be still incorrect, like
assertEquals(ClockPuzzler.solveAngle(10, 0), 300);
It does not really change the fact that both kata are very similar (the only difference is degrees vs. radians), to the point that this kata can be considered a duplicate of the other one. My solution to the linked kata solves also this kata, after a small tuning of constant coefficients.
Problem of being a duplicate IMO still stands. If you want to provide a translation to the other kata but don't know how, you can visit Codewars Discord server and its
#help-translate
channel.Or you can solve the kata in question, and two new things will appear:
+ Add New
in languages dropdown,Translations
tab on the kata page, andTRANSLATE
button there.thanks. I failed miserably on attempting to find a right button to translate the other one. I resolved the raised issues here.
thank you. that is done
that is done :) thanks
Thank you. Good points. will address shortly.
Duplicate: https://www.codewars.com/kata/543ddf69386034670d000c7d. It is missing a java translation tho, maybe you could provide one?
This is really a issue ;-)
In the 11:15 example, why can't the angle be 112.5 instead of 247.5? That's the shorter arc.