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.
added sample and fixed test against this solution in this fork
lodash
Lua translation!
Lua translation!
I disabled the
%
operator and themath.fmod
function. Let me know if I missed some!approved
Here are the changes I made:
<stdlib.h>
in full testscr_assert_float_eq
and it's arguments on multiple lines%lf
to%.17g
0.
Thank you!
<stlib.h>
because ofrand()
andsrand()
cr_assert_float_eq(...)
is 150 characters long and would benefit from a couple of line breaks between argumentsreturn
something. not returning anything from a non-void
function invokes undefined behavior and it's only allowed for legacy reasons%lf
format:%.17g
(17
isDBL_DECIMAL_DIG
from<float.h>
)%lf
is the same as%f
inprintf()
, asfloat
s in C are always promoted todouble
s when passed as arguments.scanf()
is a different story, since%f
meansfloat *
and%lf
double *
, and those are not compatible pointersNo problem, great to hear that you solved it!
If you need help on a kata in the future, I recommend asking in the
#help-solve
channel on the Codewars discird server. You'll probably get a much faster response.Hi,
In the description it says:
That means that, after evilifying the input table, when we assign a new value to the table you returned, the original input table should also have that value (not evilified).
There is a link at the end of the description (Try table but meta?) that might help you understand better what's expected.
Hope this helps!
You will receive a string as input and you should return a regex pattern that matches another string (not provided, you will never encounter them) that contains at least once each unique letter from the input string.
Don't hesitate to ask help in the
#help-solve
channel from the Codewars discord server when neededapproved by someone
If I'm not mistaken :
it
s via atester
functionThanks for the edits!
Looks like it is specified.
Loading more items...