https://leetcode.com/problems/n-th-tribonacci-number/ N-th Tribonacci Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public: int tribonacci(int n) { int T[n+1]; T[0] = 0; if (n == 0) return T[0]; T[1] = 1; if (n == 1) return T[1]; T[2] = 1; for(int i = 3; i