The construct used to keep track of recursive calls and their parameters
What is the function stack?
300
int mystery(int a, int n) { return (a==1) ? a : a*mystery(a, n-1); }
What is exponentiation?
300
If I switch the order of the _ and _ cases in a recursive two-liner, I get _ recursion
What are base, recursive, and infinite?
300
How many times is the number 1 returned by a call to fib(6)?
What is 8?
300
Fix two words in the following poem:
To reverse a string,
Put the first thing first,
Put the last thing last,
And between, the reverse
Of the rest of the thing.
What is first -> last, last -> first?
400
If a recursive function has no base case it recurses _
What is infinitely
400
int Node::_() {
if (!node->next) return 1;
else return 1+node->next->_();
}
If a tree holds n nodes, how many traversals does it take to find a key?
What is log(n)?
400
Correct exactly one word in the following to make it true
To *print* a string backwards, I *print* the substring containing all but the first character, and then output the last character
What is last->first?
500
The two most popular O(nlog(n)) sorting algorithms which use recursion