You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 12 in solution.js
pq.add(head);
^
TypeError: pq.add is not a function
Line 12: Char 16 in solution.js (mergeKLists)
Line 36: Char 19 in solution.js (Object.<anonymous>)
Line 16: Char 8 in runner.js (Object.runner)
Line 27: Char 26 in solution.js (Object.<anonymous>)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
请在提交 bug 之前先搜索
出错的题目链接
https://leetcode.cn/problems/merge-k-sorted-lists/
报错信息
出错信息如下:
在What are the environments for the programming languages?一文中描述,对于
javascript
没有原生支持PriorityQueue
,所以通过引入了第三方库进行实现在 datastructures-js/priority-queue 库中描述,
compare
入参形式以及“insert value”
等method name
有些许出入,为了代码可以在leetcode中通过,需要进行一点小小修改你是否愿意提交 PR 修复这个 bug?
The text was updated successfully, but these errors were encountered: