Go back

LeetCode Trees


GitLab repo

Docs.rs

A Rust library for Binary Trees in LeetCode. It uses the same struct signatures as the LeetCode (LC) problems (refer to: 100. Same Tree and 103. Binary Tree Level Order Traversal) but it expands upon their general implementations with additional macros as well as a proper Result<T, E> type which can be used in tests and/or your main function.

Feel free to check out the Example Solutions on GitLab.

Also feel free to check out the following example which is also available on the README.md file of the GitLab repo