Skip to content

关于01题的时间复杂度疑惑 #128

Description

@spirit-unpredictable

使用双重for循环,不应该是n ^ 2 的时间复杂度吗,当nums数组存放数字越多,越趋向于n ^ 2的时间复杂度

原文地址
image

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions