MCPcopy Index your code
hub / github.com/Ainevsia/Leetcode-Rust

github.com/Ainevsia/Leetcode-Rust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,513 symbols 2,109 edges 288 files 109 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Leetcode-Rust

Trying to solve the problems on leetcode by rust.

Title Rust C++ Solution
1. Two Sum Rust C++ Solution
2. Add Two Numbers Rust
3. Longest Substring Without Repeating Characters Rust
4. Median of Two Sorted Arrays Rust
5. Longest Palindromic Substring Rust
6. ZigZag Conversion Rust
7. Reverse Integer Rust Solution
8. String to Integer (atoi) Rust
9. Palindrome Number Rust
10. Regular Expression Matching Rust
11. Container With Most Water Rust C++ in README Solution
12. Integer to Roman Rust
13. Roman to Integer Rust
14. Longest Common Prefix Rust
15. 3Sum Rust C++
16. 3Sum Closest Rust
17. Letter Combinations of a Phone Number Rust
18. 4Sum Rust
19. Remove Nth Node From End of List Rust Solution
20. Valid Parentheses Rust
21. Merge Two Sorted Lists Rust
22. Generate Parentheses Rust C++
23. Merge k Sorted Lists Rust
24. Swap Nodes in Pairs Rust
25. Reverse Nodes in k-Group Rust
26. Remove Duplicates from Sorted Array Rust
27. Remove Element Rust
28. Implement strStr() Rust C++
29. Divide Two Integers Rust
30. Substring with Concatenation of All Words Rust
31. Next Permutation Rust C++
32. Longest Valid Parentheses Rust
33. Search in Rotated Sorted Array Rust
34. Find First and Last Position of Element in Sorted Array Rust
35. Search Insert Position Rust
36. Valid Sudoku Rust
37. Sudoku Solver Rust
38. Count and Say Rust
39. Combination Sum Rust
40. Combination Sum II Rust
41. First Missing Positive Rust
42. Trapping Rain Water Rust C++ in README Solution
43. Multiply Strings Rust
44. Wildcard Matching Rust
45. Jump Game II Rust Solution
46. Permutations Rust
47. Permutations II Rust
48. Rotate Image Rust
49. Group Anagrams Rust C++ Solution
50. Pow(x, n) Rust
51. N-Queens Rust
52. N-Queens II Rust
53. Maximum Subarray Rust
54. Spiral Matrix Rust
55. Jump Game Rust
56. Merge Intervals Rust
57. Insert Interval Rust
58. Length of Last Word Rust
59. Spiral Matrix II Rust
60. Permutation Sequence Rust
61. Rotate List Rust Solution
62. Unique Paths Rust
63. Unique Paths II Rust
64. Minimum Path Sum Rust C++
65. Valid Number Rust
66. Plus One Rust
67. Add Binary Rust
69. Sqrt(x) Rust
70. Climbing Stairs C++
71. Simplify Path C++ Solution
72. Edit Distance Rust
73. Set Matrix Zeroes C++
74. Search a 2D Matrix Rust
75. Sort Colors Rust
76. Minimum Window Substring Rust
77. Combinations C++
78. Subsets Rust C++ Solution
79. Word Search Rust
80. Remove Duplicates from Sorted Array II Rust
81. Search in Rotated Sorted Array II Rust C++
82. Remove Duplicates from Sorted List II Rust C++
83. Remove Duplicates from Sorted List C++
84. Largest Rectangle in Histogram Rust
85. Maximal Rectangle C++
86. Partition List Rust C++
88. Merge Sorted Array Rust
89. Gray Code C++
90. Subsets II Rust C++
91. Decode Ways Rust
92. Reverse Linked List II Rust
93. Restore IP Addresses C++
94. Binary Tree Inorder Traversal C++
95. Unique Binary Search Trees II C++
96. Unique Binary Search Trees C++
97. Interleaving String C++
98. Validate Binary Search Tree C++
99. Recover Binary Search Tree C++
101. Symmetric Tree C++
102. Binary Tree Level Order Traversal C++
103. Binary Tree Zigzag Level Order Traversal Rust
105. Construct Binary Tree from Preorder and Inorder Traversal C++
109. Convert Sorted List to Binary Search Tree C++
111. Minimum Depth of Binary Tree Rust
113. Path Sum II Rust
115. Distinct Subsequences C++
120. Triangle Rust
121. Best Time to Buy and Sell Stock C++
122. Best Time to Buy and Sell Stock II C++
125. Valid Palindrome Rust
131. Palindrome Partitioning Rust
133. Clone Graph
134. Gas Station C++
135. Candy Rust C++
136. Single Number Rust
149. Max Points on a Line C++
155. Min Stack Rust
160. Intersection of Two Linked Lists C++
168. Excel Sheet Column Title Rust
179. Largest Number Rust
198. House Robber Rust
200. Number of Islands Rust C++
202. Happy Number Rust C++
207. Course Schedule Rust
210. Course Schedule II Rust
213. House Robber II Rust
215. Kth Largest Element in an Array C++
217. Contains Duplicate Rust C++
219. Contains Duplicate II Rust C++
220. Contains Duplicate III Rust
234. Palindrome Linked List Rust
236. Lowest Common Ancestor of a Binary Tree C++
238. Product of Array Except Self Rust C++
240. Search a 2D Matrix II C++
268. Missing Number Rust
287. Find the Duplicate Number Rust
290. Word Pattern Rust
295. Find Median from Data Stream Rust
310. Minimum Height Trees Rust
312. Burst Balloons C++
316. Remove Duplicate Letters Rust
321. Create Maximum Number Rust
337. House Robber III Rust
343. Integer Break C++
347. Top K Frequent Elements Rust
368. Largest Divisible Subset [Rust](./368.%20Largest%20Divisible%2

Extension points exported contracts — how you extend this code

Extractor (Interface)
(no doc) [1 implementers]
1759. Find the Missing IDs/src/main.rs
MyTrait (Interface)
(no doc) [1 implementers]
1444. Number of Steps to Reduce a Number to Zero/src/main.rs

Core symbols most depended-on inside this repo

push
called by 205
1669. Minimum Cost to Cut a Stick/src/list.rs
iter
called by 157
1669. Minimum Cost to Cut a Stick/src/main.rs
pop
called by 66
1669. Minimum Cost to Cut a Stick/src/list.rs
insert
called by 46
Merge Intervals/57. Insert Interval/src/main.rs
remove
called by 31
Two Heaps/480. Sliding Window Median/src/main.rs
push
called by 28
704. 二分查找/src/main.rs
peek
called by 27
1669. Minimum Cost to Cut a Stick/src/list.rs
into_iter
called by 26
1669. Minimum Cost to Cut a Stick/src/list.rs

Shape

Method 583
Function 580
Class 341
Enum 6
Interface 2
Struct 1

Languages

Rust78%
C++22%
Go1%

Modules by API surface

704. 二分查找/src/main.rs61 symbols
1669. Minimum Cost to Cut a Stick/src/main.rs41 symbols
1669. Minimum Cost to Cut a Stick/src/list.rs20 symbols
30. Substring with Concatenation of All Words/src/main.rs17 symbols
1759. Find the Missing IDs/src/main.rs17 symbols
cn/739. 每日温度/src/main.rs16 symbols
44. Wildcard Matching/src/main.rs14 symbols
Two Heaps/480. Sliding Window Median/src/main.rs12 symbols
Dynamic Programming/321. Create Maximum Number/src/main.rs12 symbols
1444. Number of Steps to Reduce a Number to Zero/src/main.rs12 symbols
855. Count Unique Characters of All Substrings of a Given String/src/lib.rs11 symbols
65. Valid Number/src/main.rs11 symbols

For agents

$ claude mcp add Leetcode-Rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact