13,589 views
2 votes
2 votes
Let f(n) be a function that returns the factorial of a number n.if f(n) is implemented tail recursively and the compiler is capable of optimizing tail recursion,what would be the minimum depth of a stack,at any given time,created by the call f(10)?

a-10

b-11

c-1

d-2

1 Answer

Related questions

0 votes
0 votes
1 answer
1
_xor_ asked May 29, 2015
434 views
1 votes
1 votes
0 answers
2
4 votes
4 votes
1 answer
4
Garrett McClure asked Oct 9, 2017
1,258 views
The tail of a language is the set of all suffixes of its strings, that is tail(L) = {y : xy ∈ L for some x ∈ Σ ∗ }.How do I show that the family of regular languag...