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]