問題詳情

4. Which of the following statements are true?
(A) In general, a recursive version is less efficient in terms of time and space than a non-recursiveversion.
(B) The function F1 below is executable (i.e., terminable) for all positive integer x.


(C) When input data are 21 and 12, the output of function F2 is 4, i.e., F2(21, 12)-4.Int F2(int x, int y)


(D)When input data is 5, the output of function F3 is 5, ie, F3(S) -5.

參考答案

答案:[無官方正解]
難度:計算中-1
書單:沒有書單,新增