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.
Long story short, you shouldn't modify given function signatures :P If you remove
throws Exception
, then it should work.This simply means you will only receive non-negative numbers in tests, and you shouldn't have to worry about other inputs. It should also be safe to assume that numbers won't go past integer's bounds, otherwise that would be a kata issue.
Issue with your code is not the same as KATA issue :/ Java has 8000+ completions, so I'm pretty sure the tests are fine.
I'm not really familiar with that error message, but maybe you're trying to throw an error where it's not needed? No try-catch blocks should be needed here, as all inputs should be valid.
If you can't resolve it, try posting your code here, format it properly and mark it as spoiler.