Light Mode
Dark Mode
doesn't work, why?
def count_divisible(n: int, k: int) -> int:
    result = 1
    position = 0
    while position <= n:
        position = k*result
        result += 1
    return result

doesn't work, why?

Created: Oct. 4, 2023, 4:28 a.m.
Updated: Oct. 5, 2023, 5:03 p.m.
0
13
User avatar
msibirov1975