The TransCompilator

Solved LeetCode program · 848 of 1,000

#1137 · N-th Tribonacci Number

Easy Math chunk-17.md

Original English source

The wanted is 25. The older is 0. The middle is 1. The newer is 1. The spot is 3.
Repeat while spot is at most wanted.
The next is older plus middle plus newer. Set older to middle. Set middle to newer. Set newer to next. Add 1 to spot.

Show newer.

Open in Playground Browse all 1,000 problems

Expected stdout

1389537