CSSE1001/7030 Week 12 每周题库 · Recursion 递归
Week 12 精选练习:递归思想、基准情形与递归追踪。Curated practice on recursion, base cases and tracing.
0题目
0已练习
0%你的正确率
~0 分钟预计时间
Recursion 递归
What will `r(4, 2)` return for the following function? `def r(x: int, y: int) -> int: if x == 0: return x * y; return r(x-5, y) + y`
Recursion 递归
What is the value of value after the following code is executed?
Recursion 递归
What is the value of x after the following code is executed?
Recursion 递归
What does fact(5) return?
Recursion 递归
What does rsum([1, 2, 3, 4]) return?
你的进度
0%0 / 25
已练 0 / 25 · 正确率 0%