KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am porting some C++ code to Python and one of the data structures is a multiset, but I am not sure how to model this in Python. Let ms be the C++ multiset<int> How ms is used (posting some examples) multiset<int>::iterator it = ms.find(x) ms.erase(it) ms.insert(x) ms.end() ms.lower_bound(x) ms.clear()
Tags (comma-separated)
Save Edits
Cancel