Leetcode-Rust
Trying to solve the problems on leetcode by rust.
Title | Rust | C++ | Solution |
---|---|---|---|
1. Two Sum | Rust | C++ | |
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 | ||
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 | ||
29. Divide Two Integers | Rust | ||
30. Substring with Concatenation of All Words | Rust | ||
31. Next Permutation | Rust | ||
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 | ||
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 | ||
65. Valid Number | Rust | ||
66. Plus One | Rust | ||
67. Add Binary | Rust | ||
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 | ||
86. Partition List | Rust | C++ | |
89. Gray Code | C++ | ||
90. Subsets II | Rust | C++ | |
91. Decode Ways | Rust | ||
92. Reverse Linked List II | Rust | ||
93. Restore IP Addresses | C++ | ||
103. Binary Tree Zigzag Level Order Traversal | Rust | ||
111. Minimum Depth of Binary Tree | Rust | ||
113. Path Sum II | Rust | ||
121. Best Time to Buy and Sell Stock | C++ | ||
122. Best Time to Buy and Sell Stock II | C++ | ||
131. Palindrome Partitioning | Rust | ||
136. Single Number | Rust | ||
160. Intersection of Two Linked Lists | C++ | ||
198. House Robber | Rust | ||
202. Happy Number | Rust | ||
207. Course Schedule | Rust | ||
210. Course Schedule II | Rust | ||
213. House Robber II | Rust | ||
234. Palindrome Linked List | Rust | ||
236. Lowest Common Ancestor of a Binary Tree | C++ | ||
268. Missing Number | Rust | ||
287. Find the Duplicate Number | Rust | ||
295. Find Median from Data Stream | Rust | ||
310. Minimum Height Trees | Rust | ||
316. Remove Duplicate Letters | Rust | ||
321. Create Maximum Number | Rust | ||
337. House Robber III | Rust | ||
347. Top K Frequent Elements | Rust | ||
378. Kth Smallest Element in a Sorted Matrix | Rust | ||
395. Longest Substring with At Least K Repeating Characters | Rust | ||
416. Partition Equal Subset Sum | Rust | ||
448. Find All Numbers Disappeared in an Array | C++ | ||
457. Circular Array Loop | Rust | ||
480. Sliding Window Median | Rust | ||
639. Decode Ways II | Rust | ||
678. Valid Parenthesis String | Rust | ||
713. Subarray Product Less Than K | Rust | ||
784. Letter Case Permutation | Rust | ||
844. Backspace String Compare | Rust | ||
887. Super Egg Drop | Rust | ||
904. Fruit Into Baskets | Rust | ||
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 | ||
1044. Longest Duplicate Substring | 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++ | ||
5319. Remove Palindromic Subsequences | Rust | ||
5328. The K Weakest Rows in a Matrix | Rust |