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.
ah ok, I wasn't allocating space for the array correctly (with calloc) so the Array2String... was showing the garbage values in my uncleared memory.
yes, i'm returning a fixed size array of ull (ull ret[3]) which should be equivalent to an unsigned long long*
Are you returning what is asked? (re-read the signature of the function).
Attempting in C. Can't figure this one out at all. This function in the test code:-
char* array2StringULongLong(ull* array, int sz);
seems to be mangling my returned array so that I get errors like this...
Error. Expected 55, 89, 1
but got 55, 89, 4201070
when I am certain that the third item is the array is 1, not 4201070. I have tried using the bool lib and using true, I have also tried using littorals with various suffixes, can't get it to work. Help pls.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In Python you can use [-1] as the index to a list to access the first item from the right.
sorry for the noob question, but why access items from the -1 index?? wouldn't that give an out of bounds exception?
Is it really necessary to pass a list of dicts? surely a list of strings would have tested the same skills. names[-1]['name']... makes my eyes hurt.