3 ms·
The fact that the recursive method for calculating factorials fails for quite small numbers is a good reason for teaching it. Also computing the factorial is o
by bigbacaloa 4y ago
The fact that the recursive method for calculating factorials fails for quite small numbers is a good reason for teaching it.
Also computing the factorial is one of the first examples illustrating that recursion is useless in practice.
- dale_glass 4y ago> The fact that the recursive method for calculating factorials fails for quite small numbers is a good reason for teaching it. That variables can overflow is a valuable thing to teach, but it shouldn't be something the student bumps into during the lesson on recursion