Countdiv
As I solve more and more questions on codility.com, I increasingly feel that there's a need to do custom test cases. Don't overlook on them. It's important to test the validity of your code.
Test description
Test description
Solution #1
Wooooh. What the heck did I miss? I got 75% overall (including the performance test) Well, obviously. I forgot to include the cases where B % 2 == 0. So i did.
Solution #2
Now I fixed the code, but what the heck? I still got one test case wrong. I do not know why. What's happening? Ok. I tried a few, like three, of examples that people say they got 100% for. But turns out they have not. LOL I think it's more of a math question than just a coding question. so: pass it for now.