This topic created in 2126 days ago, the information mentioned may be changed or developed.
3 replies • 2020-08-08 18:35:12 +08:00
 |
|
1
MoYi123 Aug 8, 2020 2
尾递归只是把原先的函数调用栈放到参数里而已,所有的递归在参数中加一个栈都可以改成尾递归。
|
 |
|
2
ynyounuo Aug 8, 2020 via iPhone
用 CPS 基本上任何东西都能写成尾递归,但是没有意义
|
 |
|
3
ClericPy Aug 8, 2020
好久以前还看到有人在这里吐槽 Python 没有尾递归优化
|