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.
It is 8 kyu level
Series of duplicates / sub-overlapping problems Yes, most of them are retired, but now we need another manual labor / thread to retire this one too...
Rust translate
Lua translation !
Edited the kata (since the author appears to be absent from this platform), and it should be fixed now.
Needs update to current Node version.
For that, tests need to nest
assert
s init
s, notdescribe
s.It's both, because the correct answer can't even be 2050.
Closing.
If it's in the Initial solution in Python, see https://www.codewars.com/kata/5865918c6b569962950002a1/discuss/python#63766c51e3855d000e25d791
and then several languages re-specific'ed it.
it has been agnosticised again.
Where, in which of the 14 languages?
Fixed.
there is a spelling mistake in (strng)
The description of your kata is the best that I've seen on CodeWars. Awesome job!!!!!!!!!!!!!
In the Instructions: “5. The longest kill streak is worth 2^N, where N is the number of kills of the streak”, so I’ve began with the idea, that only one player, with the longest kill streak, gets points, and the others get 0. And surely enough it doesn’t work. So, I got, every player becomes points for their streak nevertheless is it the best/longest result among all the players or not.
Maybe it’s better to determine “5. The kill streak is worth …”
And one more thing, in the Instructions: “Players with the same score should be sorted by the order they appear in the array.” So, at first, I’ve sorted the results with key = (score, position) in case there are more than one player with the same score. But then I tried and found out, that the sorting with key = score can pass all the test as well.
So maybe it’s better to dismiss this part of Instructions, or to add additional tests, where two players or more have the same result.
Thank you.
Your code has many errors:
You did not consider including the score for
normKill
of each Player objectEach point of damage done is worth 0.5 points
is not implemented correctly in your codelogic for
returns an array of player names, in order of descending score (highest score is index 0, 2nd highest is index 1, etc.)
is not implemented correctly tooLoading more items...