Available question text
Return a wrapper for a given function that calls the original at most once: it should invoke and return fn's result on the first call, then always return undefined on subsequent calls (use a closure to track call state).
Related questions
Continue with questions that share topics or the same question type.
- Call Function with Custom Context
Coding
- Convert Streaming Call-Stack Samples into Function Events
Coding · Arrays & Strings · Stacks & Queues
- Find Most Frequent Function Call Path in Stack Trace
Coding
- Alert Using Same Key-Card Three or More Times in a One Hour Period
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2666. Allow One Function Call
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source