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.
I've updated the description with a detailed specification of the input.
You need to specify the input in the description. e.g. the image is represented as single
char *
split over multiple lines, it will always have length/width of blah, holes in circles will never include the circle's edge, etc.kindly do not post solutions like this, as it goes to the main comment thread where nobody wants to see it
#include <stddef.h>
#include <stdlib.h>
int *twin_sum_solutions(int *input, size_t input_len, size_t *output_len) {
if (input_len < 2) {
*output_len = 0;
return NULL; // Return NULL if there are no pairs
}
}
tester("pneumonoultramicroscopicsilicovolcanoconiosis", "sisoinoconaclovociliscipocsorcimartluonomuenp");
Merged.
Fixed spelling mistake in C translation.
I think you do not need len. It is a dice so the number of faces is always 6. Unless you are considering a dice for dungeons and dragons.
Yea, I should've chosen a better name. Thanks :D
love it, just the name of prod is a bit misleading, took me a bit to realize what you wanted to do
its actually a denominator of the quotient, so when i(sum-i) is maximum, q is minimum
nice :)
once again, dont make it look good- make it look intimidating... :)
umm really?????
I just ported their code to C. I didn't add any extra features to detect foul play.
u really wanna do this? i dont even know c that much, just the basics :(
Would you mind your language a bit.
Loading more items...