LeetCode
文章平均质量分 72
星海浮生
这个作者很懒,什么都没留下…
展开
-
LeetCode 2065. Maximum Path Quality of a Graph(最大化一张图中的路径价值)
(如题)原创 2022-04-19 23:43:55 · 322 阅读 · 0 评论 -
LeetCode 题集:字典树
LeetCode 208. Implement Trie (Prefix Tree)(实现 Trie (前缀树))211. Design Add and Search Words Data Structure(添加与搜索单词 - 数据结构设计)212. Word Search II(单词搜索 II)原创 2021-11-10 20:28:34 · 5091 阅读 · 0 评论 -
LeetCode 9. Palindrome Number(回文数)
(如题)原创 2021-11-10 18:32:36 · 3109 阅读 · 0 评论 -
LeetCode 89. Gray Code(格雷编码)
(如题)原创 2021-11-10 17:53:43 · 2847 阅读 · 0 评论 -
LeetCode 题集:排序
LeetCode 215. Kth Largest Element in an Array(数组中的第K个最大元素)原创 2021-11-10 13:38:33 · 2612 阅读 · 0 评论 -
LeetCode 题集:链表(三)
LeetCode 19. Remove Nth Node From End of List(删除链表的倒数第 N 个结点)203. Remove Linked List Elements(移除链表元素)61. Rotate List(旋转链表)原创 2021-11-10 12:44:58 · 712 阅读 · 0 评论 -
LeetCode 题集:链表(二)
LeetCode 2. Add Two Numbers(两数相加)445. Add Two Numbers II(两数相加 II)83. Remove Duplicates from Sorted List(删除排序链表中的重复元素)82. Remove Duplicates from Sorted List II(删除排序链表中的重复元素 II)21. Merge Two Sorted Lists(合并两个有序链表)88. Merge Sorted Array(合并两个有序数组)原创 2021-11-10 11:01:44 · 712 阅读 · 0 评论 -
LeetCode 题集:链表(一)
LeetCode 141. Linked List Cycle(环形链表)142. Linked List Cycle II(环形链表 II)206. Reverse Linked List(反转链表)92. Reverse Linked List II(反转链表 II)24. Swap Nodes in Pairs(两两交换链表中的节点)原创 2021-11-08 22:54:41 · 161 阅读 · 0 评论 -
LeetCode 题集:栈和队列
LeetCode 232. Implement Queue using Stacks(用栈实现队列)225. Implement Stack using Queues(用队列实现栈)150. Evaluate Reverse Polish Notation(逆波兰表达式求值)71. Simplify Path(简化路径)155. Min Stack(最小栈)20. Valid Parentheses(有效的括号)原创 2021-11-08 12:33:06 · 229 阅读 · 0 评论 -
LeetCode 题集:二分搜索(二)
LeetCode 33. Search in Rotated Sorted Array(搜索旋转排序数组)81. Search in Rotated Sorted Array II(II)153. Find Minimum in Rotated Sorted Array(寻找旋转排序数组中的最小值)154. Find Minimum in Rotated Sorted Array II(II)4. Median of Two Sorted Arrays(寻找两个正序数组的中位数)原创 2021-11-05 15:13:20 · 761 阅读 · 1 评论 -
LeetCode 题集:二分搜索(一)
LeetCode 278. First Bad Version(第一个错误的版本)35. Search Insert Position(搜索插入位置)74. Search a 2D Matrix(搜索二维矩阵)240. Search a 2D Matrix II(搜索二维矩阵 II)69. Sqrt(x)原创 2021-11-05 14:26:10 · 750 阅读 · 1 评论 -
LeetCode 题集:两指针法
LeetCode 167. Two Sum II - Input Array Is Sorted(两数之和 II - 输入有序数组)15. 3Sum(三数之和)18. 4Sum(四数之和)344. Reverse String(反转字符串)原创 2021-11-05 11:32:57 · 709 阅读 · 1 评论 -
LeetCode 题集:二叉树遍历
LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal(从前序与中序遍历序列构造二叉树)106. Construct Binary Tree from Inorder and Postorder Traversal(从中序与后序遍历序列构造二叉树)原创 2021-11-04 16:46:11 · 120 阅读 · 0 评论 -
LeetCode 题集:深度优先搜索(DFS)、广度优先搜索(BFS)
LeetCode 110. Balanced Binary Tree(平衡二叉树)111. Minimum Depth of Binary Tree(二叉树的最小深度)112. Path Sum(路径总和)113. Path Sum II(路径总和 II)102. Binary Tree Level Order Traversal(二叉树的层序遍历)原创 2021-11-03 18:27:06 · 348 阅读 · 1 评论 -
LeetCode 题集:回溯法和递归(三)矩阵相关问题
LeetCode 79. Word Search(单词搜索)54. Spiral Matrix(螺旋矩阵)59. Spiral Matrix II(螺旋矩阵 II)51. N-Queens(N 皇后)52. N-Queens II(N皇后 II)原创 2021-11-03 11:12:27 · 222 阅读 · 0 评论 -
LeetCode 题集:回溯法和递归(二)字符串相关问题
LeetCode 131. Palindrome Partitioning(分割回文串)132. Palindrome Partitioning II(分割回文串 II)22. Generate Parentheses(括号生成)原创 2021-10-25 15:31:52 · 225 阅读 · 0 评论 -
LeetCode 题集:回溯法和递归(一)数组相关问题
LeetCode 46. Permutations(全排列)47. Permutations II(全排列 II)39. Combination Sum(组合总和)40. Combination Sum II(组合总和 II)77. Combinations(组合)78. Subsets(子集)90. Subsets II(子集 II)原创 2021-10-23 17:29:54 · 216 阅读 · 0 评论 -
LeetCode 题集:哈希表
LeetCode 1. Two Sum(两数之和)290. Word Pattern(单词规律)49. Group Anagrams(字母异位词分组)205. Isomorphic Strings(同构字符串)166. Fraction to Recurring Decimal(分数到小数)原创 2021-10-22 18:16:58 · 199 阅读 · 0 评论 -
动态规划的应用(六):矩阵相关问题
LeetCode 174. Dungeon Game(地下城游戏)原创 2021-10-21 17:06:01 · 1401 阅读 · 0 评论 -
动态规划的应用(五):LeetCode 413, 446. 等差数列划分
LeetCode 413. Arithmetic Slices(等差数列划分)446. Arithmetic Slices II - Subsequence(等差数列划分 II - 子序列)原创 2021-10-19 11:47:34 · 202 阅读 · 0 评论 -
动态规划的应用(四):LeetCode 1900. 最佳运动员的比拼回合
LeetCode 1900. The Earliest and Latest Rounds Where Players Compete(最佳运动员的比拼回合)原创 2021-10-15 11:32:37 · 260 阅读 · 0 评论 -
LeetCode 1525. Number of Good Ways to Split a String(字符串的好分割数目)
(如题)原创 2021-10-12 16:05:25 · 135 阅读 · 0 评论 -
LeetCode 5. 最长回文子串问题的 Manacher 算法(马拉车算法)
LeetCode 5. Longest Palindromic Substring(最长回文子串)原创 2021-10-09 14:13:24 · 176 阅读 · 0 评论 -
动态规划的应用(三):字符串相关问题
LeetCode 1143. Longest Common Subsequence(最长公共子序列)97. Interleaving String(交错字符串)139. Word Break(单词拆分)1278. Palindrome Partitioning III(分割回文串 III)1745. Palindrome Partitioning IV(回文串分割 IV)原创 2021-10-08 18:41:39 · 440 阅读 · 0 评论