leetcode
这里的题解全部使用Rust提交,最终的题解是在参考他人的方法之后我认为最优雅的写法。这个页面使用Github Actions定时同步账号题解,出于自动化考虑,思路直接写在题解的注释之中,不再额外编写思路或者提供多个题解。
- 0001 - Two Sum
- 0002 - Add Two Numbers
- 0003 - Longest Substring Without Repeating Characters
- 0009 - Palindrome Number
- 0011 - Container With Most Water
- 0014 - Longest Common Prefix
- 0020 - Valid Parentheses
- 0022 - Generate Parentheses
- 0026 - Remove Duplicates from Sorted Array
- 0028 - Find the Index of the First Occurrence in a String
- 0035 - Search Insert Position
- 0042 - Trapping Rain Water
- 0045 - Jump Game II
- 0048 - Rotate Image
- 0055 - Jump Game
- 0056 - Merge Intervals
- 0058 - Length of Last Word
- 0070 - Climbing Stairs
- 0088 - Merge Sorted Array
- 0100 - Same Tree
- 0406 - Queue Reconstruction by Height
- 0637 - Average of Levels in Binary Tree
- 1018 - Largest Perimeter Triangle
- 1293 - Three Consecutive Odds
- 1426 - Find N Unique Integers Sum up to Zero
- 1642 - Water Bottles
- 2704 - Maximum Difference by Remapping a Digit
- 3172 - Divisible and Non-divisible Sums Difference
- 3194 - Find Words Containing Character
- 3336 - Water Bottles II