Skip to content

Commit b0a42a8

Browse files
authored
Update 632-smallest-range.js
1 parent dfdfb81 commit b0a42a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

632-smallest-range.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ var smallestRange = function(nums) {
188188

189189
// another
190190

191-
class PriorityQueue {
191+
class PQ {
192192
constructor(comparator = (a, b) => a > b) {
193193
this.heap = []
194194
this.top = 0
@@ -260,7 +260,7 @@ class PriorityQueue {
260260
* @return {number[]}
261261
*/
262262
const smallestRange = function (nums) {
263-
const pq = new PriorityQueue((a, b) => a[0] < b[0])
263+
const pq = new PQ((a, b) => a[0] < b[0])
264264
const limit = 10 ** 5,
265265
n = nums.length,
266266
{ max } = Math

0 commit comments

Comments
 (0)