/algorithms

Small algorithm exercises from leetcode, hackerrank...

Primary LanguageC++MIT LicenseMIT

algorithms

Small algorithm exercises from leetcode, hackerrank...

b __asan_on_error to debug

Rust

Add new Leetcode exercise

Edit leetcode/Cargo.toml and add a section as follows:

[[bin]]
name = "<new exercise name>"
path = "<new exercise name>.rs"

Build all the examples

cargo build

Test an exercise

./target/debug/<exercise name> --json_unittests leetcode/<exercise name>.unittests.json [--index <test idx>]