You are viewing a single comment's thread. Return to all comments →
sys.set_int_max_str_digits(0) def fibonacciModified(t1, t2, n):`` if n == 1: return t1 elif n == 2: return t2 else: data = [0] * n data[0] = t1 data[1] = t2 for i in range(2, n): data[i] = data[i-2] + data[i-1] ** 2 return data[-1]
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Modified
You are viewing a single comment's thread. Return to all comments →