Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

l81893521/leetcode-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

115 Commits

Repository files navigation

leetcode-practice

剑指Offer

剑指 Offer 06. 从尾到头打印链表

剑指 Offer 22. 链表中倒数第k个节点

数组

3. Longest Substring Without Repeating Characters - 无重复字符的最长子串

11. Container With Most Water - 盛水最多的容器

15. Three Sum - 三数之和

16. Three Sum - 最接近的三数之和

18. Four Sum - 四数之和

26. Remove Duplicates From Sorted Array - 删除排序数组中的重复项

27. Remove Element - 移除元素

75. Sort colors - 颜色分类

76. Minimum Window Substring - 最小覆盖子串

80. Remove Duplicates From Sorted Array II - 删除排序数组中的重复项II

88. Merge Sorted Array - 合并两个有序数组

125. Valid Palindrome - 验证回文串

167. Tow Sum II Input Array Is Sorted - 两数之和II(输入有序数组)

209. Minimum Size Subarray Sum - 长度最小的子数组

215. Kth Largest Element In An Array - 数组中的第K个最大元素

242. Valid Palindrome - 有效的字母异位词

283. Move Zeroes - 移动零

303. Range Sum Query - Immutable

304. Range Sum Query 2d Immutable - 二维区域和检索 - 矩阵不可变

344. Reverse String - 反转字符串

344. Reverse Vowels Of a String - 反转字符串中的元音字母

438. Find All Anagrams In a String - 找到字符串中所有字母异位词

链表(LinkedList)

2. Add Two Numbers - 两数相加

19. Remove Nth From End - 删除链表的倒数第N个结点

21. Merge Two Sorted Lists - 合并两个有序链表

23. Merge K Sorted Lists - 合并K个升序链表

24. Swap Nodes In Pairs - 两两交换链表中的节点

25. Reverse Nodes In K Group - K个一个组翻转链表

61. Rotate List - 旋转链表

82. Remove Duplicates From Sorted List II - 删除排序链表中的重复元素II

83. Remove Duplicates From Sorted List - 删除排序链表中的重复元素

86. Partition List - 分隔链表

92. Reverse Linked List II - 翻转链表 II

141. Linked List Cycle - 环形链表

142. Linked List Cycle II - 环形链表 II

147. Insertion Sort List - 对链表进行插入排序

160. Intersection Of Two Linked Lists - 相交链表

203. Remove Linked List Elements(Solution 1)

206. Reverse Linked List - 反转链表

234. Palindrome Linked List - 回文链表

237. Delete Node In A Linked List - 删除链表中的节点

328. Odd Even Linked List - 奇偶链表

445. Add Two Numbers II - 两数相加 II

876. Middle Of The Linked List - 链表的中间结点

盏(Stack)

20. Valid Parentheses

集合(Set)

804. Unique Morse Code Words

树(Tree)

100. Same Tree - 对称二叉树

101. Symmetric Tree - 相同的树

102. Binary Tree Level Order Traversal - 二叉树的层序遍历

103. Binary Tree Zigzag Level Order Traversal - 二叉树的锯齿形层序遍历

104. Maximum Depth Of BinaryTree - 二叉树的最大深度

105. Construct Binary Tree From Preorder And Inorder Traversal - 从前序与中序遍历序列构造二叉树

106. Construct Binary Tree From Inorder And Postorder Traversal - 从中序与后序遍历序列构造二叉树

111. Minimum Depth Of Binary Tree - 二叉树的最小深度

114. Flatten Binary Tree To Linked List - 二叉树展开为链表

116. Populating Next Right Pointers In Each Node - 填充每个节点的下一个右侧节点指针

144. Binary Tree Preorder Traversal - 二叉树的前序遍历

220. Contains Duplicate III - 存在重复元素III

226. Invert Binary Tree - 反转二叉树

230. Kth Smallest Element In A Bst - 二叉搜索树中第K小的元素

450. Delete Node In A Bst - 删除二叉搜索树中的节点

515. Find Largest Value In Each Tree Row - 在每个树行中找最大值

538. Convert Bst To Greater Tree - 把二叉搜索树转换为累加树

543. Diameter Of Binary Tree - 二叉树的直径

654. Maximum Binary Tree - 最大二叉树

669. Trim A Binary Search Tree - 修建二叉搜索树

701. Insert Into A Binary Search Tree - 二叉搜索树中的插入操作

700. Search In A Binary Search Tree - 二叉搜索树中的搜索

1038. Binary Search Tree To Greater Sum Tree - 从二叉搜索树到更大和树

哈希(Hash)

1. Two Sum - 两数之和

49. Group Anagrams - 字母异位词分组

202. Happy Number - 快乐数

205. Isomorphic Strings - 同构字符串

217. Contains Duplicate - 存在重复元素

219. Contains Duplicate II - 存在重复元素II

290. Word Pattern - 单词规律

349. Intersection of Two Arrays - 两个数组的交集

350. Intersection of Two Arrays II - 两个数组的交集II

447. Number Of Boomerangs - 回旋镖的数量

451. Sort Characters By Frequency - 根据字符串出现频率排序

454. Four Sum II - 四数相加II

优先队列(PriorityQueue)

347. Top K Frequent Elements

线段树(SegmentTree)

307. Range Sum Query - Mutable

字典树(又名前缀树)(Trie)

208. Implement Trie (Prefix Tree)

211. Add and Search Word - Data structure design

677. Map Sum Pairs

其他

About

The example of leetcode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /