Crates.io | algorithms-edu |
lib.rs | algorithms-edu |
version | 0.2.7 |
source | src |
created_at | 2020-11-22 17:56:08.61414 |
updated_at | 2020-12-20 05:20:29.185576 |
description | Algorithms for pedagogical demonstration |
homepage | |
repository | https://github.com/TianyiShi2001/Algorithms |
max_upload_size | |
id | 315082 |
size | 261,400 |
This repository presents Rust implementations of common algorithms and data structures, most of which are based on William Fiset's Java implementation: https://github.com/williamfiset/Algorithms . I highly recommend his YouTube channel, where he explains many of these algorithms in detail using illustrations, animations and pseudocode.
In addition to implementing W. Fiset's algorithms, I also write solutions to competitive programming problems. Some representative problems are explained in src/problems
, and there is also a leetcode
folder for my leetcode solutions. Both are far from completion.
The implementation details are explained in comments and docs and the example usage is implied in unit tests. To run tests:
cargo test
I use LaTeX to write some math expression in docs. To render them correctly in docs, run:
RUSTDOCFLAGS="--html-in-header katex-header.html" cargo doc --no-deps --open
or an alias for this command:
./doc
This simple setup provides most features a decent IDE would provide (importantly, jump to definition and type labelling)