MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / reQueueCoolingPeriod

Function reQueueCoolingPeriod

javascript/0621-task-scheduler.js:70–74  ·  view source on GitHub ↗
(coolingPeriodQueue, maxHeap)

Source from the content-addressed store, hash-verified

68};
69
70const reQueueCoolingPeriod = (coolingPeriodQueue, maxHeap) => {
71 while (!coolingPeriodQueue.isEmpty()) {
72 maxHeap.enqueue(coolingPeriodQueue.dequeue());
73 }
74};
75
76/**
77 * https://leetcode.com/problems/task-scheduler/

Callers 1

getMinimumCpuIntervalsFunction · 0.85

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected