Skip to content

给你一个数组[2,1,2,4,3],你返回数组 [4,2,4,−1,−1] #142

Description

@sisterAn

给你一个数组 [2,1,2,4,3] ,你返回数组 [4,2,4,−1,−1]

解释:
第一个 2 后面比 2 大的数是 4 ; 1 后面比 1 大的数是 2 ;第二个 2 后面比 2 大的数是 4; 4 后面没有比 4 大的数,填 -13 后面没有比 3 大的数,填 -1

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions