Tail Recursion, why it's efficent?

前端 未结 0 1566
轻奢々
轻奢々 2021-02-14 00:06

I was watching: https://www.youtube.com/watch?v=_JtPhF8MshA

Where the following implementation:

int factorial (int n)
{
    if (n==0) return 1;
    return          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题