KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I thought add() is supposed to ignore duplicates, but my output has duplicates. How do I not store duplicates? I would also like to know how the priority queue checks if two elements are duplicates. I'm guessing it's using the comparator equals, but I just want to be sure. Thanks
Tags (comma-separated)
Save Edits
Cancel