The description should be language agnostic.
In Python, objects are different from dictionaries.
(Even though in JS, objects are basically dictionaries in disguise. ;-D)
I totally agree with the "longest streak" part.
I mean, why single this one out? Just keep the same format as before: Each streak is worth
As for the sorting, sort() and sorted() are both STABLE in Python, meaning that if you don't provide any other keys, it would automatically keep the original order in case of a tie.
That's why both yield the same result.
Please add info how the arguments are passed, in nasm... :)
Minor error: The description says to round up to the first digit, but instead should say to round to one decimal place.
The description should be language agnostic.
In Python,
objects
are different fromdictionaries
.(Even though in JS,
objects
are basicallydictionaries
in disguise. ;-D)I totally agree with the "longest streak" part.
I mean, why single this one out? Just keep the same format as before:
Each streak is worth
As for the sorting, sort() and sorted() are both STABLE in Python, meaning that if you don't provide any other keys, it would automatically keep the original order in case of a tie.
That's why both yield the same result.
Changed
Fixed in this fork
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.
Loading more items...