N-th Tribonacci Number

ID: 1137; easy

Solution 1

This is the same bottom-up approach used in Fibonacci Number. The only difference here is that we use 4 variables to keep the results.

Last updated

Was this helpful?