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.
Fixed C and C++ test code. Sorry for the oversight.
Cool kata.
Same occurs for C - took me some time before I realized source of not correct values.
Would be cool to add odd numbers of a and b to basic tests for next who will be trying to pass this kata.
Should be fixed, please check ;-)
(The reference solution used to calculate
carmichael(2) = 0
, which I've fixed)done!
aaaaah.... Good point. I will add a test for that, thx. :)
Mmmmh, that's weird, because I have some tests that should have seen that kind of problems. Maybe there are several intricated things, in your faulty code?
Do you remember what kind of command was exactly involved?
add
?bounder
?add_chaining
?I have currently things like this:
Here, during the last bounding and from what I understand of what you said, it feels like your code should have failed because you'd have gotten something like:
Obvisouly, that's not what happened to you, so I wonder what is the underlying "other" bug... :o
Hi,
Glad you liked it. :)
About your suggestion, I'm not sure I'm following, becasue, from what I currently understand, this should have been catch by the fixed tests: normally, if one atom is bonded to another, but not the opposite, the string representation should be unbalanced about those. Like
Atom(C4: C2,Y4,H,H), ..., Atom(Y4,H,H)
whereY4->C4
isn't present, for example. Unless yourtoString
implementation isn't correct or you had that problem about an explicit bond with a H when you get the error. Would you still have the data about that test, by any chance? (commands/inputs and you actual output)cheers
Please tell me, what language you are using?