问题
I know that JavaScript now has sets, but I wonder if there is something to realize the function of multiSet, or if there is some framework that has the functions of multiset which I really need a lot.
Or I have to code it by myself to do the research of Red-Black Tree?
回答1:
There are no built-in multiset structure, but there are some libraries that have such:
- mnemonist → MultiSet
- TSTL → TreeMultiSet
Feel free to add your favorite library in this question.
来源:https://stackoverflow.com/questions/32132242/is-there-something-like-mulitiset-in-javascript