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.
In JavaScript, which is overall more efficient? Using IFs statements, Swith-Case, or K-V pair object with anonymous function? I have seen people using IFs- S-C and my self using K-V objects(something I picked from C# unfortunately).
As a programming newbie i think understanding logic was hard at the beggining, but the code it self was pretty easy.
Not sure if this is just me but rust is missing the random test cases and is erroring out when attempting.
This comment is hidden because it contains spoiler information about the solution
I have to agree with others that this was very easy compared to the other 6 kyu problems I have done. This should probably be changed to 7.
I self approved and forgor to resolve the discourse, my bad
Oh sorry, for the wrong Tag!
And I found the issue with my code Thanks!
looks approved
a bug in your code is not a kata issue. please use the question tag to ask for help instead ;-) (also use markdown to format your code)
look closely at this line: how much memory are you allocating ? how much memory do you need ?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
thanks a lot!
infinite loop if there is no
'o'
no real random tests, integer overflow, input
char *
notconst
-qualified. all fixed, but I could not modify the prototype without invalidating previous solutions, so there is no way for the user to report his array's lengthseveral things wrong here: if there are no
'o'
in the input, you derefencemalloc(0)
, this is UB; you also assume thatmalloc()
will return zeroed memory, this is not always trueLoading more items...