# [RUST GYM](http://rustgym.com) Rust Solutions [![Docs Status](https://docs.rs/rustgym/badge.svg)](https://docs.rs/rustgym) [![Rust](https://github.com/warycat/rustgym/workflows/Rust/badge.svg)](https://github.com/warycat/rustgym/actions)
## [Leetcode Solutions in Rust](#leetcode)
## [AdventOfCode Solutions in Rust](#adventofcode)
## [Google Solutions in Rust](#google)
This project demonstrates how to create **Data Structures** and to implement **Algorithms** using programming language **Rust**
All the solutions here are crafted with love and their performance beats 99% of other solutions on the leetcode website. Tutorial videos will be added later.
### Please subscribe to our [RUST GYM Youtube Channel](https://www.youtube.com/channel/UCV9HzRLPKjI8SttaIYOygsw) for future videos.
<details><summary>Data Structures</summary>
- Stack & Queue ( Vec, VecDeque )
- Linked List ( Option<Box<ListNode>> )
- Hash Tables ( HashMap, HashSet )
- Tree Tables ( BTreeMap, BTreeSet )
- Binary Search Tree ( Option<Rc<RefCell<TreeNode>>> )
- Binary Heaps & Priority Queue ( BinaryHeap )
- Graphs ( Vec<Vec<usize>> )
- Union Find ( UnionFind )
- Trie ( Trie )
</details>
<details><summary>Algorithms</summary>
- Bit Manipulation & Numbers
- Stability in Sorting
- Heapsort
- Binary Search
- Kth Smallest Elements
- Permutations
- Subsets
- BFS Graph
- DFS Graph
- Dijkstra’s Algorithm
- Tree Traversals
- BFS
- DFS
- in-order
- pre-order
- post-order
- Topological Sort
- Detect cycle in an undirected graph
- Detect a cycle in a directed graph
- Count connected components in a graph
- Find strongly connected components in a graph
</details>
<table id="leetcode" class="table-auto">
<thead>
<tr>
<th>id</th>
<th>Leetcode</th>
<th>Level</th>
</tr>
</thead>
<tbody>
<tr>
<td>
1
</td>
<td>
<a href="http://rustgym.com/leetcode/1"> Two Sum</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
9
</td>
<td>
<a href="http://rustgym.com/leetcode/9"> Palindrome Number</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
13
</td>
<td>
<a href="http://rustgym.com/leetcode/13"> Roman to Integer</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
14
</td>
<td>
<a href="http://rustgym.com/leetcode/14"> Longest Common Prefix</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
20
</td>
<td>
<a href="http://rustgym.com/leetcode/20"> Valid Parentheses</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
21
</td>
<td>
<a href="http://rustgym.com/leetcode/21"> Merge Two Sorted Lists</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
26
</td>
<td>
<a href="http://rustgym.com/leetcode/26"> Remove Duplicates from Sorted Array</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
27
</td>
<td>
<a href="http://rustgym.com/leetcode/27"> Remove Element</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
28
</td>
<td>
<a href="http://rustgym.com/leetcode/28"> Implement strStr()</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
35
</td>
<td>
<a href="http://rustgym.com/leetcode/35"> Search Insert Position</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
53
</td>
<td>
<a href="http://rustgym.com/leetcode/53"> Maximum Subarray</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
58
</td>
<td>
<a href="http://rustgym.com/leetcode/58"> Length of Last Word</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
66
</td>
<td>
<a href="http://rustgym.com/leetcode/66"> Plus One</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
67
</td>
<td>
<a href="http://rustgym.com/leetcode/67"> Add Binary</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
69
</td>
<td>
<a href="http://rustgym.com/leetcode/69"> Sqrt(x)</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
70
</td>
<td>
<a href="http://rustgym.com/leetcode/70"> Climbing Stairs</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
83
</td>
<td>
<a href="http://rustgym.com/leetcode/83"> Remove Duplicates from Sorted List</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
88
</td>
<td>
<a href="http://rustgym.com/leetcode/88"> Merge Sorted Array</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
94
</td>
<td>
<a href="http://rustgym.com/leetcode/94"> Binary Tree Inorder Traversal</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
100
</td>
<td>
<a href="http://rustgym.com/leetcode/100"> Same Tree</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
101
</td>
<td>
<a href="http://rustgym.com/leetcode/101"> Symmetric Tree</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
104
</td>
<td>
<a href="http://rustgym.com/leetcode/104"> Maximum Depth of Binary Tree</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
108
</td>
<td>
<a href="http://rustgym.com/leetcode/108"> Convert Sorted Array to Binary Search Tree</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
110
</td>
<td>
<a href="http://rustgym.com/leetcode/110"> Balanced Binary Tree</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
111
</td>
<td>
<a href="http://rustgym.com/leetcode/111"> Minimum Depth of Binary Tree</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
112
</td>
<td>
<a href="http://rustgym.com/leetcode/112"> Path Sum</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
118
</td>
<td>
<a href="http://rustgym.com/leetcode/118"> Pascal's Triangle</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
119
</td>
<td>
<a href="http://rustgym.com/leetcode/119"> Pascal's Triangle II</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
121
</td>
<td>
<a href="http://rustgym.com/leetcode/121"> Best Time to Buy and Sell Stock</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
125
</td>
<td>
<a href="http://rustgym.com/leetcode/125"> Valid Palindrome</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
136
</td>
<td>
<a href="http://rustgym.com/leetcode/136"> Single Number</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
141
</td>
<td>
<a href="http://rustgym.com/leetcode/141"> Linked List Cycle</a>
</td>
<td>Easy</td>
</tr>
<tr>
<td>
144
</td>
<td>
<a href="http://rustgym.com/leetcode/144"> Binary Tree Preo
没有合适的资源?快使用搜索试试~ 我知道了~
Leetcode Solutions in Rust, Advent of Code Solutions in Ru.zip
共2000个文件
md:1425个
rs:376个
txt:129个
需积分: 5 0 下载量 49 浏览量
2024-02-04
10:59:13
上传
评论
收藏 3.11MB ZIP 举报
温馨提示
Leetcode Solutions in Rust, Advent of Code Solutions in Ru
资源推荐
资源详情
资源评论
收起资源包目录
Leetcode Solutions in Rust, Advent of Code Solutions in Ru.zip (2000个子文件)
csvg.cpp 19KB
98.css 22KB
desktop.css 5KB
vs.css 781B
.gitignore 92B
.gitkeep 0B
.gitmodules 89B
wrapper.h 35B
readme.j2 3KB
highlight.min.js 112KB
helper.js 169B
webdriver.json 298B
LICENSE 1KB
Cargo.lock 94KB
nestest.log 848KB
metaldnn.m 7KB
ios.m 392B
macos.m 385B
README.md 396KB
analysis.md 207KB
problem.md 138KB
problem.md 128KB
analysis.md 91KB
analysis.md 69KB
analysis.md 58KB
problem.md 57KB
problem.md 52KB
day13.md 8KB
day10.md 7KB
day14.md 7KB
day19.md 7KB
day17.md 7KB
day12.md 6KB
day4.md 6KB
day8.md 5KB
day9.md 5KB
analysis.md 5KB
1801.md 5KB
1242.md 5KB
636.md 5KB
8.md 5KB
day3.md 5KB
day5.md 5KB
1279.md 5KB
591.md 5KB
1396.md 5KB
1810.md 4KB
day7.md 4KB
day15.md 4KB
1188.md 4KB
642.md 4KB
736.md 4KB
day6.md 4KB
day8.md 4KB
1797.md 4KB
568.md 4KB
388.md 4KB
1376.md 4KB
831.md 4KB
day16.md 4KB
1298.md 4KB
157.md 4KB
1357.md 4KB
722.md 4KB
1263.md 3KB
1226.md 3KB
755.md 3KB
1172.md 3KB
1807.md 3KB
770.md 3KB
998.md 3KB
day2.md 3KB
1059.md 3KB
1061.md 3KB
1348.md 3KB
1366.md 3KB
748.md 3KB
165.md 3KB
1368.md 3KB
1333.md 3KB
909.md 3KB
day11.md 3KB
734.md 3KB
1824.md 3KB
353.md 3KB
375.md 3KB
1701.md 3KB
1659.md 3KB
288.md 3KB
999.md 3KB
966.md 3KB
631.md 3KB
day7.md 3KB
545.md 3KB
1275.md 3KB
635.md 3KB
1261.md 3KB
1697.md 3KB
218.md 3KB
1428.md 3KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
码农阿豪
- 粉丝: 9876
- 资源: 1750
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功