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
+14-1
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 (49)
9
+
## Solutions (62)
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 |
@@ -16,38 +16,51 @@ LeetCode is a website that has programming-related questions that are designed t
16
16
| 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 |
17
17
| 54 | Spiral Matrix |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/spiral_order.rs)|[Leetcode](https://leetcode.com/problems/spiral-matrix/)| Medium |
18
18
| 55 | Jump Game |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/dynamic_programming/can_jump.rs)|[Leetcode](https://leetcode.com/problems/jump-game/)| Medium |
19
+
| 62 | Unique Paths |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/unique_paths.rs)|[Leetcode](https://leetcode.com/problems/unique-paths/)| Medium |
19
20
| 72 | Edit Distance |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/min_distance.rs)|[Leetcode](https://leetcode.com/problems/edit-distance/)| Hard |
20
21
| 73 | Set Matrix Zeroes |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/array_and_string/set_zeroes.rs)|[Leetcode](https://leetcode.com/problems/set-matrix-zeroes/submissions/)| Medium |
21
22
| 75 | Sort Colors |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/sorting/sort_colors.rs)|[Leetcode](https://leetcode.com/problems/sort-colors/)| Medium |
23
+
| 94 | Binary Tree Inorder Traversal |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/inorder_traversal.rs)|[Leetcode](https://leetcode.com/problems/binary-tree-inorder-traversal/)| Easy |
24
+
| 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 |
25
+
| 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 |
22
26
| 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 |
27
+
| 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 |
23
28
| 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 |
24
29
| 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 |
30
+
| 200 | Number of Islands |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/num_islands.rs)|[Leetcode](https://leetcode.com/problems/number-of-islands/)| Medium |
31
+
| 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 |
| 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 |
27
34
| 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 |
35
+
| 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 |
28
36
| 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 |
29
37
| 334 | Increasing Triplet Subsequence |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/top_interview/array_and_string/increasing_triplet.rs)|[Leetcode](https://leetcode.com/problems/increasing-triplet-subsequence/)| Medium |
30
38
| 350 | Intersection of Two Arrays II |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/intersect.rs)|[Leetcode](https://leetcode.com/problems/intersection-of-two-arrays-ii/)| Easy |
31
39
| 368 | Largest Divisible Subset |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/largest_divisible_subset.rs)|[Leetcode](https://leetcode.com/problems/largest-divisible-subset/)| Medium |
32
40
| 435 | Non-overlapping Intervals |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/erase_overlap_intervals.rs)|[Leetcode](https://leetcode.com/problems/non-overlapping-intervals/)| Medium |
33
41
| 452 | Minimum Number of Arrows to Burst Balloons |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/find_min_arrow_shots.rs)|[Leetcode](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)| Medium |
42
+
| 463 | Island Perimeter |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/island_perimeter.rs)|[Leetcode](https://leetcode.com/problems/island-perimeter/)| Easy |
34
43
| 485 | Max Consecutive Ones |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/find_max_consecutive_ones.rs)|[Leetcode](https://leetcode.com/problems/max-consecutive-ones/)| Easy |
| 698 | Partition to K Equal Sum Subsets |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/can_partition_k_subsets.rs)|[Leetcode](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)| Medium |
37
46
| 713 | Subarray Product Less Than K |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/num_subarray_product_less_than_k.rs)|[Leetcode](https://leetcode.com/problems/subarray-product-less-than-k/)| Medium |
38
47
| 725 | Split Linked List in Parts |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/split_list_to_parts.rs)|[Leetcode](https://leetcode.com/problems/split-linked-list-in-parts/)| Medium |
39
48
| 741 | Cherry Pickup |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/cherry_pickup.rs)|[Leetcode](https://leetcode.com/problems/cherry-pickup/)| Hard |
49
+
| 749 | Contain Virus |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/contain_virus.rs)|[Leetcode](https://leetcode.com/problems/contain-virus/)| Hard |
40
50
| 774 | Minimize Max Distance to Gas Station |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/minmax_gas_dist.rs)|[Leetcode](https://leetcode.com/problems/minimize-max-distance-to-gas-station/)| Medium |
41
51
| 875 | Koko Eating Bananas |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/min_eating_speed.rs)|[Leetcode](https://leetcode.com/problems/koko-eating-bananas/)| Medium |
42
52
| 922 | Sort Array By Parity II |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/sort_array_by_parity_ii.rs)|[Leetcode](https://leetcode.com/problems/sort-array-by-parity-ii/)| Easy |
| 991 | Broken Calculator |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/broken_calc.rs)|[Leetcode](https://leetcode.com/problems/broken-calculator/)| Medium |
44
55
| 1035 | Uncrossed Lines |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/max_uncrossed_lines.rs)|[Leetcode](https://leetcode.com/problems/uncrossed-lines/)| Medium |
45
56
| 1134 | Armstrong Number |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/is_good_array.rs)|[Leetcode](https://leetcode.com/problems/armstrong-number/)| Easy |
46
57
| 1137 | N-th Tribonacci Number |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/tribonacci.rs)|[Leetcode](https://leetcode.com/problems/n-th-tribonacci-number/)| Easy |
47
58
| 1143 | Longest Common Subsequence |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/longest_common_subsequence.rs)|[Leetcode](https://leetcode.com/problems/longest-common-subsequence/)| Medium |
59
+
| 1161 | Maximum Level Sum of a Binary Tree |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/max_level_sum.rs)|[Leetcode](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)| Medium |
48
60
| 1239 | Maximum Length of a Concatenated String with Unique Characters |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/max_length.rs)|[Leetcode](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| Medium |
49
61
| 1275 | Find Winner on a Tic Tac Toe Game |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/tictactoe.rs)|[Leetcode](https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/)| Easy |
50
62
| 1293 | Shortest Path in a Grid with Obstacles Elimination |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/shortest_path.rs)|[Leetcode](https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/)| Hard |
63
+
| 1315 | Sum of Nodes with Even-Valued Grandparent |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/sum_even_grandparent.rs)|[Leetcode](https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/)| Medium |
51
64
| 1328 | Break a Palindrome |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/challenge/break_palindrome.rs)|[Leetcode](https://leetcode.com/problems/break-a-palindrome/)| Medium |
52
65
| 1457 | Pseudo-Palindromic Paths in a Binary Tree |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/pseudo_palindromic_paths.rs)|[Leetcode](https://leetcode.com/problems/pseudo-palindromic-paths-in-a-binary-tree/)| Easy |
53
66
| 1801 | Number of Orders in the Backlog |[Rust](https://github.com/martinxxd/leetcode-rust/tree/master/./src/leetcode/problem/get_number_of_backlog_orders.rs)|[Leetcode](https://leetcode.com/problems/number-of-orders-in-the-backlog/)| Medium |
0 commit comments