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
Translation rejected (bad function name in sample tests, deprecated version and other types and variables changes needed).
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.
Yes, now it works for me too.
Should be fixed, please check ;-)
(The reference solution used to calculate
carmichael(2) = 0
, which I've fixed)Tickets, please!
Can you solve the best route to travel, when you have some half-price coupons in your pocket?Why does the test say for example for n = 2903225426
Expected: 0, instead got: 60453792
When clearly 60453792 should be the correct solution, even Wolfram Alpha confirms this.
PS. And it's the JS version I'm trying, (if there are others :D)
done!
aaaaah.... Good point. I will add a test for that, thx. :)
This comment is hidden because it contains spoiler information about the solution
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
I mean the case when we make a bond but it is invalid and will throw an Error. I was still making X bond to Y but then the execution would fail and throw an error (because I was testing the valence-ok:ness separately, not testing both first and only then making the bonds if ok, as it should be done). I guess the fixed tests doesn't include a test for this situation, at least I passed them with my then faulty Atom.connectTo -method.
This comment is hidden because it contains spoiler information about the solution
Loading more items...