Use Rust to solve questions on Leetcode.

Overview

Rust for Leetcode

State-of-the-art Shitcode Code-Quality

本仓库用于记录我使用Rust刷Leetcode的代码,尽量做到日更。

题目列表

编号 名称 题目类型 题解
678 有效的括号字符串 valid-parenthesis-string.rs
461 汉明距离 位运算 hamming-distance.rs
62 不同路径 动态规划 unique-paths.rs
63 不同路径 II 动态规划 unique-paths-ii.rs
64 最小路径和 动态规划 minimum-path-sum.rs
120 三角形最小路径和 动态规划 triangle.rs
931 下降路径最小和 动态规划 minimum-falling-path-sum.rs
447 回旋镖的数量 哈希表 number-of-boomerangs.rs
1289 下降路径最小和 II 动态规划 minimum-falling-path-sum-ii.rs
1575 统计所有可行路径 动态规划 count-all-possible-routes.rs
524 通过删除字母匹配到字典里最长单词 双指针 longest-word-in-dictionary-through-deleting.rs
162 寻找峰值 二分查找 find-peak-element.rs
208 实现 Trie (前缀树) 前缀树 implement-trie-prefix-tree.rs
212 单词搜索 II 回溯 word-search-ii.rs
36 有趣的数独 数组 valid-sudoku.rs
292 Nim 游戏 数学 nim-game.rs
576 出界的路径数 动态规划 out-of-boundary-paths.rs
1301 最大得分的路径数目 动态规划 number-of-paths-with-max-score.rs
650 只有两个键的键盘 动态规划 2-keys-keyboard.rs
300 最长递增子序列 动态规划 longest-increasing-subsequence.rs
673 最长递增子序列的个数 动态规划 number-of-longest-increasing-subsequence.rs
58 最后一个单词的长度 字符串 length-of-last-word.rs
725 分割链表 链表 split-linked-list-in-parts.rs
326 3的幂 循环 power-of-three.rs
53 最大子序和 动态规划 maximum-subarray.rs
72 编辑距离 动态规划 edit-distance.rs
583 两个字符串的删除操作 动态规划 delete-operation-for-two-strings.rs
371 两个整数之和 位运算 sum-of-two-integers.rs
639 解码方法 II 动态规划 decode-ways-ii.rs
437 路径总和 III 深度优先搜索 path-sum-iii.rs
517 超级洗衣机 贪心 super-washing-machines.rs
223 矩形面积 数学 rectangle-area.rs
1436 旅行终点站 哈希表 destination-city.rs
405 数字转换为十六进制数 数学 convert-a-number-to-hexadecimal.rs
You might also like...
Rust Persistent Data Structures

Rust Persistent Data Structures Rust Persistent Data Structures provides fully persistent data structures with structural sharing. Setup To use rpds a

Rust crate to extend io::Read & io::Write types with progress callbacks

progress-streams Rust crate to provide progress callbacks for types which implement io::Read or io::Write. Examples Reader extern crate progress_strea

Parameterized routing for generic resources in Rust

Usher Usher provides an easy way to construct parameterized routing trees in Rust. The nodes of these trees is naturally generic, allowing Usher to le

RiteLinked - LinkedHashMap & LinkedHashSet in Rust

RiteLinked -- HashMap-like containers that hold their key-value pairs in a user controllable order RiteLinked provides more up to date versions of Lin

A proof of concept implementation of cyclic data structures in stable, safe, Rust.

A proof of concept implementation of cyclic data structures in stable, safe, Rust. This demonstrates the combined power of the static-rc crate and the

Doubly-Linked List Implementation in Rust

Doubly-Linked List Implementation in Rust Purely for educational and recreational purposes. For real world production please use std::collections::Lin

Rust library for string parsing of basic data structures.

afmt Simple rust library for parsing basic data structures from strings. Usage You can specify string formats to any strucute, via the use of the fmt

Hash Table Implementation in Rust
Hash Table Implementation in Rust

Hash Table Implementation in Rust Purely for educational and recreational purposes. For real world production please use std::collections::HashMap. Fo

SegVec data structure for rust. Similar to Vec, but allocates memory in chunks of increasing size.

segvec This crate provides the SegVec data structure. It is similar to Vec, but allocates memory in chunks of increasing size, referred to as "segment

Owner
Rui Li
A beginner in programming, looking for internship opportunities. Email: lr_cn[at]outlook.com
Rui Li
my leetcode solutions in rust

My Leetcode Solution in Rust Run cargo run {id} to initialize the template submission file of "question #id". Run cargo test test_{id} to test the sol

Aylei 598 Jan 1, 2023
A full-featured Leetcode API on Rust language

LeetCode API Rust Library This Rust library provides a convenient way to interact with the LeetCode API, allowing you to programmatically access LeetC

null 2 Jul 13, 2023
The solutions for Leetcode's problem

Leetcode The solutions for Leetcode's problem # Ttitle Solution Diffculty 1 Two Sum Rust, TypeScript Easy 5 Longest Palindromic Substring Rust, TypeSc

Eleven 2 Jul 21, 2022
Rust-algorithm-club - Learn algorithms and data structures with Rust

Rust Algorithm Club ?? ?? This repo is under construction. Most materials are written in Chinese. Check it out here if you are able to read Chinese. W

Weihang Lo 360 Dec 28, 2022
Ternary search tree collection in rust

tst Ternary search tree collection in rust with similar API to std::collections as it possible. Ternary search tree is a type of trie (sometimes calle

Alexey Pervushin 20 Dec 7, 2022
Array helpers for Rust's Vector and String types

array_tool Array helpers for Rust. Some of the most common methods you would use on Arrays made available on Vectors. Polymorphic implementations for

Daniel P. Clark 69 Dec 9, 2022
Generic array types in Rust

generic-array This crate implements generic array types for Rust. Requires minumum Rust version of 1.36.0, or 1.41.0 for From<[T; N]> implementations

Bartłomiej Kamiński 325 Dec 25, 2022
A priority queue for Rust with efficient change function.

PriorityQueue This crate implements a Priority Queue with a function to change the priority of an object. Priority and items are stored in an IndexMap

null 139 Dec 30, 2022
K-dimensional tree in Rust for fast geospatial indexing and lookup

kdtree K-dimensional tree in Rust for fast geospatial indexing and nearest neighbors lookup Crate Documentation Usage Benchmark License Usage Add kdtr

Rui Hu 152 Jan 2, 2023
Roaring bitmap implementation for Rust

RoaringBitmap This is not yet production ready. The API should be mostly complete now. This is a Rust port of the Roaring bitmap data structure, initi

Roaring bitmaps: A better compressed bitset 552 Jan 1, 2023