Skip to content

Bug Report for top-k-elements-in-list #4937

@negimm

Description

@negimm

Bug Report for https://neetcode.io/problems/top-k-elements-in-list

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

I think my solution is correct but program is evaluating negative for following example.

Input:

nums=[1,2]
k=2
Your Output:

[]
Expected output:

[1,2]

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