We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Jesse and Cookies
- Discussions
Jesse and Cookies
Jesse and Cookies
Sort by
recency
|
183 Discussions
|
Please Login in order to post a comment
Python Solution with using Heap directly,
for typescript, seems it will never reach the required performance if not implementing min heap on my own?
this is the best i can produce so far while still timeout on a few cases
So strange, I cannot pass tests like 21 when using Python3 heapq heapreplace with big numbers (wrong answer). Using heappop and heappush instead works fine. Most of the tests pass when using heapreplace. I wonder if there is an explanation besides me being a second tier programmer.
Decription is incorrect. It first mentioned >k then >=k.