Skip to content

【661-Week 03】学习总结 #1498

Open

Description

@KvinLiu
  1. 递归是一种非常高效、简洁的编码技巧,一种应用非常广泛的算法,比如DFS,BFS等
  2. 方法或函数调用自身的方式称为递归调用,调用称为递,返回称为归。
  3. 基本上,所有的队规问题都可以用递归公式来表示
  4. 递归的优点是表达力很强,写起来简洁
  5. 递归的缺点为空间复杂度高,有堆栈溢出风险、存在重复计算,过多的函数调用会耗时较多等问题。

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions