adapted from the code found in Robert Sedgewick Algorithm book (ISBN: 032157351X)
you can also try them online:
- BST - https://dartpad.dev/?id=f0a6fb05ecbb79d3e4bd8e0030853d64
- Digraph - https://dartpad.dev/?id=4bdd7098c9cd271e53320d30102c221c
- Eval - https://dartpad.dev/?id=e46c9c559bce6b8cee012ce31cd7921b
- Graph - https://dartpad.dev/?id=25a414dc0674c892a32b85637e0248fb
- HashTable - https://dartpad.dev/?id=b19b0fe536b3dc5f8b85a1394b0950b8
- NFA - https://dartpad.dev/?id=43c20be7936f2f31f15ec3da4e84377f
- Prim - https://dartpad.dev/?id=9d08e279b7dbf85f2356967da1b6b050
- RedBlack - https://dartpad.dev/?id=8932075c98cbd4cb3608c8b4e3eaf9c3
- Sort - https://dartpad.dev/?id=0a693b701a32f03b132dcb1d0c92e2a5