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 at: 2023/09/14 11:07; Updated at: 2023/09/14 11:22