Crate leetcode_trees_rs

source ·
Expand description

§Introduction

LeetCode Trees’s purpose is making LeetCode problems easier to work around with via some simple library exports that allow for a smoother development experience by allowing you to use your primary IDE rather than the LeetCode website to solve the problems.

§Installation

These are the two ways to can add this library to your project:

Number 1 - Via the Cargo.toml file by adding this;

[dependencies]
leetcode-trees-rs = "0.1"

Number 2 - Via running the following command in your terminal:

cargo add leetcode-trees-rs

§Usage

The usage is very simple. These are the primary components:

Additionally, via the support of the cargo make library you can comfortably run your LeetCode tests by running:

cargo make leetcode_problem_number

Assuming there’s a LeetCode submittion for it. All the solutions are managed on the GitHub page of this libray.

Re-exports§

Modules§

  • The module that contains the error type.
  • The module that contains all the useful macros.
  • Contains re-exports for all the important structs.
  • Contains the structs and macro re-exports that you can use in creating LeetCode solutions related to binary trees.

Macros§