What is the error?

Hey @garganshul151
Move both priority queue inside while(t–) loop otherwise your pq will have data from previous testcases :slight_smile:

https://ide.codingblocks.com/s/337968...TC 2 and 3 are still failing

Hey @garganshul151
Woking perfectly on my side


Please recheck :slight_smile: