how to use comparitor in priority queu in c 2b 2b

Solutions on MaxInterview for how to use comparitor in priority queu in c 2b 2b by the best coders in the world