# 日常算法训练 **Repository Path**: q1479527934/daily-algorithm-training ## Basic Information - **Project Name**: 日常算法训练 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-22 - **Last Updated**: 2025-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 每日算法练习 ## 本仓库用于记录每日两道算法题 ### 2025/3/12 - **单词替换**:https://leetcode.cn/problems/replace-words/?envType=problem-list-v2&envId=hash-table - **吃苹果的最大数目**:https://leetcode.cn/problems/maximum-number-of-eaten-apples/description/?envType=problem-list-v2&envId=greedy&difficulty=MEDIUM ### 2025/3/11 - **根据二叉树创建字符串**:https://leetcode.cn/problems/construct-string-from-binary-tree/description/?envType=problem-list-v2&envId=binary-tree - **买股票的最佳时机II**:https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/?envType=problem-list-v2&envId=greedy&difficulty=MEDIUM ### 2025/3/10 - **从中序后续遍历构造二叉树**:https://leetcode.cn/problems/construct-binary-tree-from-inorder-and-postorder-traversal/?envType=problem-list-v2&envId=tree - **蓄水**:https://leetcode.cn/problems/o8SXZn/description/?envType=problem-list-v2&envId=greedy&difficulty=EASY ### 2025/3/9 - **从前序中序遍历构造二叉树**:https://leetcode.cn/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/?envType=problem-list-v2&envId=tree - **超级丑数**:https://leetcode.cn/problems/super-ugly-number/?envType=problem-list-v2&envId=dynamic-programming&difficulty=MEDIUM ### 2025/3/8 - **二叉树的后序遍历**:https://leetcode.cn/problems/binary-tree-postorder-traversal/description/?envType=problem-list-v2&envId=tree - **Fib**:https://leetcode.cn/problems/fibonacci-number/?envType=problem-list-v2&envId=dynamic-programming&difficulty=EASY ### 2025/3/7 - **二叉树的前序遍历**:https://leetcode.cn/problems/binary-tree-preorder-traversal/description/?envType=problem-list-v2&envId=tree - **买股票**:https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/?envType=problem-list-v2&envId=dynamic-programming&difficulty=EASY ### 2025/3/6 - **翻转二叉树**:https://leetcode.cn/problems/invert-binary-tree/?envType=problem-list-v2&envId=tree - **杨辉三角**:https://leetcode.cn/problems/pascals-triangle/?envType=problem-list-v2&envId=dynamic-programming&difficulty=EASY ### 2025/3/5 - **非递减子序列**:https://leetcode.cn/problems/non-decreasing-subsequences/description/?envType=problem-list-v2&envId=hash-table - **爬楼梯**:https://leetcode.cn/problems/climbing-stairs/description/?envType=problem-list-v2&envId=dynamic-programming&difficulty=EASY ### 2025/3/4 - **随机链表的复制**:https://leetcode.cn/problems/copy-list-with-random-pointer/description/?envType=problem-list-v2&envId=hash-table - **最小高度树**:https://leetcode.cn/problems/minimum-height-trees/?envType=problem-list-v2&envId=depth-first-search ### 2025/3/3 - **相对名次**:https://leetcode.cn/problems/relative-ranks/description/?envType=problem-list-v2&envId=heap-priority-queue&difficulty=EASY - **公共祖先**:https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/?envType=problem-list-v2&envId=depth-first-search ### 2025/3/2 - **最近的请求次数**:https://leetcode.cn/problems/H8086Q/description/?envType=problem-list-v2&envId=queue - **岛屿数量**:https://leetcode.cn/problems/number-of-islands/description/?envType=problem-list-v2&envId=depth-first-search ### 2025/3/1 - **买票需要的时间**:https://leetcode.cn/problems/time-needed-to-buy-tickets/description/?envType=problem-list-v2&envId=queue - **判定是否互为字符重排**:https://leetcode.cn/problems/check-permutation-lcci/description/ ### 2025/2/28 - **无法吃午餐的学生数量**:https://leetcode.cn/problems/number-of-students-unable-to-eat-lunch/description/?envType=problem-list-v2&envId=queue&favoriteSlug=&difficulty=EASY - **LRU缓存**:https://leetcode.cn/problems/lru-cache/description/?envType=problem-list-v2&envId=linked-list ### 2025/2/27 - **最后一块石头的重量**:https://leetcode.cn/problems/last-stone-weight/?envType=problem-list-v2&envId=heap-priority-queue&difficulty=EASY - **移掉K位数字**:https://leetcode.cn/problems/remove-k-digits/description/?envType=problem-list-v2&envId=stack ### 2025/2/26 - **二叉树的右视图**:https://leetcode.cn/problems/binary-tree-right-side-view/description/ - **N叉树的层序遍历**:https://leetcode.cn/problems/n-ary-tree-level-order-traversal/description/ ### 2025/2/25 - **动物收容所**:https://leetcode.cn/problems/animal-shelter-lcci/description/?envType=problem-list-v2&envId=queue - **字母异或词分组**:https://leetcode.cn/problems/group-anagrams/description/ ### 2025/2/24 - **招式拆解II**:https://leetcode.cn/problems/di-yi-ge-zhi-chu-xian-yi-ci-de-zi-fu-lcof/description/?envType=problem-list-v2&envId=queue&difficulty=EASY - **重排链表**:https://leetcode.cn/problems/reorder-list/description/ ### 2025/2/23 - **设计循环队列**:https://leetcode.cn/problems/design-circular-queue/description/?envType=problem-list-v2&envId=queue&difficulty=MEDIUM - **缺失的第一个正数**:https://leetcode.cn/problems/first-missing-positive/description/?envType=problem-list-v2&envId=hash-table&difficulty=MEDIUM%2CHARD ### 2025/2/22 - **图书整理**:https://leetcode.cn/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/description/?envType=problem-list-v2&envId=queue&difficulty=EASY - **二叉树的锯齿形层序遍历**:https://leetcode.cn/problems/binary-tree-zigzag-level-order-traversal/description/ ### 2025/2/20 - **第二高的薪水**:https://leetcode.cn/problems/second-highest-salary/description/?envType=problem-list-v2&envId=database - **格雷编码**:https://leetcode.cn/problems/gray-code/description/?envType=problem-list-v2&envId=backtracking ### 2025/2/19 - **反转链表**:https://leetcode.cn/problems/reverse-linked-list/description/ - **路径总和2**:https://leetcode.cn/problems/path-sum-ii/description/?envType=problem-list-v2&envId=backtracking ### 2025/2/18 - **删除有序数组中的重复项**:https://leetcode.cn/problems/remove-duplicates-from-sorted-array/description/ - **破冰问题**:https://leetcode.cn/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/description/?envType=problem-list-v2&envId=recursion ### 2025/2/17 - **旋转链表**:https://leetcode.cn/problems/rotate-list/description/ - **汉诺塔问题**:https://leetcode.cn/problems/hanota-lcci/solutions/95934/tu-jie-yi-nuo-ta-de-gu-shi-ju-shuo-dang-64ge-pan-z/?envType=problem-list-v2&envId=recursion ### 2025/2/16 - **分割链表**:https://leetcode.cn/problems/partition-list-lcci/description/ - **将有序数组转换为二叉搜索树**:https://leetcode.cn/problems/convert-sorted-array-to-binary-search-tree/description/?envType=problem-list-v2&envId=divide-and-conquer ### 2025/2/15 - **无重复字符的最长子串**:https://leetcode.cn/problems/longest-substring-without-repeating-characters/description/ - **二叉树的最大深度**:https://leetcode.cn/problems/maximum-depth-of-binary-tree/description/?envType=problem-list-v2&envId=depth-first-search ### 2025/2/14 - **字符串解码**:https://leetcode.cn/problems/decode-string/description/ - **字符串相乘**:https://leetcode.cn/problems/multiply-strings/description/ ### 2025/2/13 - **最短无序连续子数组**:https://leetcode.cn/problems/shortest-unsorted-continuous-subarray/description/ - **螺旋矩阵Ⅱ**:https://leetcode.cn/problems/spiral-matrix-ii/description/ ### 2025/2/12 - **用栈实现队列**:https://leetcode.cn/problems/implement-queue-using-stacks/description/ - **递归乘法**:https://leetcode.cn/problems/recursive-mulitply-lcci/description/ ### 2025/2/11 - **最小栈**:https://leetcode.cn/problems/min-stack/description/ - **丢失的数字**:https://leetcode.cn/problems/missing-number/ ### 2025/2/10 - **逆波兰式求值**:https://leetcode.cn/problems/evaluate-reverse-polish-notation/description/?envType=problem-list-v2&envId=array - **判定字符是否唯一**:https://leetcode.cn/problems/is-unique-lcci/description/ ### 2025/2/9 - **合并区间**:https://leetcode.cn/problems/merge-intervals/description/?envType=problem-list-v2&envId=array - **连续数组**:https://leetcode.cn/problems/contiguous-array/ ### 2025/2/7 - **最大子数组和**:https://leetcode.cn/problems/maximum-subarray/?envType=problem-list-v2&envId=array - **除自身以外数组的乘积**:https://leetcode.cn/problems/product-of-array-except-self/ ### 2025/2/6 - **全排列Ⅱ**:https://leetcode.cn/problems/permutations-ii/?envType=problem-list-v2&envId=array - **盛最多水的容器**:https://leetcode.cn/problems/container-with-most-water/description/ ### 2025/2/5 - **宝石与石头**:https://leetcode.cn/problems/jewels-and-stones/description/ - **快乐数**:https://leetcode.cn/problems/happy-number/description/ ### 2025/2/4 - **验证回文串II**:https://leetcode.cn/problems/RQku0D/description/ - **x的平方根**:https://leetcode.cn/problems/jJ0w9p/description/ ### 2025/2/3 - **最后一个单词的长度**:https://leetcode.cn/problems/length-of-last-word/description/ - **在排序数组中查找元素的第一个和最后一个位置**:https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/description/ ### 2025/1/26 - **找字符串中第一个只出现一次的字符**:https://leetcode.cn/problems/first-unique-character-in-a-string/description/ - **二分查找**:https://leetcode.cn/problems/binary-search/description/ ### 2025/1/25 - **仅仅反转字母**:https://leetcode.cn/problems/reverse-only-letters/description/ - **最小覆盖子串**:https://leetcode.cn/problems/M1oyTv/description/ ### 2025/1/24 - **数组中两元素的最大乘积**:https://leetcode.cn/problems/maximum-product-of-two-elements-in-an-array/description/ - **替换后的最长重复字符**:https://leetcode.cn/problems/longest-repeating-character-replacement/description/ ### 2025/1/23 - **最小绝对差**:https://leetcode.cn/problems/minimum-absolute-difference/description/ - **至少有k个重复字符的最长子串**:https://leetcode.cn/problems/longest-substring-with-at-least-k-repeating-characters/description/ ### 2025/1/22 - **按奇偶排序数组**:https://leetcode.cn/problems/sort-array-by-parity/description/ - **找到字符串中所有字母异位词**:https://leetcode.cn/problems/VabMRr/description/