Skip to content

Ainevsia/Leetcode-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
378. Kth Smallest Element in a Sorted Matrix Rust
385. 迷你语法分析器 Rust
386. 字典序排数 Rust
388. 文件的最长绝对路径 Rust
395. Longest Substring with At Least K Repeating Characters Rust
396. 旋转函数 Rust
416. Partition Equal Subset Sum Rust
448. Find All Numbers Disappeared in an Array C++
457. Circular Array Loop Rust
479. 最大回文数乘积 Rust
480. Sliding Window Median Rust
493. Reverse Pairs C++
525. Contiguous Array Rust C++ Solution
543. Diameter of Binary Tree C++
576. Out of Boundary Paths Rust
591. 标签验证器 Rust
605. Can Place Flowers Rust
639. Decode Ways II Rust
678. Valid Parenthesis String Rust C++
679. 24 Game C++
713. Subarray Product Less Than K Rust
753. Open the Lock Rust
782. Transform to Chessboard Rust
784. Letter Case Permutation Rust
819. 最常见的单词 Rust
821. 字符的最短距离 Rust
824. 山羊拉丁文 Rust
844. Backspace String Compare Rust C++
855. Count Unique Characters of All Substrings of a Given String Rust
883. Projection Area of 3D Shapes C++
887. Super Egg Drop Rust C++
904. Fruit Into Baskets Rust
927. Three Equal Parts Rust
931. Maximum Frequency Stack Rust
932. Beautiful Array C++
938. Range Sum of BST Rust
977. Squares of a Sorted Array Rust
986. Interval List Intersections Rust
992. Subarrays with K Different Integers Rust
995. Minimum Number of K Consecutive Bit Flips Rust
1004. Max Consecutive Ones III Rust
1044. Longest Duplicate Substring Rust
1046. Last Stone Weight Rust C++
1254. Number of Closed Islands Rust
1289. Day of the Week Rust
1301. Reformat Department Table Rust
1305. 两棵二叉搜索树中的所有元素 Rust
1360. Number of Days Between Two Dates Rust
1361. Validate Binary Tree Nodes Rust
1362. Closest Divisors Rust
1363. Largest Multiple of Three Rust
1365. How Many Numbers Are Smaller Than the Current Number C++
1366. Rank Teams by Votes C++
1367. Linked List in Binary Tree C++
1368. Minimum Cost to Make at Least One Valid Path in a Grid C++
1374. Generate a String With Characters That Have Odd Counts C++
1375. Bulb Switcher III C++
1380. Lucky Numbers in a Matrix C++
1381. Design a Stack With Increment Operation C++
1382. Balance a Binary Search Tree C++
1383. Maximum Performance of a Team C++
1389. Create Target Array in the Given Order C++
1390. Four Divisors C++
1391. Check if There is a Valid Path in a Grid Rust C++
1392. Longest Happy Prefix C++
1394. Find Lucky Integer in an Array C++
1395. Count Number of Teams C++
1396. Design Underground System C++
1397. Find All Good Strings C++
1444. Number of Steps to Reduce a Number to Zero Rust
1575. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Rust
1632. Number of Good Ways to Split a String Rust
1658. Minimum Swaps to Arrange a Binary Grid Rust
1663. Detect Cycles in 2D Grid Rust
1664. Find Users With Valid E-Mails Rust
1669. Minimum Cost to Cut a Stick Rust
1672. 最富有客户的资产总量 Rust
1750. Check If Two Expression Trees are Equivalent Rust
1759. Find the Missing IDs Rust
1801. Average Time of Process per Machine Rust
1802. Number of Students Unable to Eat Lunch Rust
1803. Average Waiting Time Rust
1807. Partitioning Into Minimum Number Of Deci-Binary Numbers Rust
1813. Maximum Erasure Value Rust
1814. Jump Game VI Rust
1815. Checking Existence of Edge Length Limited Paths Rust
1817. Calculate Money in Leetcode Bank Rust
1819. Construct the Lexicographically Largest Valid Sequence Rust
1824. Maximum Number of Eaten Apples Rust
1825. Find Minimum Time to Finish All Jobs Rust
1828. Count Ways to Distribute Candies Rust
2027. Maximum Number of Removable Characters Rust
2032. Largest Odd Number in String Rust
2037. Count Square Sum Triples Rust
2042. Maximum Product Difference Between Two Pairs Rust
2180. Maximum Number of Tasks You Can Assign Rust
2287. Minimum Number of Lines to Cover Points Rust
2299. Merge Nodes in Between Zeros Rust
2303. Unique Substrings With Equal Digit Frequency Rust
2309. Maximize Number of Subsequences in a String Rust
2315. The Change in Global Rankings Rust
2351. Number of Ways to Buy Pens and Pencils Rust
5319. Remove Palindromic Subsequences Rust
5328. The K Weakest Rows in a Matrix Rust

About

Trying to solve the problems on leetcode by rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages