My leetcode solutions in Rust
Every directory under problems/
is a cargo project which contains some basic test cases.
The whole project is a cargo workspace,
so all solutions can be tested using cargo test
from repository root
Use this script to initialize new problem quickly]. Example usage:
python add-problem.py leetcode "https://leetcode.com/problems/length-of-longest-fibonacci-subsequence"
The workspace contains a common
crate which is used in tests
and also contains leetcode-compatible definitions of common data structures,
like TreeNode
and ListNode