Leetcode-Rust
本项目记录我的Rust刷题经验,也是学习Rust的过程。
本项目由crawler.py
生成,代码自动爬取Leetcode-cn.com网站获取个人提交记录。使用方法:登陆Leetcode后记录cookie,设置环境变量LEETCODE_COOKIE
,然后执行本脚本就能抓取指定语言的个人提交记录。
目前已解决的题目(129 个,其中简单39 个,中等64 个, 困难26 个):
- 2. Add Two Numbers
⭐ ⭐ - 4. Median of Two Sorted Arrays
⭐ ⭐ ⭐ - 8. String to Integer (atoi)
⭐ ⭐ - 17. Letter Combinations of a Phone Number
⭐ ⭐ - 36. Valid Sudoku
⭐ ⭐ - 37. Sudoku Solver
⭐ ⭐ ⭐ - 50. Pow(x, n)
⭐ ⭐ - 51. N-Queens
⭐ ⭐ ⭐ - 52. N-Queens II
⭐ ⭐ ⭐ - 58. Length of Last Word
⭐ - 70. Climbing Stairs
⭐ - 71. Simplify Path
⭐ ⭐ - 72. Edit Distance
⭐ ⭐ ⭐ - 77. Combinations
⭐ ⭐ - 93. Restore IP Addresses
⭐ ⭐ - 94. Binary Tree Inorder Traversal
⭐ ⭐ - 111. Minimum Depth of Binary Tree
⭐ - 112. Path Sum
⭐ - 113. Path Sum II
⭐ ⭐ - 114. Flatten Binary Tree to Linked List
⭐ ⭐ - 124. Binary Tree Maximum Path Sum
⭐ ⭐ ⭐ - 129. Sum Root to Leaf Numbers
⭐ ⭐ - 135. Candy
⭐ ⭐ ⭐ - 136. Single Number
⭐ - 144. Binary Tree Preorder Traversal
⭐ ⭐ - 145. Binary Tree Postorder Traversal
⭐ ⭐ ⭐ - 165. Compare Version Numbers
⭐ ⭐ - 168. Excel Sheet Column Title
⭐ - 171. Excel Sheet Column Number
⭐ - 179. Largest Number
⭐ ⭐ - 198. House Robber
⭐ - 200. Number of Islands
⭐ ⭐ - 201. Bitwise AND of Numbers Range
⭐ ⭐ - 207. Course Schedule
⭐ ⭐ - 210. Course Schedule II
⭐ ⭐ - 213. House Robber II
⭐ ⭐ - 223. Rectangle Area
⭐ ⭐ - 224. Basic Calculator
⭐ ⭐ ⭐ - 227. Basic Calculator II
⭐ ⭐ - 241. Different Ways to Add Parentheses
⭐ ⭐ - 257. Binary Tree Paths
⭐ - 279. Perfect Squares
⭐ ⭐ - 295. Find Median from Data Stream
⭐ ⭐ ⭐ - 300. Longest Increasing Subsequence
⭐ ⭐ - 312. Burst Balloons
⭐ ⭐ ⭐ - 315. Count of Smaller Numbers After Self
⭐ ⭐ ⭐ - 322. Coin Change
⭐ ⭐ - 327. Count of Range Sum
⭐ ⭐ ⭐ - 334. Increasing Triplet Subsequence
⭐ ⭐ - 337. House Robber III
⭐ ⭐ - 343. Integer Break
⭐ ⭐ - 349. Intersection of Two Arrays
⭐ - 354. Russian Doll Envelopes
⭐ ⭐ ⭐ - 363. Max Sum of Rectangle No Larger Than K
⭐ ⭐ ⭐ - 375. Guess Number Higher or Lower II
⭐ ⭐ - 383. Ransom Note
⭐ - 392. Is Subsequence
⭐ ⭐ - 401. Binary Watch
⭐ - 405. Convert a Number to Hexadecimal
⭐ - 424. Longest Repeating Character Replacement
⭐ ⭐ - 437. Path Sum III
⭐ - 443. String Compression
⭐ - 455. Assign Cookies
⭐ - 461. Hamming Distance
⭐ - 463. Island Perimeter
⭐ - 494. Target Sum
⭐ ⭐ - 514. Freedom Trail
⭐ ⭐ ⭐ - 518. Coin Change 2
⭐ ⭐ - 529. Minesweeper
⭐ ⭐ - 539. Minimum Time Difference
⭐ ⭐ - 563. Binary Tree Tilt
⭐ - 583. Delete Operation for Two Strings
⭐ ⭐ - 606. Construct String from Binary Tree
⭐ - 630. Course Schedule III
⭐ ⭐ ⭐ - 661. Image Smoother
⭐ - 671. Second Minimum Node In a Binary Tree
⭐ - 673. Number of Longest Increasing Subsequence
⭐ ⭐ - 674. Longest Continuous Increasing Subsequence
⭐ - 679. 24 Game
⭐ ⭐ ⭐ - 687. Longest Univalue Path
⭐ - 691. Stickers to Spell Word
⭐ ⭐ ⭐ - 695. Max Area of Island
⭐ ⭐ - 699. Falling Squares
⭐ ⭐ ⭐ - 728. Self Dividing Numbers
⭐ - 740. Delete and Earn
⭐ ⭐ - 744. Find Smallest Letter Greater Than Target
⭐ - 787. Cheapest Flights Within K Stops
⭐ ⭐ - 792. Number of Matching Subsequences
⭐ ⭐ - 836. Rectangle Overlap
⭐ - 851. Loud and Rich
⭐ ⭐ - 856. Score of Parentheses
⭐ ⭐ - 861. Score After Flipping Matrix
⭐ ⭐ - 876. Middle of the Linked List
⭐ - 877. Stone Game
⭐ ⭐ - 902. Numbers At Most N Given Digit Set
⭐ ⭐ ⭐ - 922. Sort Array By Parity II
⭐ - 935. Knight Dialer
⭐ ⭐ - 977. Squares of a Sorted Array
⭐ - 980. Unique Paths III
⭐ ⭐ ⭐ - 982. Triples with Bitwise AND Equal To Zero
⭐ ⭐ ⭐ - 983. Minimum Cost For Tickets
⭐ ⭐ - 991. Broken Calculator
⭐ ⭐ - 995. Minimum Number of K Consecutive Bit Flips
⭐ ⭐ ⭐ - 1000. Minimum Cost to Merge Stones
⭐ ⭐ ⭐ - 1004. Max Consecutive Ones III
⭐ ⭐ - 1005. Maximize Sum Of Array After K Negations
⭐ - 1006. Clumsy Factorial
⭐ ⭐ - 1007. Minimum Domino Rotations For Equal Row
⭐ ⭐ - 1008. Construct Binary Search Tree from Preorder Traversal
⭐ ⭐ - 1009. Complement of Base 10 Integer
⭐ - 1010. Pairs of Songs With Total Durations Divisible by 60
⭐ - 1011. Capacity To Ship Packages Within D Days
⭐ ⭐ - 1013. Partition Array Into Three Parts With Equal Sum
⭐ - 1014. Best Sightseeing Pair
⭐ ⭐ - 1015. Smallest Integer Divisible by K
⭐ ⭐ - 1016. Binary String With Substrings Representing 1 To N
⭐ ⭐ - 1017. Convert to Base -2
⭐ ⭐ - 1018. Binary Prefix Divisible By 5
⭐ - 1019. Next Greater Node In Linked List
⭐ ⭐ - 1020. Number of Enclaves
⭐ ⭐ - 1021. Remove Outermost Parentheses
⭐ - 1022. Sum of Root To Leaf Binary Numbers
⭐ - 1023. Camelcase Matching
⭐ ⭐ - 1024. Video Stitching
⭐ ⭐ - 1025. Divisor Game
⭐ - 1026. Maximum Difference Between Node and Ancestor
⭐ ⭐ - 1027. Longest Arithmetic Sequence
⭐ ⭐ - 1028. Recover a Tree From Preorder Traversal
⭐ ⭐ ⭐ - 1033. Moving Stones Until Consecutive
⭐