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