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?
The description "forgets" to mention that you need to return a freeable array.
Yup, you read it right: Dynamically. Allocated. Array. Of. Size. Three.
The tests are fine, your code is not. Check how you validate the input values.