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 was doing the kata in C.
How do you want us to handle the case of r1 or r2 being negative? Strictly speaking a circle with a negative radius doesn't exist.
I'm not sure the C version is working correctly, as my output is:
Log
n = 8 number of 0 = 0
Test Passed
Log
n = 30 number of 0 = 3
Test Passed
Log
n = 1443 number of 0 = 144
Test Passed
Log
n = 9295 number of 0 = 929
Test Passed
Log
n = 302 number of 0 = 30
The expression count_zeros_n_double_fact(randomed) == test_zeros(randomed) is false.
This is exactly the problem I'm running into.