Find the nth element in a k-Fibonacci sequence where each term is the sum of the previous k terms. The first k terms are typically defined as [0, 0, ..., 1].
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.