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.
This comment is hidden because it contains spoiler information about the solution
He just outputted the answers directly instead of writing code that would work in all instances. Clearly more tests need to be written.
Thanks for the quick reply. I haven't the foggiest why I would do this, but I must have changed the return and parameter types immediately once I got them into my IDE.
I'm getting a Java 43 error stating that there's a possible lossy conversion from Long to Int. The description is pretty clear that the input will be an int, yet the tests accept Long inputs. I can change all of my types in my internal methods and then cast to an Int in the end, but that seems silly. Is this by design or something that made it's way into the Java version by mistake?
Also, it says in the instructions that "Each number will....consist of only the digits 0-9" The unknown number cannot be a negative. -1 should be thought of as Out Of Bounds.
This comment is hidden because it contains spoiler information about the solution
I have the same error with C#
Did you get an answer to this?
gotcha. Ya, that makes sense. I had to keep setting my count to zero when I was running random tests in VS.
Thanks a lot.
This comment is hidden because it contains spoiler information about the solution