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.
n = 0
is incorrect - the description does not mention that you should returnNULL
in this case. In fact you should return the empty string (why?)malloc()
ed buffer does not account for the number of timesn
the string is repeated so it is often too short to contain the resultmalloc()
ed buffer contains garbage values by default so you need to initialize it properly before performing string operations on it such asstrcat()
The heck is a static int in javascript?
This comment is hidden because it contains spoiler information about the solution
The description "forgets" to mention that you need to return a freeable array.
Yup, you read it right: Dynamically. Allocated. Array. Of. Size. Three.
This comment is hidden because it contains spoiler information about the solution
No extra variables! just the arrays passed.
nice ! It will not need math.h
Issues and question are not mutually exclusive.
I have apparently incorrectly assumed that the tests were the same because of the name and I admit it did not even occur to me to print the input. I also did not know I could see the tests after solving it. Thanks for the response.
The tests are fine, your code is not. Check how you validate the input values.
This comment is hidden because it contains spoiler information about the solution