Light Mode
Dark Mode
Missing test

I had an initial solution that passed all tests.

return end//n-start//n+(start==0)

Then, I tried on my own:

count_divisibles(-4,0,4)

and got a 1.

It looks like some edge cases are missing. Those are, of course, cases where start or end is divisible by n.

Created: Sept. 14, 2023, 11:07 a.m.
Updated: Sept. 14, 2023, 11:22 a.m.
0
29
User avatar
amandel