Thanks for this, i didn't have the idea of creating a new dictionnary as it wasn't required, but i can obviously see the implications forward.
The wrong answer for n = 0 in random tests was already fixed some time ago.
n = 0
Rejecting this 9 year old fork...
@SamWololo that's not quite right, since ints and floats can be combined in Python (you shouldn't be able to but that's a topic for another time)
This comment is hidden because it contains spoiler information about the solution
when you think like an engineer, not a mathematician)
i liked this pin
UPDATED GROOVY TRANSLATION
Changes:
org.junit.Test
org.junit.jupiter.api.*
@Order
very bad description
Groovy Translation
Examples describe better than words before them.
Bad description
Sorry, I couldn't think of better names at the time. 😅
Why is everyone on Codewars allergic to naming variables? What's f? What's ff? What does x mean? It's so annoying!
f
ff
x
Lol, I tried my best to have the shortest answer possible and I almost went with this solution...
Loading collection data...
Thanks for this, i didn't have the idea of creating a new dictionnary as it wasn't required, but i can obviously see the implications forward.
The wrong answer for
n = 0
in random tests was already fixed some time ago.Rejecting this 9 year old fork...
@SamWololo that's not quite right, since ints and floats can be combined in Python (you shouldn't be able to but that's a topic for another time)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
when you think like an engineer, not a mathematician)
i liked this pin
UPDATED GROOVY TRANSLATION
Changes:
org.junit.Test
toorg.junit.jupiter.api.*
@Order
Annotations for Test Casesvery bad description
Groovy Translation
Examples describe better than words before them.
Bad description
Sorry, I couldn't think of better names at the time. 😅
Why is everyone on Codewars allergic to naming variables? What's
f
? What'sff
? What doesx
mean? It's so annoying!Lol, I tried my best to have the shortest answer possible and I almost went with this solution...
Loading more items...