jcpince / algorithms

Small algorithm exercises from leetcode, hackerrank...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>]

About

Small algorithm exercises from leetcode, hackerrank...

License:MIT License


Languages

Language:C++ 71.3%Language:Python 23.3%Language:Rust 4.0%Language:CMake 0.6%Language:Shell 0.4%Language:Go 0.2%Language:C 0.1%Language:Makefile 0.0%