mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-03-13 08:51:02 +08:00
Integrate codecov.
This commit is contained in:
@@ -126,6 +126,8 @@ export default class MinHeap {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Min heap may be converted to max heap by simply changing this line to:
|
||||
// a > b ? -1 : 1
|
||||
return a < b ? -1 : 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user