Consider factorial(k) : if k = 0 return 1, else return k \cdot factorial(...
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Consider factorial(k): if k = 0 return 1, else return k \cdot factorial(k-1). How many times is factorial invoked in total (counting the initial call and the base-case call) to compute factorial(3)?