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.
Interesting kata.
But... I've had some issues trying to solve it using R. The console won't let me install nor does it acknowledge the series package, even though this package was released with R's version 2.7 and the platform uses 3.4.1. Even though I could load the stringr package, there are some functions I could use and others that I couldn't.
Maybe the kata is meant to be solved using base R, but would appreciate it a lot if someone from Codewars could look into it.
Prolog:
The true answer is around
239.235262893700738
, the reference solution is too far from it.In prolog, attempting to load
clpfd
causes full tests to always timeout.Lua translation!
C fork
variable naming is the hardest part about the problem, it's very badly done.
I passed basic tests, and on test1 assertion fails with a diff. On my side, i tested with a random string with ascii from 32 to 125 and the pipeline code(decode) give me the same result as input. :/ Has someone any clue about this? (doing it on java)
In C in the envioroment of codewars server unsigned long long does not support numbers > 20!.
So, in this kata C version would be good to state that in description.
or
change input and output parameters of the functions from unsigned long long to const char*, but in such case complexity of the kata would increase.
This comment is hidden because it contains spoiler information about the solution
The Rust translation needs some work.
tests
module with#[cfg(test)]
&[_]
is more idiomatic and flexible and should always be preferred over&Vec<_>
-> ()
return type is moot and discouraged.[a, b, c]
instead of[ a,b,c ]
.todo!()
macro is a more idiomatic way to mark unwritten code, rather than a comment that fails compilation.i64
s and returns 1 isfn(i64, i64) -> i64
. The user shouldn't have to write their own function signatures.I couldn't figure out what the problem was for a long time, eventually I gave up. It should be clarified that sometimes there are less than two decimal places.
The Java translation has no random tests.
Lua translation!
one random test with 96682790625023136 is waiting this: [66827906250231369, 0, 17]. but if we will take '0' at index 11 then get 9668279062523136... it is lesser. what am I doing wrong?
I am getting this Error - 'Error: the string "Expected New Average is too low" was thrown, throw an Error :)'. Any idea what does it mean?
Loading more items...