my-solutions/leetcode/2648-generate-fibonacci-sequence/readme.md

10 lines
352 B
Markdown
Raw Permalink Normal View History

2024-02-07 21:48:43 +05:00
# 2648. Generate Fibonacci Sequence
[Leetcode](https://leetcode.com/problems/generate-fibonacci-sequence/description/)
Write a generator function that returns a generator object which yields the fibonacci sequence.
The fibonacci sequence is defined by the relation Xn = Xn-1 + Xn-2.
The first few numbers of the series are 0, 1, 1, 2, 3, 5, 8, 13.