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.
Going for 2000 was a good idea, my brute-force solutions in Java didn't work :'D
Amazing kata, thank you very much!
This comment is hidden because it contains spoiler information about the solution
I think you might be underestimating the power of memcpy :D
Fully agree with this :'D
Agreed. It's not too bad since vectors are cleverly resized under the hood. But you are right, it would be an improvement. Calling the constructor with the size would also be an option. While doing that you could also store the size in a variable and use that for the loop. That should be more efficient, since the compiler probably can't infer that lines.size() is a constant
Yippie! Thank you for all the help! ^.^
Ouh I see :'D
Should be clear now, I just had to remove the function "hint" for C.
Here is the new fork: https://www.codewars.com/kumite/60d98f1d57c9d500554dff6b?sel=6276990271e24f0016c113cd
Very nice, thank you for the feedback!
Dang it, I completely forgot about that. Glad you mentioned it ^^'
Should be fixed now!
Hey there ^^
Thank you very much for taking the time to give some really nice feedback! I greatly appreciate it.
I think that I included all of your suggestions. I, unfortunately, didn't have the time to print the pyramids. In the case of the sample tests they are visible, but for the "more elaborate" tests it might be worth to add them (for the smaller ones). Let me know what you think, then I'll take some time :D
Oh and regarding the suggestion with the
num_elements
, the C99 style seemed like a good idea to me. I didn't want to "burden" people with figuring out that you can use gauss to "derive" the number of elements fromrows
. My reasoning was that other languages (afaik) did not require that, but let me know what you think!Cheers ^^
Hey there, no worries!
Thank you for the answer ^^
Ouh, that's unfortunate indeed, I wasn't aware of that :'D I'll post it in the discussion section for an admin to do it
Renamed the functions for the sample tests, since it wouldn't compile with the wrong names
Try drawing the
WEAREDISCOVEREDFLEEATONCE
with 4 rails and start working out some index magic ^^What language? From what I can see (for instance) Java always has >= 2.
50 for Java's random tests
Loading more items...