Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something like mulitiSet in JavaScript?

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?

like image 661
hanzichi Avatar asked Oct 20 '22 04:10

hanzichi


1 Answers

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.

like image 186
diralik Avatar answered Nov 02 '22 05:11

diralik