Glossary: Data Structures and Algorithms in C++
Base case
The input a recursive function answers directly without calling itself, such as seconds == 0 in countdown. Without it the recursion never stops.
Glossary: Data Structures and Algorithms in C++
The input a recursive function answers directly without calling itself, such as seconds == 0 in countdown. Without it the recursion never stops.