You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
LeetCode is a website that has programming-related questions that are designed to be solved in a limited amount of time. This repository is a collection of some of my solutions written in [Rust](https://www.rust-lang.org/).
8
8
9
-
## Solutions (105)
9
+
## Solutions (109)
10
10
| No. | Title | Solution | Problem | Difficulty |
11
11
|:---:|:------|:--------:|:-------:|:----------:|
12
12
| 1 | Two Sum |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/two_sum.rs)|[Leetcode](https://leetcode.com/problems/two-sum/)| Easy |
@@ -15,7 +15,7 @@ LeetCode is a website that has programming-related questions that are designed t
15
15
| 5 | Longest Palindromic Substring |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/array_and_string/longest_palindrome.rs)|[Leetcode](https://leetcode.com/problems/longest-palindromic-substring/)| Medium |
16
16
| 31 | Next Permutation |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/next_permutation.rs)|[Leetcode](https://leetcode.com/problems/next-permutation/)| Medium |
17
17
| 33 | Search in Rotated Sorted Array |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/interview/amazon/search.rs)|[Leetcode](https://leetcode.com/problems/search-in-rotated-sorted-array/)| Medium |
18
-
| 34 | Find First and Last Position of Element in Sorted Array |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/find-first-and-last-position-of-element-in-sorted-array.rs)|[Leetcode](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)| Medium |
18
+
| 34 | Find First and Last Position of Element in Sorted Array |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/search_range.rs)|[Leetcode](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)| Medium |
19
19
| 37 | Sudoku Solver |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/solve_sudoku.rs)|[Leetcode](https://leetcode.com/problems/sudoku-solver/)| Hard |
20
20
| 42 | Trapping Rain Water |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/trap.rs)|[Leetcode](https://leetcode.com/problems/trapping-rain-water/)| Hard |
21
21
| 49 | Group Anagrams |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/array_and_string/group_anagrams.rs)|[Leetcode](https://leetcode.com/problems/group-anagrams/)| Medium |
@@ -33,6 +33,7 @@ LeetCode is a website that has programming-related questions that are designed t
33
33
| 100 | Same Tree |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/is_same_tree.rs)|[Leetcode](https://leetcode.com/problems/same-tree/)| easy |
34
34
| 103 | Binary Tree Zigzag Level Order Traversal |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/zigzag_level_order.rs)|[Leetcode](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)| Medium |
35
35
| 115 | Distinct Subsequences |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/num_distinct.rs)|[Leetcode](https://leetcode.com/problems/distinct-subsequences/)| Hard |
36
+
| 123 | Best Time to Buy and Sell Stock III |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/max_profit2.rs)|[Leetcode](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)| Hard |
36
37
| 134 | Gas Station |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/can_complete_circuit.rs)|[Leetcode](https://leetcode.com/problems/gas-station/)| Medium |
37
38
| 169 | Majority Element |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/others/majority_element.rs)|[Leetcode](https://leetcode.com/problems/majority-element/solution/)| Easy |
38
39
| 174 | Dungeon Game |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/calculate_minimum_hp.rs)|[Leetcode](https://leetcode.com/problems/dungeon-game/)| Hard |
@@ -43,7 +44,10 @@ LeetCode is a website that has programming-related questions that are designed t
43
44
| 230 | Kth Smallest Element in a BST |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/kth_smallest.rs)|[Leetcode](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)| Medium |
| 253 | Meeting Rooms II |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/min_meeting_rooms.rs)|[Leetcode](https://leetcode.com/problems/meeting-rooms-ii/)| Medium |
47
+
| 279 | Perfect Squares |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/perfect_squares.rs)|[Leetcode](https://leetcode.com/problems/perfect-squares/)| Medium |
46
48
| 282 | Expression Add Operators |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/add_operators.rs)|[Leetcode](https://leetcode.com/problems/expression-add-operators/)| Hard |
49
+
| 302 | Smallest Rectangle Enclosing Black Pixels |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/min_area.rs)|[Leetcode](https://leetcode.com/problems/smallest-rectangle-enclosing-black-pixels/)| Hard |
50
+
| 309 | Best Time to Buy and Sell Stock with Cooldown |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/max_profit.rs)|[Leetcode](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)| Medium |
47
51
| 317 | Shortest Distance from All Buildings |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/shortest_distance.rs)|[Leetcode](https://leetcode.com/problems/shortest-distance-from-all-buildings/)| Hard |
48
52
| 322 | Coin Change |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/coin_change.rs)|[Leetcode](https://leetcode.com/problems/coin-change/)| Medium |
49
53
| 325 | Maximum Size Subarray Sum Equals k |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/max_sub_array_len.rs)|[Leetcode](https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/solution/)| Medium |
0 commit comments