Compute the delays (seconds) before each retry: attempt k (starting at 0) waits base * factor**k,
capped at max_delay. Return the list of delays for retries retries, rounded to three decimals.
(Real clients add random jitter; this version is deterministic.)
Implement backoff_delays. Input: base: float, factor: float, max_delay: float, retries: int. Returns: list[float].
def backoff_delays(base: float, factor: float, max_delay: float, retries: int) -> list[float]:
return [base] * retries
Run executes the public tests. Submit grades against public and hidden tests.
Compute the delays (seconds) before each retry: attempt k (starting at 0) waits base * factor**k,
capped at max_delay. Return the list of delays for retries retries, rounded to three decimals.
(Real clients add random jitter; this version is deterministic.)
Implement backoff_delays. Input: base: float, factor: float, max_delay: float, retries: int. Returns: list[float].
def backoff_delays(base: float, factor: float, max_delay: float, retries: int) -> list[float]:
return [base] * retries
Run executes the public tests. Submit grades against public and hidden tests.