Skip to content

Instantly share code, notes, and snippets.

@DawidNowak
DawidNowak / Fibonacci.py
Created November 12, 2017 12:38
Fibonacci python
class FibonacciService:
def GetNext(self, num1: int, num2: int) -> int:
return num1 + num2
def GenerateList(self, length: int) -> list:
res = []
if length >= 1:
res.append(1)
if length >= 2:
res.append(1)