Search
⌘K

Leetcode 2725. Interval Cancellation

Implement cancellable(fn, args, t) to invoke fn immediately with the given args and then repeatedly every t milliseconds, returning a cancel function that, when called, stops further scheduled calls (i.e., clears the interval).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.