17 Commits (a0abfe6194fb06128cddefec6b466d8cdf10c727)

Author SHA1 Message Date
Carsten Kragelund fdf7d1c8cf FIX(docs, tests): Fix empty doctests, and add docs
* Adds documentation to the `bst!` macro

* Changes the tree visualizations from `rust` blocks to just `text`, so
that `cargo doc` does not complain

* Runs `cargo fmt`
2 years ago
Carsten Kragelund 63a3190084 FEAT(macro): Add bst! macro that act like vec!
This macro uses the `IterativeBST` to create a new
tree with the given elements, either creating just
and empty tree with `IterativeBST::new()` or using
a combination of `IterativeBST::from_iter()` and
`vec![]` if given any elements
2 years ago
sgoudham ab75f4f031
Reformat tests 3 years ago
sgoudham f874c41237
Rename sorted_order() to asc_order() & add documentation 3 years ago
sgoudham a8074b0f02
WIP add documentation & rework height() to count edges 3 years ago
sgoudham d491bc4d8e
Remove unused import 3 years ago
sgoudham e96bdbebbf
Implement height() and WIP level order traversal 3 years ago
sgoudham 63d451eebd
Update recursive_bst tests 3 years ago
sgoudham 316d04a7f2
Add function is_not_empty() for increased readability 3 years ago
sgoudham d7f1222c29
Change test names 3 years ago
sgoudham 9699802a8f
WIP iterative_consume_post_order_vec() + add some docs 3 years ago
sgoudham 1c935bc4f3
WIP iterative_consume_post_order_vec() 3 years ago
sgoudham 1e40b9f7d5
Implement iterative_consume_in_order_vec() 3 years ago
sgoudham 81aafcad77
Rename empty() to new() 3 years ago
sgoudham bac301ad3a
WIP Iterative implementation of BST 3 years ago
sgoudham 97e81f8620
WIP Iterative implementation of BST 3 years ago
sgoudham 6572ba88d1
Move tests into test folder 3 years ago