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.
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
With a declaration of
int *array_diff
you will need to return a dynamically allocated array as opposed to one only local to the scope of the function. To make the expectations more clear, I have added some comments to the solution set-up, one of which refers to setting*z
as the array length as opposed toz
. Usemalloc
to define your return, and the test suite willfree
the memory.Please, mark your post as having spoiler content next time, also, check how to use markdown formatting when posting code here, there is a link in the post below.
None
to the caller (https://docs.codewars.com/training/troubleshooting#expected-the-same)