A collection of my solutions to each problem of http://leetcode.com
I aim to write every solution in Rust in order to master the language.
This repo is under a slowly construction...
- 1. Two Sum
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 4. Median of Two Sorted Arrays
- 5. Longest Palindromic Substring
- 6. Zigzag Conversion
- 7. Reverse Integer
- 8. String to Integer (atoi)
- 9. Palindrome Number
- 10. Regular Expression Matching
- 11. Container With Most Water
- 12. Integer to Roman
- 13. Roman to Integer
- 14. Longest Common Prefix
- 15. 3Sum
- 16. 3Sum Closest
- 20. Valid Parentheses
- 22. Generate Parentheses
- 33. Search in Rotated Sorted Array
- 49. Group Anagrams
- 74. Search a 2D Matrix
- 104. Maximum Depth of Binary Tree
- 121. Best Time to Buy and Sell Stock
- 125. Valid Palindrome
- 128. Longest Consecutive Sequence
- 153. Find Minimum in Rotated Sorted Array
- 155. Min Stack
- 167. Two Sum II - Input Array Is Sorted
- 206. Reverse Linked List
- 217. Contains Duplicate
- 226. Invert Binary Tree
- 238. Product of Array Except Self
- 242. Valid Anagram
- 271. Encode And Decode Strings
- 347. Top K Frequent Elements
- 424. Longest Repeating Character Replacement
- 543. Diameter of Binary Tree
- 567. Permutation in String
- 704. Binary Search
- 739. Daily Temperatures
- 853. Car Fleet
- 875. Koko Eating Bananas
- 981. Time Based Key-Value Store