没有合适的资源?快使用搜索试试~ 我知道了~
lrucacheleetcode-LeetCode:力码
共96个文件
cpp:87个
jpg:4个
png:2个
需积分: 5 0 下载量 137 浏览量
2021-06-29
23:26:04
上传
评论
收藏 4.24MB ZIP 举报
温馨提示
lru cache leetcode 250 前250道除去hard、数据库以及贪心的题目 部分250以后的题目 所有动态规划的题目暂时使用递归(回溯)暴力求解 基础 Reverse Integer 88 归并排序 206 反转list 208 前缀树 94 树中序 102 树层次 105 由先序中序构建二叉树 106 由后序中序构建二叉树 144 树前序 145 树后续 146 Least Recently Used (LRU) cache 148 list的归并,需要空间复杂度为O(1)??? slow/fast ListNode* slow = head; ListNode* fast = head->next; while (fast && fast->next) { fast = fast->next->next; slow = slow->next; } ListNode* mid = slow->next; level 1 思路简单,实现简单 1 9 19 20 66 103 167 169 189 215 优先级队列 217 219 303 326 342 345 38
资源推荐
资源详情
资源评论
收起资源包目录
LeetCode-master.zip (96个子文件)
LeetCode-master
401_500
414. Third Maximum Number
s.cpp 858B
448. Find All Numbers Disappeared in an Array
s.cpp 521B
base
148. Sort List
s.cpp 1KB
106. Construct Binary Tree from Inorder and Postorder Traversal
s.cpp 1KB
146. LRU Cache
s.cpp 1KB
7. Reverse Integer
s.cpp 483B
105. Construct Binary Tree from Preorder and Inorder Traversal
s.cpp 1KB
level4
229. Majority Element II
s.cpp 1KB
8. String to Integer (atoi)
s.cpp 512B
127. Word Ladder
s.cpp 1KB
227. Basic Calculator II
s.cpp 2KB
5. Longest Palindromic Substring
s.cpp 665B
133. Clone Graph
s.cpp 1KB
166. Fraction to Recurring Decimal
s.cpp 1016B
130. Surrounded Regions
s.cpp 2KB
301_400
345. Reverse Vowels of a String
s.cpp 679B
389. Find the Difference
s.cpp 312B
303. Range Sum Query - Immutable
s.cpp 438B
342. Power of Four
s.cpp 417B
383. Ransom Note
s.cpp 512B
400. Nth Digit
s.cpp 1KB
367. Valid Perfect Square
s.cpp 536B
397. Integer Replacement
s.cpp 633B
387. First Unique Character in a String
s.cpp 282B
338. Counting Bits
s.cpp 225B
s.jpg 642KB
378. Kth Smallest Element in a Sorted Matrix
s.cpp 470B
374. Guess Number Higher or Lower
s.cpp 575B
326. Power of Three
s.cpp 407B
level2
38. Count and Say
s.cpp 1KB
220. Contains Duplicate III
s.cpp 773B
200. Number of Islands
s.cpp 778B
3. Longest Substring Without Repeating Characters
s.cpp 453B
204. Count Primes
s.cpp 532B
221. Maximal Square
s.cpp 946B
6. ZigZag Conversion
s.cpp 607B
150. Evaluate Reverse Polish Notation
s.cpp 736B
level1
9. Palindrome Number
s.cpp 774B
20. Valid Parentheses
s.cpp 502B
19. Remove Nth Node From End of List
s.cpp 730B
101_200
144. Binary Tree Preorder Traversal
s.cpp 688B
169. Majority Element
s.cpp 571B
102. Binary Tree Level Order Traversal
s.cpp 852B
103. Binary Tree Zigzag Level Order Traversal
s.cpp 1KB
179. Largest Number
s.cpp 604B
189. Rotate Array
s.cpp 286B
167. Two Sum II - Input array is sorted
s.cpp 498B
145. Binary Tree Postorder Traversal
s.cpp 888B
162. Find Peak Element
s.cpp 475B
201_300
300. Longest Increasing Subsequence
s.cpp 765B
219. Contains Duplicate II
s.cpp 400B
209. Minimum Size Subarray Sum
s.cpp 573B
264. Ugly Number II
s.cpp 565B
s.png 77KB
207. Course Schedule
s.cpp 1KB
s.png 257KB
263. Ugly Number
s.cpp 323B
299. Bulls and Cows
s.cpp 843B
283. Move Zeroes
s.cpp 643B
201. Bitwise AND of Numbers Range
s.cpp 476B
215. Kth Largest Element in an Array
s.cpp 484B
210. Course Schedule II
s.cpp 1KB
217. Contains Duplicate
s.cpp 443B
205. Isomorphic Strings
s.cpp 909B
258. Add Digits
s.cpp 101B
206. Reverse Linked List
s.cpp 519B
s.jpg 960KB
208. Implement Trie (Prefix Tree)
s.cpp 0B
268. Missing Number
s.cpp 305B
level3
29. Divide Two Integers
s.cpp 2KB
2. Add Two Numbers
s.cpp 1KB
143. Reorder List
s.cpp 1KB
241. Different Ways to Add Parentheses
s.cpp 1KB
README.md 2KB
helper
split.hpp 653B
001_100
40. Combination Sum II
s.cpp 1KB
71. Simplify Path
s.cpp 1KB
31. Next Permutation
s.cpp 683B
69. Sqrt(x)
s.cpp 368B
66. Plus One
s.cpp 398B
39. Combination Sum
s.cpp 916B
15. 3Sum
s.cpp 697B
1. Two Sum
s.cpp 535B
48. Rotate Image
s.cpp 648B
91. Decode Ways
s.cpp 692B
16. 3Sum Closest
s.cpp 811B
43. Multiply Strings
s.cpp 867B
11. Container With Most Water
s.cpp 412B
26. Remove Duplicates from Sorted Array
s.cpp 510B
s.jpg 1.22MB
94. Binary Tree Inorder Traversal
s.cpp 862B
27. Remove Element
s.cpp 581B
s.jpg 1.25MB
34. Find First and Last Position of Element in Sorted Array
s.cpp 784B
88. Merge Sorted Array
s.cpp 452B
.vscode
settings.json 1023B
共 96 条
- 1
资源评论
weixin_38530115
- 粉丝: 9
- 资源: 960
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功