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.
maybe add braces, at least in the 42 network this wouldn't be considered norme
Also try
fprintf(stderr, "%u\n", input_value);
to see your output after the tests and not to mix with them.Sometimes it's in the same line with testing framework messages, so I recommend
\n
in the beginning too.printf("%u\n", input_value);
should work fine.It prints everything, but it is not guaranteed that the log will appear exactly before the corresponding test. In that case try submitting again.
Hey i am using C language. can anyone suggest me how can i print on output console for debugging purpose? i already use printf but ocassionally it skips over some data or do not print at all!
If you don't know that, start from the beginning, find a beginner Java tutorial, like this one, otherwise you'll not be able to solve any kata.
what's string methods and substring?? I've only heard of string
Most of the katas will test your knowledge, they won't tell you how to solve them. If you're doing Java try looking for string methods that allow you to get a substring. Either check Java docs or Google if you don't know where to start.
how do i do this??? I don't even know where to start from
For the c version of this kata I pass all assertions yet not the random test.
If I fail a case in the random test I should be able to see the input, whats expected and my output, like the assertions test.
Otherwise the kata is missing information.
nope, not in any way
I have a general question! The solutions listed in katas, are they sorted based on a execution time our code takes during final test? I know it is filtered as best prac,clever etc. Does execution time matter?
OK!
Noted. i will figure something out.Thanks for the help.
No problem for mislabelling! Unfortunately I don't have time to look at others' code. Maybe you could print the input to see with which zipcode you fail. Good luck!
Loading more items...