Using Recursion in C#

前端 未结 10 654
我寻月下人不归
我寻月下人不归 2020-12-14 20:19

Are there any general rules when using recursion on how to avoid stackoverflows?

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 20:50

    Other than having a reasonable stack size and making sure you divide and conquer your problem such that you continually work on a smaller problem, not really.

提交回复
热议问题