Skip to content

[html] 第280天 使用递归时应该注意哪些问题? #1800

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第280天 使用递归时应该注意哪些问题?

我也要出题

Activity

forever-z-133

forever-z-133 commented on Jan 26, 2020

@forever-z-133
  1. 必须要有正确的结束条件
  2. 避免占用太多栈而爆掉,可限制最大栈数报警或异步分批
  3. 注意类似对象引用自身的无限循环情况
cjZb

cjZb commented on May 11, 2020

@cjZb

4.返回值必须是一个函数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@forever-z-133@cjZb

        Issue actions

          [html] 第280天 使用递归时应该注意哪些问题? · Issue #1800 · haizlin/fe-interview