Wrap a flaky call so transient failures are retried and permanent ones are not. Return the result, or raise the last exception once the budget is exhausted.
n (1-indexed) is base_delay * 2 ** (n - 1)retry_on propagate immediately, with no sleepsleep is the only delay mechanism — calling time.sleep fails the timing caseattempts counts total calls, not retriesCommunity-reported interview topic. Not an official company question and no affiliation is implied.
Run against the public tests, or submit to score against all of them.