Search
⌘K

Leetcode 2648. Generate Fibonacci Sequence

Implement a generator that yields successive Fibonacci numbers (0, 1, 1, 2, 3, ...) on each next() call; the task is to produce the sequence of values generated after a given number of calls (0 ≤ callCount ≤ 50).


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.