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.
There is a
performance
tag, and some languages show test sizing ( all languages should do this ).I thought that this solution may be buggy, but didn't found a bug after few submissions, let me know, if you find some bugs in there.
The Instructions should contain the information about time complexity. I can only guess that quadratic solutions are not acceptable, imo that should be said at the beginning
This comment is hidden because it contains spoiler information about the solution
Not a kata issue...
why does that kind of XOR statement works in my IDE but not in here?
if (!(!(!((days==0)||(hours==0))||(minutes==0))||(seconds==0))) //xor