Java Priority Queue

  • + 2 comments

    Thanks for the solution.What is the purpose of poll() method here.?