src/structureUtil.js
// Pop the top of the priority queue (highest priority item)

Pop the top of the priority queue (highest priority item)
Pop the top of the priority queue ( highest priority item )
pop() {
        if (this.isEmpty()) {
            return "Priority Queue is empty. Unable to pop.";
        }
        return this.list.shift();
    }
pop ( ) { if ( this . isEmpty ( ) ) { return "Priority Queue is empty. Unable to pop." ; } return this . list . shift ( ) ; }
Pop the top of the priority queue (highest priority item)
Pop the top of the priority queue ( highest priority item )