4 ms·
It depends on F, but usually, if F is like 2^n, then a single F(i) for a too large i, is slower than computing F(j) for all j < i. This is illustrated by the f
by emil-lp 2mo ago
It depends on F, but usually, if F is like 2^n, then a single F(i) for a too large i, is slower than computing F(j) for all j < i.
This is illustrated by the fact that there are more leaves in a complete binary tree than all the other nodes summed.