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'm trying in C version and couldn't pass the random tests.
No idea what I have been doing wrong. It's an one line solution. They should have given pointer to pass the solution to.
Thankyou Sunmaster and hobovsky
Size of data type depends on platfrom, and can be different between compilers. On CW, for Cand for C++, it is:
you can check the size of a long with sizeof(long)
isn't that for long long int?
9223372036854775807 is max positive for a long int.
The C test case has a value of 9999999999 which is not in the range of long int.
How should I handle such behaviour?