Comments

Sorry for commenting this late , but in your solution I'm not able to find the code where you actually add elements in the priority queue.