NeetCode #959LC-2676MediumJavaScript
← Back to All Problems

#959 · #2676 · Throttle(节流)

📌 Problem Statement & Constraints

Implement throttle(fn, t): return a wrapper that invokes fn at most once in any window of t milliseconds; a call suppressed inside a window is replayed with the latest arguments when the window ends.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!