LeetCode-Feedback / LeetCode-Feedback

669 stars 330 forks source link

[BUG] - Incorrect Constraints (703. Kth Largest Element in a Stream) #23716

Closed kazariad closed 2 months ago

kazariad commented 2 months ago

LeetCode Username

naizarak

Problem Number, Title, and Link

  1. Kth Largest Element in a Stream https://leetcode.com/problems/kth-largest-element-in-a-stream/

Bug Category

Problem constraints

Bug Description

Constraints indicate that 1 <= nums.length <= 104 however at least one test case uses an empty nums list:

["KthLargest","add","add","add","add","add"]
[[1,[]],[-3],[-2],[-4],[0],[4]]

note the empty list as one of 'KthLargest' parameters

Language Used for Code

Python/Python3

Code used for Submit/Run operation

No response

Expected behavior

Constraints should be updated to indicate nums can be empty, or test cases with empty nums should be removed.

Screenshots

No response

Additional context

No response

exalate-issue-sync[bot] commented 2 months ago

LeetCode Support commented: Hello,

Your reported issue has been relayed to our team for thorough investigation. We appreciate your patience as we work to address and resolve this matter. We will reach out to you when we have updates regarding the issue.

If you have any further questions or concerns in the meantime, please feel free to let us know.

Best regards, LeetCode Support Team

exalate-issue-sync[bot] commented 2 months ago

Epiphania_Ekenimoh commented: Thank you for your time.

Your feedback has been used to enhance the problem. As a token of our appreciation, your LeetCode account has been credited with 100 LeetCoins.

If you have any more questions or additional feedback, please don't hesitate to let us know. Your continued support is invaluable to us!

Best regards, The LeetCode Team