Question

Where can I find one ready for use? Or for that matter, a good collection of "standard" data structures, if you know of any?

Was it helpful?

Solution

A quick check o' the Interwebs turned up a ready-to-use implementation from Kevin Lindsey (scroll down to Red-Black Trees):

KevLinDev - Utilities

Unfortunately I don't know of a site that has a repository of ready made complex data structures.

I'm guessing they're a tad rare since people rarely use JavaScript for the kind of heavy lifting that would necessitate those kinds of complex structures...but I could be wrong.

OTHER TIPS

I wrote a red-black tree in javascript, available here: https://github.com/vadimg/js_bintrees or as bintrees in npm. Unlike the other implementations, it has unit tests.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top