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.
Hey thanks for the response. I realize I was logging inputs incorrectly which led me to believe the function was being passed absurdly large integers. Doh!
The inputs never get so big that php truncates them. I'm not sure what you mean by this anyway, in php, if an int gets too large it converts to a float with scientific notation, and you might lose some precision in the process, but it doesn't truncate the number. In any case, the largest inputs in php are around
10**14
, which is well under when conversion to float happens. Something else is wrong in your code.In order to output huge numbers I need to return a string otherwise php will truncate the integer.
The test cases don't allow me to return strings though. I get: Failed asserting '21' is equal to 21.
If I change to return integers I fail in the obvious way of not returning the full number.
why do i get this "The expression (solution(10)) == ((23)) is false." even though log output is 23 in C programming
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Had a solution in my IDE with no problems. Copy pasted and passed all but one test saying "0 matches 23" or something along those lines.
Left this site, came back, retried, and passed all tests with exact same solution.
Very cool.