wafrat
  • Home
Subscribe

typescript

A collection of 1 post
leetcode

Using Priority Queues on LeetCode in JavaScript and TypeScript to avoid `Time Limit Exceeded`

A lot of problems on LeetCode require the use of a Priority Queue. Without it, even though your implementation works, it will not be efficient enough and the submission might fail with the dreaded "Time Limit Exceeded", passing only 980 out of 1000 tests. Solving questions without a Priority Queue
May 16, 2023 — 3 min read
wafrat © 2025