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.
I have made a Kata based on the Kumite that I started. If you want to go check it out, here's the link: https://www.codewars.com/kata/66ca80460f2a3f128a865cc5/c
No one is working together on some ultimate programming project in this thread. This is Codewars. Just have fun and do stupid shit. Nobody said this code was an improvement; it's just another submission.
What you did in those two last lines of code is crazy. I am still trying to wrap my head around it.
Prototype should not use const type for parameter
n
in C translation, that makes no sense at all.Random tests are needed (at least in C). This solution shouldn't have been accepted: https://www.codewars.com/kata/reviews/633ecc4a0b4d8d0001547ed6/groups/633ecc4b0b4d8d0001547edb
you have a memory leak.
Brain fart on my end. I initially wrote the tester and used const int for the index
n
to ensure it wouldn't be modified within the scope of the tester. I carried over that same approach to the function definition, but you're right — sincen
is passed by value and not by reference, making it const doesn't serve any purpose in the function prototype.I've corrected the prototype based on your suggestion!
merged!
The Kata has been updated according to your suggestions. Thanks for your input!
The feedback based on the pointer address has already been added. If the pointer returned points to the wrong address in memory, it will indicate that. I am also considering changing the description as you suggested. Thank you for your input!
Done! :)
Thanks for the suggestion! I made the appropriate changes to clarify the structure of the array.
Good catch. Thanks for reporting!
I see what you mean now - "remove" is definitely not the correct word to describe the expected operation for this Kata. Thank you for your input.
"people would assume you want move the characters from a string to a different string" - that's precisely the challenge. Extract the n-th string term and return it. You must do so by allocating the characters in a new string. Am I missing something?
Loading more items...