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.
In
9 should equal 0
your code returned 9 and the expected value was 0, the input isn't there, you have to print it by yourself. Not a kata issue, it's a problem with your code:@docgunthrop, the thing is, I dont have any problems with my solution IN MY IDE. Problem appears when I upload it here.
But, to be honest, may be 'the problem' starts from understanding it. The console log says: '9 should equal 0'. This is the only one error left for my solution. What does this error exactly mean? That, if digit_root(n) func calls with n = 9, it should return 0? If it works as I expect, as I said above, I have handled this case by writing if(n==9): return 0. If this error means smth else, could you please expalain me that?
@tonylicoding, thx for advise. I will post my shitty-code here, if I dont come up with solution about this error.
Try using
print
statements in breakpoints to trace where the problem is.The backticks just make it easier to read and it does this:
If you post it with three back ticks and end it with three back ticks then mark it with a spoiler, we'll know your code
I did mark it as spoiler, but I thought it wont lead to removing my comment. Anyway, @tonylicoding, may I ask you why my solution is wrong? I'd like to write ya in DM somewhere, if its possible
Or someone flagged it as a spoiler and because it has parts of your solution
Because you pressed Mark as having spoiler content
Omg, why this comment have been hidden?
Well your code is wrong and that is not an issue
That is not an issue, plz resolve it. Your code is wrong
In this particular problem of the digital_root
the test seeems to be all clear with green signal
but when i attempt it shows errors with red...
plz help(java)
Hi, you random case include n = 1015454089246728981841227617474295524237378715687033359243207839991,
but it overflows int! (Golang)
Is that right?
Hey! 36156 / 68120 == 18078 / 34060 == 695 / 1310 and same for others... And what to do?