國營事業◆1.計算機原理 2.網路概論題庫下載題庫

上一題
15. 與迴圈(Loop)相比,下列哪一個不是使用遞迴(Recursive)的優點?
(A)程式可讀性高
(B)程式執行效率較高
(C)區域變數與暫存變數較少
(D)程式碼較短


答案:登入後觀看
難度: 適中
最佳解!
黃豐諭 研二上 (2019/08/01)
for迴圈 VS 遞迴 所謂for迴圈...


(內容隱藏中)
查看隱藏文字
3F
我還有明天 高二上 (2021/03/16)

PROS:

Recursion can reduce time complexity.

Recursion adds clarity and reduces the time needed to write and debug code.

Recursion is better at tree traversal.


CONS:

Recursion uses more memory.

Recursion can be slow.

4F
佐伯貴理華 (2023/08/15)
遞迴方式設計程式較簡易且容易了解。 但遞迴方式也是有它的缺 點,最大的缺點就在於,以遞迴方式執行時,會占用較多記憶體空間和 花費較多的CPU時間
5F
imbiao (2024/08/25)
66ca8ae5db8f5.jpg

15. 與迴圈(Loop)相比,下列哪一個不是使用遞迴(Recursive)的優..-阿摩線上測驗