没有合适的资源?快使用搜索试试~ 我知道了~
leetcode316-LeetCode:leetcode的解决方案
共149个文件
py:147个
gitattributes:1个
md:1个
需积分: 5 0 下载量 96 浏览量
2021-06-30
22:32:22
上传
评论
收藏 98KB ZIP 举报
温馨提示
leetcode 316 LeetCode Summary Exclusive Time of Functions: 栈 Friend Circles:DFS Print Binary Tree:二叉树 Maximal Square:DP Maximal Rectangle:单调栈(Histogram变形) Largest Rectangle in Histogram:单调栈 Island Perimeter:简单对比(map+zip的使用) or 遍历查找 Max Area of Island:DFS(本来想用DP,发现出不来) Number of Islands:DFS My Calendar II:小空间匹配 My Calendar I:同上 *732. My Calendar III:难,小数据量可以用线段匹配,大数据量要用LCT(但是这东西看不懂) Construct String from Binary Tree:中序遍历 Word Ladder:BFS,需要考虑wordlist的类型,如果是list会超时,所以需要选用set *126. Word Ladder II:待完
资源推荐
资源详情
资源评论
收起资源包目录
leetcode316-LeetCode:leetcode的解决方案 (149个子文件)
.gitattributes 66B
README.md 6KB
127. Word Ladder.py 38KB
135. Candy.py 25KB
719. Find K-th Smallest Pair Distance.py 21KB
126. Word Ladder II.py 5KB
661. Image Smoother.py 3KB
307. Range Sum Query - Mutable.py 2KB
273. Integer to English Words.py 2KB
732. My Calendar III.py 2KB
85. Maximal Rectangle.py 2KB
143. Reorder List.py 2KB
381. Insert Delete GetRandom O(1) - Duplicates allowed.py 1KB
42. Trapping Rain Water.py 1KB
337. House Robber III.py 1KB
4. Median of Two Sorted Arrays.py 1KB
207. Course Schedule.py 1KB
415. Add Strings.py 1KB
691. Stickers to Spell Word.py 1KB
67. Add Binary.py 1KB
730. Count Different Palindromic Subsequences.py 1KB
468. Validate IP Address.py 1KB
76. Minimum Window Substring.py 1KB
380. Insert Delete GetRandom O(1).py 1KB
221. Maximal Square.py 1KB
407. Trapping Rain Water II.py 1014B
593. Valid Square.py 1014B
12. Integer to Roman.py 992B
2. Add Two Numbers.py 991B
91. Decode Ways.py 989B
606. Construct String from Binary Tree.py 972B
303. Range Sum Query - Immutable.py 939B
13. Roman to Integer.py 936B
437. Path Sum III.py 931B
445. Add Two Numbers II.py 925B
84. Largest Rectangle in Histogram.py 913B
112. Path Sum.py 912B
766. Toeplitz Matrix.py 902B
382. Linked List Random Node.py 893B
623. Add One Row to Tree.py 891B
173. Binary Search Tree Iterator.py 880B
20. Valid Parentheses.py 877B
304. Range Sum Query 2D - Immutable.py 872B
547. Friend Circles.py 862B
200. Number of Islands.py 856B
636. Exclusive Time of Functions.py 849B
655. Print Binary Tree.py 848B
695. Max Area of Island.py 834B
368. Largest Divisible Subset.py 822B
188. Best Time to Buy and Sell Stock IV.py 820B
295. Find Median from Data Stream.py 818B
213. House Robber II.py 814B
206. Reverse Linked List.py 804B
95. Unique Binary Search Trees II.py 793B
373. Find K Pairs with Smallest Sums.py 792B
124. Binary Tree Maximum Path Sum.py 784B
8. String to Integer (atoi).py 782B
556. Next Greater Element III.py 760B
3. Longest Substring Without Repeating Characters.py 758B
763. Partition Labels.py 705B
798. Smallest Rotation with Highest Score.py 705B
113. Path Sum II.py 702B
203. Remove Linked List Elements.py 700B
637. Average of Levels in Binary Tree.py 692B
101. Symmetric Tree.py 677B
6. ZigZag Conversion.py 669B
92. Reverse Linked List II.py 669B
731. My Calendar II.py 667B
160. Intersection of Two Linked Lists.py 665B
669. Trim a Binary Search Tree.py 659B
516. Longest Palindromic Subsequence.py 658B
132. Palindrome Partitioning II.py 651B
383. Ransom Note.py 635B
121. Best Time to Buy and Sell Stock.py 632B
107. Binary Tree Level Order Traversal II.py 632B
145. Binary Tree Postorder Traversal.py 625B
144. Binary Tree Preorder Traversal.py 624B
94. Binary Tree Inorder Traversal.py 623B
209. Minimum Size Subarray Sum.py 623B
105. Construct Binary Tree from Preorder and Inorder Traversal.py 620B
102. Binary Tree Level Order Traversal.py 620B
522. Longest Uncommon Subsequence II.py 618B
106. Construct Binary Tree from Inorder and Postorder Traversal.py 617B
316. Remove Duplicate Letters.py 598B
5. Longest Palindromic Substring.py 594B
100. Same Tree.py 591B
718. Maximum Length of Repeated Subarray.py 581B
496. Next Greater Element I.py 566B
301. Remove Invalid Parentheses.py 559B
300. Longest Increasing Subsequence.py 549B
398. Random Pick Index.py 542B
591. Tag Validator.py 541B
503. Next Greater Element II.py 523B
22. Generate Parentheses.py 521B
26. Remove Duplicates from Sorted Array.py 505B
335. Self Crossing.py 503B
678. Valid Parenthesis String.py 498B
729. My Calendar I.py 493B
198. House Robber.py 490B
66. Plus One.py 489B
共 149 条
- 1
- 2
资源评论
weixin_38730821
- 粉丝: 7
- 资源: 931
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功