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.
No. | Title | Solution | Problem | Difficulty |
---|---|---|---|---|
1 | Two Sum | Rust | Leetcode | Easy |
2 | Add Two Numbers | Rust | Leetcode | Medium |
3 | Longest Substring Without Repeating Characters | Rust | Leetcode | Medium |
5 | Longest Palindromic Substring | Rust | Leetcode | Medium |
31 | Next Permutation | Rust | Leetcode | Medium |
37 | Sudoku Solver | Rust | Leetcode | Hard |
49 | Group Anagrams | Rust | Leetcode | Medium |
51 | N-Queens | Rust | Leetcode | Hard |
52 | N-Queens II | Rust | Leetcode | Hard |
54 | Spiral Matrix | Rust | Leetcode | Medium |
55 | Jump Game | Rust | Leetcode | Medium |
62 | Unique Paths | Rust | Leetcode | Medium |
70 | Climbing Stairs | Rust | Leetcode | Easy |
72 | Edit Distance | Rust | Leetcode | Hard |
73 | Set Matrix Zeroes | Rust | Leetcode | Medium |
75 | Sort Colors | Rust | Leetcode | Medium |
94 | Binary Tree Inorder Traversal | Rust | Leetcode | Easy |
100 | Same Tree | Rust | Leetcode | easy |
103 | Binary Tree Zigzag Level Order Traversal | Rust | Leetcode | Medium |
115 | Distinct Subsequences | Rust | Leetcode | Hard |
134 | Gas Station | Rust | Leetcode | Medium |
169 | Majority Element | Rust | Leetcode | Easy |
174 | Dungeon Game | Rust | Leetcode | Hard |
200 | Number of Islands | Rust | Leetcode | Medium |
208 | Implement Trie (Prefix Tree) | Rust | Leetcode | Medium |
230 | Kth Smallest Element in a BST | Rust | Leetcode | Medium |
242 | Valid Anagram | Rust | Leetcode | Easy |
282 | Expression Add Operators | Rust | Leetcode | Hard |
317 | Shortest Distance from All Buildings | Rust | Leetcode | Hard |
322 | Coin Change | Rust | Leetcode | Medium |
325 | Maximum Size Subarray Sum Equals k | Rust | Leetcode | Medium |
334 | Increasing Triplet Subsequence | Rust | Leetcode | Medium |
350 | Intersection of Two Arrays II | Rust | Leetcode | Easy |
368 | Largest Divisible Subset | Rust | Leetcode | Medium |
435 | Non-overlapping Intervals | Rust | Leetcode | Medium |
442 | Find All Duplicates in an Array | Rust | Leetcode | Medium |
452 | Minimum Number of Arrows to Burst Balloons | Rust | Leetcode | Medium |
463 | Island Perimeter | Rust | Leetcode | Easy |
485 | Max Consecutive Ones | Rust | Leetcode | Easy |
495 | Teemo Attacking | Rust | Leetcode | Easy |
698 | Partition to K Equal Sum Subsets | Rust | Leetcode | Medium |
713 | Subarray Product Less Than K | Rust | Leetcode | Medium |
725 | Split Linked List in Parts | Rust | Leetcode | Medium |
741 | Cherry Pickup | Rust | Leetcode | Hard |
749 | Contain Virus | Rust | Leetcode | Hard |
774 | Minimize Max Distance to Gas Station | Rust | Leetcode | Medium |
875 | Koko Eating Bananas | Rust | Leetcode | Medium |
922 | Sort Array By Parity II | Rust | Leetcode | Easy |
929 | Unique Email Addresses | Rust | Leetcode | Easy |
930 | Binary Subarrays With Sum | Rust | Leetcode | Medium |
937 | Reorder Data in Log Files | Rust | Leetcode | Easy |
991 | Broken Calculator | Rust | Leetcode | Medium |
1013 | Partition Array Into Three Parts With Equal Sum | Rust | Leetcode | Easy |
1035 | Uncrossed Lines | Rust | Leetcode | Medium |
1041 | Robot Bounded In Circle | Rust | Leetcode | Medium |
1134 | Armstrong Number | Rust | Leetcode | Easy |
1137 | N-th Tribonacci Number | Rust | Leetcode | Easy |
1143 | Longest Common Subsequence | Rust | Leetcode | Medium |
1161 | Maximum Level Sum of a Binary Tree | Rust | Leetcode | Medium |
1239 | Maximum Length of a Concatenated String with Unique Characters | Rust | Leetcode | Medium |
1275 | Find Winner on a Tic Tac Toe Game | Rust | Leetcode | Easy |
1293 | Shortest Path in a Grid with Obstacles Elimination | Rust | Leetcode | Hard |
1315 | Sum of Nodes with Even-Valued Grandparent | Rust | Leetcode | Medium |
1328 | Break a Palindrome | Rust | Leetcode | Medium |
1428 | Leftmost Column with at Least a One | Rust | Leetcode | Medium |
1457 | Pseudo-Palindromic Paths in a Binary Tree | Rust | Leetcode | Easy |
1570 | Dot Product of Two Sparse Vectors | Rust | Leetcode | Medium |
1604 | Alert Using Same Key-Card Three or More Times in a One Hour Period | Rust | Leetcode | Medium |
1801 | Number of Orders in the Backlog | Rust | Leetcode | Medium |
1962 | Remove Stones to Minimize the Total | Rust | Leetcode | Medium |
2022 | Convert 1D Array Into 2D Array | Rust | Leetcode | Easy |
2023 | Number of Pairs of Strings With Concatenation Equal to Target | Rust | Leetcode | Medium |
2024 | Maximize the Confusion of an Exam | Rust | Leetcode | Medium |
2025 | Maximum Number of Ways to Partition an Array | Rust | Leetcode | Hard |
2027 | Minimum Moves to Convert String | Rust | Leetcode | Easy |
2028 | Find Missing Observations | Rust | Leetcode | Medium |