heap.js
heap.js copied to clipboard
About updateItem method
The indexof method is used in the updateitem method, but the complexity of this method is O (n). Is it necessary to optimize this place?