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.
Either one is good.
In "Sample Tests"?
How can I to fix it?
The user can change the input array which will make your reference solution return a value known beforehand.
Hii! What do you mean?
Regarding the C translation:
Even though the exercise description mentions there are 10 matches in the championship, I recommend adding a "size_t n" parameter to the function "int points(char* games[], size_t n)" with "n" representing the number of string elements within char* games[]. Doing so will explicitly include this information within the source code itself and represents a software engineering best practice when passing an array of strings to a function. Additionally, it offers beginning C Programmers a glance at size_t data structures.
Print
str
to see what it is.My C code passes all of the static and random tests with the exception of:
The expression (xo(str)) == (solution(str)) is false.
Does anyone know what this error represents and what is being tested?