Skip to content

LeetCode & 剑指Offer(Java版);每天完成一个ARTS任务,分别为Algorithm(LeetCode),Review(点评技术文章/论文),Tip(技术技巧),Share(技术观点和思考); 欢迎大佬一起共建!

guangxush/ARTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

每天完成一个ARTS任务

ARTS 高效学习是耗子叔发起的一个高效学习方法,一个需要持续坚持的方法。ARTS 包含四块的内容:

  • Algorithm。主要是为了编程训练和学习。每天至少做一个 leetcode 的算法题(先从Easy开始,然后再Medium,最后才Hard)。进行编程训练,如果不训练你看再多的算法书,你依然不会做算法题,看完书后,你需要训练。

  • Review:主要是为了学习英文,如果你的英文不行,你基本上无缘技术高手。所以,需要你阅读并点评至少一篇英文技术文章,我个人最喜欢去的地方是 Medium (30min);

  • Tip:主要是为了总结和归纳你在是常工作中所遇到的知识点。学习至少一个技术技巧。你在工作中遇到的问题,踩过的坑,学习的点滴知识;

  • Share:主要是为了建立你的影响力,能够输出价值观。分享一篇有观点和思考的技术文章,也可以是技术总结的文章;

只有你开始自己思考,开始自己总结和归纳,开始找人交流讨论,开始践行,并开始对外输出,你才会掌握到真正的学习能力

所以,学习不是努力读更多的书,盲目追求阅读的速度和数量,这会让人产生低层次的勤奋和成长的感觉,这只是在使蛮力。要思辨,要践行,要总结和归纳,否则,你只是在机械地重复某件事(记忆知识),而不会有质的成长的。

重点是如何才能让自己拥有举一反三的能力,在这方面,耗子叔对自己训练如下:

对于一个场景,制造出各种不同的问题或难题; 对于一个问题,努力寻找尽可能多的解,并比较这些解的优劣; 对于一个解,努力寻找各种不同的测试案例,以图让其健壮。 举一反三的能力,可以分解为:

  • 联想能力:这种能力的锻炼需要你平时就在不停地思考同一个事物的不同的用法,或是联想与之有关的别的事物。对于软件开发和技术学习也一样;

  • 抽象能力:抽象能力是举一反三的基本技能。平时你解决问题的时候,如果你能对这个问题进行抽象,你就可以获得更多的表现形式。抽象能力需要找到解决问题的通用模型,比如数学就是对现实世界的一种抽象。只要我们能把现实世界的各种问题建立成数据模型(如,建立各种维度的向量),我们就可以用数学来求解,这也是机器学习的本质;

  • 自省能力:所谓自省能力就是自己找自己的难看。当你得到一个解的时候,要站在自己的对立面来找这个解的漏洞。有点像左右手互博。这种自己和自己辩论的能力又叫思辨能力。将自己分裂成正反方,左右方,甚至多方,站在不同的立场上来和自己辩论,从而做到不漏过一个case,从而获得完整全面的问题分析能力。

如果要获得这三种能力,除了你要很喜欢思考和找其它人来辩论或讨论以外,还要看你自己是否真的善于思考,是否有好奇心,是否喜欢打破沙锅问到底,是否喜欢关注细节,做事是否认真,是否严谨……

~~欢迎跟我一起share,一起up,通过主页邮件联系,知道的越多,不知道的越多~~

ARTS

MySelf

算法分享

数和字符串

参考解答 原题地址
20221215 151. Reverse Words in a String(字符串中单词反转)
20221207 149. Max Points on a Line(同一条线上最多的点)
20221206 68. Text Justification(文本对齐)
20221205 29. Divide Two Integers(两个整数相除)
20221204 6. Zigzag Conversion(之字形转换)
20221129 30. Substring with Concatenation of All Words(串联所有单词的子串)
20221128 43. Multiply Strings(字符串相乘)
20221127 76. Minimum Window Substring(最小窗口子串)
20221126 56. Merge Intervals(合并区间)
20221125 57. Insert Interval(插入区间)
20221124 9. Palindrome Number(回文数)
20221123 7. Reverse Integer(整数反转)
20220830 58. Length of Last Word(最后一个单词的长度)
20220829 71. Simplify Path(简化路径)
20220828 49. Group Anagrams(回文构词法)
20220827 38. Count and Say(数和说)
20220826 13. Roman to Integer(罗马转整数)
20220825 12. Integer to Roman(整数转罗马)
20220824 65. Valid Number(有效数字)
20220823 14. Longest Common Prefix(最长公共前缀)
20220822 44. Wildcard Matching(广义单词匹配)
20220821 10. Regular Expression Matching(正则匹配)
20220820 5. Longest Palindromic Substring(最长回文子串)
20220819 67. Add Binary(二进制数字相加)
20220818 8. String to Integer (atoi)(字符串转整数)
20220817 28. Implement strStr()(实现Str)
20220816 125. Valid Palindrome(有效回文串)
20220627 1002. Find Common Characters(发现公共单词)
20220626 819. Most Common Word(最多公共单词)
20220521 3. Longest Substring Without Repeating Characters(无重复最大子串)
20220520 76. Minimum Window Substring(滑动最小子串)
20220427 27. Remove Element(移除重复元素)
20220426 409. Longest Palindrome(最长回文串)
20220118 32. Longest Valid Parentheses(最长回文串)
20220117 20. Valid Parentheses(有效回文串)
20220116 58. Length of Last Word(最后一个单词长度)
20220115 71. Simplify Path(最短路径)
20220114 49. Group Anagrams(回文构词法)
20220113 38. Count and Say(数数)
20220112 13. Roman to Integer(Roman转Integer)
20220111 12. Integer to Roman(Integer转Roman)
20220110 65. Valid Number(有效数字)
20220109 14. Longest Common Prefix(最长公共前缀)
20220108 44. Wildcard Matching(外卡匹配DP)
20220107 10. Regular Expression Matching(正则表达式匹配DP)
20220106 5. Longest Palindromic Substring(最长回文串DP)
20220105 67. Add Binary(二进制相加)
20220104 8. String to Integer (atoi)(字符串类型转整数)
20220103 28. Implement strStr(实现str)
20220102 125. Valid Palindrome(有效回文串)
20211115 137. Single Number II(只出现一次的数字 II)
20211111 528. Random Pick with Weight(随机选择权重)
20211110 287. Find the Duplicate Number(发现重复的数字)
20211116 3. Longest Substring Without Repeating Characters(无重复字符的最长子串)
20211101 459. Repeated Substring Pattern(重复的子字符串)
20211028 202. Happy Number(快乐数)
20211027 204. Count Primes(计数质数)
20211022 321. Create Maximum Number(拼接最大数)
20211015 51. N-Queens(N皇后问题)
20211012 403. Frog Jump(青蛙跳)
20211011 41. First Missing Positive(缺失的第一个正数)
20210926 224. Basic Calculator(基本计算器)
20210922 78. Subsets(子集)
20210917 22. Generate Parentheses(生成括号)
20210915 79. Word Search(单词搜索)
20210828 415. Add Strings(字符串相加)
20210827 20. Valid Parentheses(有效的括号)
20210818 41. First Missing Positive(缺失的第一个正数)
20210815 1. Two Sum(两数之和)
20210810 69. Sqrt(x)
20210720 3. Longest Substring Without Repeating Characters(无重复的最长子串)
20210710 1047. Remove All Adjacent Duplicates In String(删除字符串中的所有相邻重复项)
20210702 287. Find the Duplicate Number(发现数组中重复的数字)
20210704 91. Decode Ways(解码方法)
20210701 151. Reverse Words in a String(翻转字符串里的单词)
20210615 224. Basic Calculator(基本计算器)
20210608 78. Subsets(子集)
20210604 8. String to Integer (atoi)(字符串转整数)
20210531 22. Generate Parentheses(生成括号)
20210519 415. Add Strings(字符串相加)
20210515 470. Implement Rand10 Using Rand7(使用随机数7实现随机数10)
20201010 剑指offer-反转单词顺序
20201003 剑指offer-左旋转字符串
20200924 剑指offer-第一个只出现一次的字符
20200923 剑指offer-丑数
20200823 剑指offer-替换空格
20200819 268. Missing Number(丢失的数字)
20200813 330. Patching Array(添加数字)
20201022 剑指offer-字符流中第一个不重复出现的字符
20201021 剑指offer-表示数值的字符串
20201020 剑指offer-正则表达式匹配
20201018 剑指offer-把字符串转换成整数
20201208 268. Missing Number(丢失的数字)
20201207 287. Find the Duplicate Number(发现重复的数字)
20201223 443. String Compression(字符串压缩)
20201224 191. Number of 1 Bits(数字1的个数)
20201226 3. Longest Substring Without Repeating Characters(最长不重复的字符串)
20201230 93. Restore IP Addresses(构造IP地址)
20210103 3. Longest Substring Without Repeating Characters(最长不重复字符串)
20210106 468. Validate IP Address(验证是否是IP地址)
20210111 151. Reverse Words in a String(反转字符串)
20210112 557. Reverse Words in a String III(反转字符串3)
20210113 541. Reverse String II(反转k个字符串)
20210114 344. Reverse String(反转字符串)
20210115 345. Reverse Vowels of a String(元音字母反转)
20210220 151. Reverse Words in a String(单词字符串反转)
20210219 415. Add Strings(字符串求和)
20210215 22. Generate Parentheses(生成匹配的括号)
20210314 3. Longest Substring Without Repeating Characters(无重复字符的最长子串)
20210429 415. Add Strings(字符串相加)
20210413 1. Two Sum(两数之和)
20210421 2. Add Two Numbers(两数相加)
20210412 69. Sqrt(x)(求根号X)

动态规划

参考解答 原题地址
20221218 146. LRU Cache(LRU缓存)
20221214 91. Decode Ways(解码方法)
20221213 53. Maximum Subarray(最大子段和)
20221121 140. Word Break II(断字2)
20221120 139. Word Break(断字)
20221119 115. Distinct Subsequences(不同子序列)
20221118 91. Decode Ways(解码方法)
20221117 72. Edit Distance(编辑距离)
20221116 64. Minimum Path Sum(最小路径和)
20221115 87. Scramble String(可拼凑字符串)
20221114 97. Interleaving String(交错字符串)
20221113 123. Best Time to Buy and Sell Stock III(买卖股票的最佳时间3)
20221112 85. Maximal Rectangle(最大矩形)
20221111 132. Palindrome Partitioning II(回文分割算法2)
20221110 53. Maximum Subarray(最大子段和)
20221109 120. Triangle(三角形)
20221108 11. Container With Most Water(容器最大水容量)
20221107 3. Longest Substring Without Repeating Characters(无重复最长子串)
20221106 122. Best Time to Buy and Sell Stock II(买卖股票的最佳时机2)
20221105 121. Best Time to Buy and Sell Stock(买卖股票的最佳时机)
20221104 45. Jump Game II(跳跃游戏2)
20221103 55. Jump Game(跳跃游戏)
20221102 69. Sqrt(x)(求根号)
20221101 50. Pow(x, n)(求次幂)
20221121 140. Word Break II(断字2)
20221120 139. Word Break(断字)
20221119 115. Distinct Subsequences(不同子序列)
20221118 91. Decode Ways(解码方法)
20221117 72. Edit Distance(编辑距离)
20221116 64. Minimum Path Sum(最小路径和)
20221115 87. Scramble String(可拼凑字符串)
20221114 97. Interleaving String(交错字符串)
20221113 123. Best Time to Buy and Sell Stock III(买卖股票的最佳时间3)
20221112 85. Maximal Rectangle(最大矩形)
20221111 132. Palindrome Partitioning II(回文分割算法2)
20221110 53. Maximum Subarray(最大子段和)
20221109 120. Triangle(三角形)
20220707 53. Maximum Subarray(最大子段和)
20220706 72. Edit Distance(编辑距离)
20220704 674. Longest Continuous Increasing Subsequence(最长连续递增子序列-动态规划)
20220703 300. Longest Increasing Subsequence(最长递增子序列-动态规划)
20220702 1143. Longest Common Subsequence(最长公共子序列-动态规划)
20220701 5. Longest Palindromic Substring(最长回文子串-动态规划)
20220630 409. Longest Palindrome(可构造的最长回文串)
20220609 312. Burst Balloons(戳气球-动态规划)
20220602 518. Coin Change 2(换零钱问题2-DP)
20220601 416. Partition Equal Subset Sum(分割等和子集-DP)
20220629 1143. Longest Common Subsequence(最长公共子序列)
20220628 14. Longest Common Prefix(最长公共前缀)
20220530 213. House Robber II(打家劫舍2)
20220531 198. House Robber(打家劫舍)
20220529 718. Maximum Length of Repeated Subarray(最长重复子数组)
20220528 72. Edit Distance(编辑距离)
20220527 5. Longest Palindromic Substring(最长回文子串)
20220526 300. Longest Increasing Subsequence(最长递增子序列)
20220525 53. Maximum Subarray(最大子段和-动态规划)
20220513 322. Coin Change(兑换硬币-动态规划)
20220512 887. Super Egg Drop(扔鸡蛋问题-动态规划)
20220314 140. Word Break II(单词切分2)
20220313 139. Word Break(单词切分)
20220312 115. Distinct Subsequences(不同的子序列)
20220311 91. Decode Ways(解码方式)
20220310 72. Edit Distance(编辑距离)
20220309 64. Minimum Path Sum(最短路径和)
20220308 87. Scramble String(搅乱字符串)
20220307 97. Interleaving String(交织相错的字符串)
20220306 123. Best Time to Buy and Sell Stock III(买卖股票的最佳时间3)
20220305 85. Maximal Rectangle(最大矩形)
20220304 132. Palindrome Partitioning II(拆分回文串2)
20220303 131. Palindrome Partitioning(拆分回文串)
20220302 53. Maximum Subarray(最大字段和)
20220301 120. Triangle(三角形)
20211112 718. Maximum Length of Repeated Subarray(最长公共子序列)
20211105 1143. Longest Common Subsequence(最长公共子序列)
20211026 97. Interleaving String(DP交错字符串)
20210928 334. Increasing Triplet Subsequence(递增的三元子序列)
20210916 128. Longest Consecutive Sequence(最长连续序列)
20210914 5. Longest Palindromic Substring(最长回文子串)
20210908 162. Find Peak Element(发现山峰元素)
20210628 670. Maximum Swap(数组中两个数的最大异或值)
20210624 1143. Longest Common Subsequence(最长公共子序列)
20210626 695. Max Area of Island(岛屿的最大面积)
20210513 32. Longest Valid Parentheses(最长有效括号)
20210524 53. Maximum Subarray(最大字段和)
20210521 32. Longest Valid Parentheses(最长有效括号)
20210516 198. House Robber(打家劫舍)
20210512 322. Coin Change(零钱兑换-动态规划)
20210510 300. Longest Increasing Subsequence(最长上升子序列)
20210523 5. Longest Palindromic Substring(最长回文子串)
20210128 91. Decode Ways(动态规划解码方法)
20210125 887. Super Egg Drop(扔鸡蛋)
20200821 剑指offer-机器人的运动范围
20200809 72. Edit Distance(编辑距离)
20201101 46. Permutations(全排列)
20201031 53. Maximum Subarray(最大子序和)
20201109 239. Sliding Window Maximum(滑动窗口最大值)
20201108 72. Edit Distance(编辑距离)
20201107 5. Longest Palindromic Substring(最长回文串)
20210105 5. Longest Palindromic Substring(动态规划解决最长回文子串)
20210110 209. Minimum Size Subarray Sum(最小子序列和)
20210109 1143. Longest Common Subsequence(最长公共子序列)
20210107 46. Permutations(全排列)
20201211 62. Unique Paths(不同路径-动态规划)
20210213 53. Maximum Subarray(最大子段和)
20210221 62. Unique Paths(动态规划求不同路径数)
20210227 300. Longest Increasing Subsequence(最长递增序列)
20210212 123. Best Time to Buy and Sell Stock III(买股票的最佳时机3)
20210211 122. Best Time to Buy and Sell Stock II(买股票的最佳时机2)
20210210 121. Best Time to Buy and Sell Stock(买股票的最佳时机)
20210330 198. House Robber(打家劫舍)
20210324 121. Best Time to Buy and Sell Stock(买卖股票的最佳时间)
20210319 44. Wildcard Matching(通配符匹配)
20210304 72. Edit Distance(编辑距离)
20210311 1155. Number of Dice Rolls With Target Sum(掷骰子的N种方法-DP)
20210320 713. Subarray Product Less Than K(乘积小于K的子数组)
20210321 5. Longest Palindromic Substring(最长回文数)
20210317 394. Decode String(字符串解码)
20210419 300. Longest Increasing Subsequence(最长递增子序列)
20210709 40. Combination Sum II(组合总和)
20210705 718. Maximum Length of Repeated Subarray(最长公共子序列)

暴力枚举

参考解答 原题地址
20221018 17. Letter Combinations of a Phone Number(号码字母组合)
20221017 77. Combinations(组合)
20221016 47. Permutations II(排列2)
20221015 46. Permutations(排列)
20221014 90. Subsets II(子集2)
20221013 78. Subsets(子集)
20220319 17. Letter Combinations of a Phone Number(电话号码组合-暴力枚举)
20220318 77. Combinations(组合-暴力枚举)
20220317 46. Permutations(排列-暴力枚举)
20220316 90. Subsets II(子集2-暴力枚举)
20220315 78. Subsets(子集-暴力枚举)

贪心算法

参考解答 原题地址
20221108 11. Container With Most Water(容器最大水容量)
20221107 3. Longest Substring Without Repeating Characters(无重复最长子串)
20221106 122. Best Time to Buy and Sell Stock II(买卖股票的最佳时机2)
20221105 121. Best Time to Buy and Sell Stock(买卖股票的最佳时机)
20221104 45. Jump Game II(跳跃游戏2)
20221103 55. Jump Game(跳跃游戏)
20220622 45. Jump Game II(跳跃游戏2-贪心算法)
20220621 55. Jump Game(跳跃游戏-贪心算法)
20220510 986. Interval List Intersections(区间交集-贪心)
20220509 56. Merge Intervals(合并区间-贪心)
20220429 877. Stone Game(石头游戏)
20220410 11. Container With Most Water(最大蓄水量)
20220409 3. Longest Substring Without Repeating Characters(最长无重复字符串)
20220408 122. Best Time to Buy and Sell Stock II(买卖股票最佳时间2)
20220407 121. Best Time to Buy and Sell Stock(买卖股票最佳时间)
20220406 45. Jump Game II(跳跃游戏2)
20220405 55. Jump Game(跳跃游戏)
20211109 135. Candy(分发糖果)
20210907 322. Coin Change(零钱兑换)
20210906 39. Combination Sum(组合总和)
20210809 300. Longest Increasing Subsequence
20210831 221. Maximal Square(最大正方形)
20210808 31. Next Permutation(下一个排列)
20210802 42. Trapping Rain Water(接雨水)
20210830 46. Permutations(全排列)
20210829 155. Min Stack(最小栈)
20210728 121. Best Time to Buy and Sell Stock(最佳买卖股票的时间)
20210723 146. LRU Cache(LRU缓存机制)
20210715 239. Sliding Window Maximum(滑动窗口最大值)
20210714 528. Random Pick with Weight(按权重随机选择)
20210630 135. Candy(分发糖果)
20210618 112. Path Sum(路径和)
20210617 11. Container With Most Water(盛最多水的容器)
20210613 64. Minimum Path Sum(最短路径和)
20210612 221. Maximal Square(最大正方形)
20210603 70. Climbing Stairs(爬梯子)
20210530 128. Longest Consecutive Sequence(最长连续序列)
20210602 739. Daily Temperatures(每日温度)
20200830 剑指offer-变态跳台阶
20200829 剑指offer-跳台阶
20201016 剑指offer滑动窗口的最大值
20201209 121. Best Time to Buy and Sell Stock(买股票最大收益)
20201229 121. Best Time to Buy and Sell Stock(股票最大收益1)
20201228 122. Best Time to Buy and Sell Stock II(股票最大收益2)
20201227 123. Best Time to Buy and Sell Stock III(股票最大收益3)
20210310 739. Daily Temperatures(每日温度)
20210306 877. Stone Game(拿石头)
20210415 31. Next Permutation(下一个排列)
20210414 46. Permutations(全排列)
20210507 122. Best Time to Buy and Sell Stock II(买卖股票的最佳时间2)
20210506 121. Best Time to Buy and Sell Stock(买卖股票的最佳时间)
20210505 123. Best Time to Buy and Sell Stock III(买卖股票的最佳时间3)

查找

参考解答 原题地址
20221012 74. Search a 2D Matrix(二维矩阵查找)
20221011 35. Search Insert Position(寻找插入的位置)
20220519 33. Search in Rotated Sorted Array(旋转数组查找)
20220518 35. Search Insert Position(查找插入的位置)
20220517 704. Binary Search(二分查找框架)
20220228 35. Search Insert Position(寻找插入位置)
20220227 240. Search a 2D Matrix II(二维数组查找2)
20220226 74. Search a 2D Matrix(二维数组查找)
20220225 704. Binary Search(二分查找)

分治法

参考解答 原题地址
20221102 69. Sqrt(x)(求根号)
20221101 50. Pow(x, n)(求次幂)
20220404 69. Sqrt(x)(分治法求根号)
20220403 50. Pow(x, n)(分治法求次方)

深度优先搜索

参考解答 原题地址
20221031 79. Word Search(单词搜索)
20221030 37. Sudoku Solver(数独解决方案)
20221029 22. Generate Parentheses(生成括号)
20221028 40. Combination Sum II(组合总和2)
20221027 39. Combination Sum(组合总和)
20221026 93. Restore IP Addresses(复原IP地址)
20221025 52. N-Queens II(N皇后问题2)
20221024 51. N-Queens(N皇后问题)
20221023 63. Unique Paths II(不同的路径2)
20221022 62. Unique Paths(不同的路径)
20221021 131. Palindrome Partitioning(回文分割)
20220615 36. Valid Sudoku(有效数独-回溯)
20220613 22. Generate Parentheses(生成括号-回溯)
20220428 47. Permutations II(组合2)
20220515 51. N-Queens(N皇后问题)
20220514 46. Permutations(全排列-回溯算法)
20220507 78. Subsets(子集-深度优先遍历)
20220506 77. Combinations(组合-深度优先遍历)
20220505 46. Permutations(排列-深度优先遍历)
20220504 22. Generate Parentheses(生成括号--深度优先遍历)
20220402 79. Word Search(单词查找)
20220401 37. Sudoku Solver(数独)
20220331 22. Generate Parentheses(生成括号)
20220330 40. Combination Sum II(组合总和2)
20220329 39. Combination Sum(组合总和)
20220328 52. N-Queens II(N皇后问题2)
20220327 51. N-Queens(N皇后问题)
20220326 63. Unique Paths II(不同的路径2)
20220325 62. Unique Paths(不同的路径)
20220324 132. Palindrome Partitioning II(回文串拆分2)
20220323 131. Palindrome Partitioning(回文串拆分)

广度优先搜索

参考解答 原题地址
20221019 127. Word Ladder(单词梯子)
20221020 130. Surrounded Regions(被环绕的区域)
20220516 111. Minimum Depth of Binary Tree(求二叉树最小深度-DFS/BFS)
20220511 773. Sliding Puzzle(滑动窗格-广度优先搜索)
20220322 130. Surrounded Regions(环绕区域-BFS)
20220321 126. Word Ladder II(词语阶梯2-BFS)
20220320 127. Word Ladder(词语阶梯-BFS)

排序

参考解答 原题地址
20221010 75. Sort Colors(颜色排序)
20221009 41. First Missing Positive(第一个缺失的正数)
20221008 148. Sort List(链表排序)
20221007 147. Insertion Sort List(链表插入排序)
20221006 23. Merge k Sorted Lists(合并K个有序链表)
20221005 21. Merge Two Sorted Lists(合并两个有序的链表)
20221004 88. Merge Sorted Array(合并排序的数组)
20220224 75. Sort Colors(颜色排序-快速排序)
20220223 41. First Missing Positive(发现缺失的正数-桶排序)
20220222 148. Sort List(链表排序)
20220221 147. Insertion Sort List(链表插入排序)
20220220 23. Merge k Sorted Lists(合并K个排序链表)
20220219 21. Merge Two Sorted Lists(合并两个排序链表)
20220218 88. Merge Sorted Array(合并两个排序数组)
20210120 912. Sort an Array(数组排序)
20210504 912. Sort an Array(归并排序)
20201107 希尔排序
20201106 选择排序
20201105 插入排序
20201104 堆排序
20201103 归并排序
20201102 快速排序
20201101 冒泡排序

参考解答 原题地址
20221225 94. Binary Tree Inorder Traversal(二叉树中序遍历)
20221224 110. Balanced Binary Tree(平衡二叉树)
20221219 450. Delete Node in a BST(删除二叉搜索树的节点)
20221217 297. Serialize and Deserialize Binary Tree(二叉树序列化与反序列化)
20221216 543. Diameter of Binary Tree(二叉树的直径)
20221212 124. Binary Tree Maximum Path Sum(二叉树最大路径和)
20221209 236. Lowest Common Ancestor of a Binary Tree(二叉树最小公共祖先)
20221003 129. Sum Root to Leaf Numbers(根到叶子节点的路径和)
20221002 116. Populating Next Right Pointers in Each Node(填充每个节点的右侧指针)
20221001 124. Binary Tree Maximum Path Sum(二叉树的最大路径和)
20220930 113. Path Sum II(路径和2)
20220929 112. Path Sum(路径和)
20220928 104. Maximum Depth of Binary Tree(二叉树的最大深度)
20220927 111. Minimum Depth of Binary Tree(二叉树的最小深度)
20220926 109. Convert Sorted List to Binary Search Tree(排序链表转换成二叉搜索树)
20220925 108. Convert Sorted Array to Binary Search Tree(排序数组转换成二叉搜索树)
20220924 98. Validate Binary Search Tree(有效的二叉搜索树)
20220923 95. Unique Binary Search Trees II(不同的二叉搜索树2)
20220922 96. Unique Binary Search Trees(不同的二叉搜索树)
20220921 889. Construct Binary Tree from Preorder and Postorder Traversal(根据前序和后序遍历构造二叉树)
20220920 106. Construct Binary Tree from Inorder and Postorder Traversal(根据中序和后序遍历构造二叉树)
20220919 105. Construct Binary Tree from Preorder and Inorder Traversal(根据前序和中序构建二叉树)
20220918 116. Populating Next Right Pointers in Each Node(完美二叉树的每个节点增加Next指针)
20220917 117. Populating Next Right Pointers in Each Node II(完美二叉树的每个节点增加Next指针2)
20220916 114. Flatten Binary Tree to Linked List(二叉树转单链表)
20220915 110. Balanced Binary Tree(平衡二叉树)
20220914 101. Symmetric Tree(对称树)
20220913 100. Same Tree(相同的树)
20220912 99. Recover Binary Search Tree(恢复二叉搜索树)
20220911 103. Binary Tree Zigzag Level Order Traversal(二叉树之字形遍历)
20220910 107. Binary Tree Level Order Traversal II(二叉树层次遍历2)
20220909 102. Binary Tree Level Order Traversal(二叉树层次遍历)
20220908 145. Binary Tree Postorder Traversal(后序遍历)
20220907 94. Binary Tree Inorder Traversal(中序遍历)
20220906 144. Binary Tree Preorder Traversal(前序遍历)
20220625 235. Lowest Common Ancestor of a Binary Search Tree(二叉搜索树公共祖先)
20220624 236. Lowest Common Ancestor of a Binary Tree(公共祖先)
20220623 1123. Lowest Common Ancestor of Deepest Leaves(最深公共祖先)
20220430 98. Validate Binary Search Tree(有效的二叉搜索树)
20220217 129. Sum Root to Leaf Numbers(根到叶子节点之和)
20220216 116. Populating Next Right Pointers in Each Node(每个节点增加右指针)
20220215 124. Binary Tree Maximum Path Sum(二叉树最大路径和)
20220214 113. Path Sum II(路径和2)
20220213 112. Path Sum(路径和)
20220212 104. Maximum Depth of Binary Tree(最大深度二叉树)
20220211 111. Minimum Depth of Binary Tree(最小深度二叉树)
20220210 109. Convert Sorted List to Binary Search Tree(排序链表转二叉搜索树)
20220209 108. Convert Sorted Array to Binary Search Tree(排序数组转二叉搜索树)
20220208 98. Validate Binary Search Tree(有效的二叉搜索树)
20220207 95. Unique Binary Search Trees II(不同的二叉搜索树2)
20220206 96. Unique Binary Search Trees(不同的二叉搜索树)
20220205 889. Construct Binary Tree from Preorder and Postorder Traversal(前序和后序构造二叉树)
20220204 106. Construct Binary Tree from Inorder and Postorder Traversal(中序和后序构造二叉树)
20220203 105. Construct Binary Tree from Preorder and Inorder Traversal(前序和中序构造二叉树)
20220202 117. Populating Next Right Pointers in Each Node II(指向右侧节点)
20220201 114. Flatten Binary Tree to Linked List(二叉树转单链表)
20220131 110. Balanced Binary Tree(平衡二叉树)
20220130 101. Symmetric Tree(对称树)
20220129 100. Same Tree(相似的树)
20220128 99. Recover Binary Search Tree(复原二叉搜索树)
20220127 103. Binary Tree Zigzag Level Order Traversal(之子形遍历)
20220126 107. Binary Tree Level Order Traversal II(层次遍历2)
20220125 102. Binary Tree Level Order Traversal(层次遍历)
20220124 145. Binary Tree Postorder Traversal(后序遍历)
20220123 94. Binary Tree Inorder Traversal(中序遍历)
20220122 144. Binary Tree Preorder Traversal(前序遍历)
20211124 700. Search in a Binary Search Tree(二叉树的二分查找)
20211108 104. Maximum Depth of Binary Tree(二叉树最大深度)
20211104 108. Convert Sorted Array to Binary Search Tree(将有序数组转换为二叉搜索树)
20211021 637. Average of Levels in Binary Tree(二叉树的层平均值)
20211020 107. Binary Tree Level Order Traversal II(二叉树层次遍历2)
20211019 951. Flip Equivalent Binary Trees(等价二叉树)
20211009 96. Unique Binary Search Trees(不同的二叉搜索树)
20210927 226. Invert Binary Tree(二叉树反转)
20210925 114. Flatten Binary Tree to Linked List(二叉树展开为链表)
20210913 958. Check Completeness of a Binary Tree(二叉树的完全性检验)
20210905 98. Validate Binary Search Tree(验证二叉搜索树)
20210819 101. Symmetric Tree(对称二叉树)
20210816 124. Binary Tree Maximum Path Sum(二叉树最大路径和)
20210812 105. Construct Binary Tree from Preorder and Inorder Traversal(从前序与中序遍历序列构造二叉树)
20210804 199. Binary Tree Right Side View(二叉树的右视图)
20210722 103. Binary Tree Zigzag Level Order Traversal(二叉树的锯齿形层次遍历)
20210629 129. Sum Root to Leaf Numbers(求根到叶子节点数字之和)
20210623 108. Convert Sorted Array to Binary Search Tree(将有序数组转换为二叉搜索树)
20210621 226. Invert Binary Tree(翻转二叉树)
20210620 662. Maximum Width of Binary Tree(二叉树最大宽度)
20210619 297. Serialize and Deserialize Binary Tree(二叉树的序列化与反序列化)
20210611 110. Balanced Binary Tree(平衡二叉树)
20210610 230. Kth Smallest Element in a BST(二叉搜索树中第K小的元素)
20210607 240. Search a 2D Matrix II(搜索二维矩阵 II)
20210529 94. Binary Tree Inorder Traversal(二叉树中序遍历)
20210528 113. Path Sum II(路径和2)
20210527 543. Diameter of Binary Tree(二叉树的直径)
20210501 102. Binary Tree Level Order Traversal(二叉树层次遍历)
20210131 145. Binary Tree Postorder Traversal(二叉树后序遍历)
20210130 144. Binary Tree Preorder Traversal(二叉树前序遍历)
20210129 94. Binary Tree Inorder Traversal(二叉树中序遍历)
20200814 94. Binary Tree Inorder Traversal(二叉树中序遍历)
20201014 剑指offer-二叉搜索树的第k个节点
20201013 剑指offer-序列化二叉树
20201012 剑指offer-把二叉树打印成多行
20201011 剑指offer-按之字形打印二叉树
20201009 剑指offer-对称的二叉树
20200810 102. Binary Tree Level Order Traversal(二叉树层次遍历)
20200816 199. Binary Tree Right Side View(二叉树右视图)
20200825 剑指offer-重建二叉树
20200908 剑指offer-二叉树的镜像
20200907 剑指offer-树的子结构
20200914 剑指offer-二叉树中和为某一路径的值
20200913 剑指offer-二叉树的后序遍历
20200912 剑指offer-从上往下打印二叉树
20200916 剑指offer-二叉搜索树与双向链表
20200929 剑指offer-平衡二叉树
20200928 剑指offer-二叉树的深度
20200808 230. Kth Smallest Element in a BST(二叉搜索树第K个元素)
20201024 剑指offer-二叉树的下一个节点
20201102 208. Implement Trie (Prefix Tree)前缀树
20201030 101. Symmetric Tree(对称二叉树)
20201028 103. Binary Tree Zigzag Level Order Traversal(二叉树的锯齿形层次遍历-百度)
20201104 98. Validate Binary Search Tree(验证二叉搜索树)
20201112 404. Sum of Left Leaves(左侧节点之和)
20201111 103. Binary Tree Zigzag Level Order Traversal(之字形打印二叉树)
20201110 102. Binary Tree Level Order Traversal(二叉树层次遍历)
20201128 199. Binary Tree Right Side View (二叉树右视图)
20201127 889. Construct Binary Tree from Preorder and Postorder Traversal(根据前序和和后序遍历构造二叉树)
20201126 617. Merge Two Binary Trees(两个二叉树合并)
20201125 889. Construct Binary Tree from Preorder and Postorder Traversal(根据前序和和后序遍历构造二叉树)
20201124 104. Maximum Depth of Binary Tree(二叉树最大深度)
20201123 257. Binary Tree Paths(深度优先遍历求二叉树深度)
20201122 889. Construct Binary Tree from Preorder and Postorder Traversal(根据前序和和后序遍历构造二叉树)
20201121 106. Construct Binary Tree from Inorder and Postorder Traversal(根据前后序和中序构造二叉树)
20201120 105. Construct Binary Tree from Preorder and Inorder Traversal(根据前序和中序构造二叉树)
20201119 1008. Construct Binary Search Tree from Preorder Traversal(构造一个二叉搜索树)
20201118 145. Binary Tree Postorder Traversal(二叉树后序遍历)
20201117 144. Binary Tree Preorder Traversal(二叉树前序遍历)
20201116 94. Binary Tree Inorder Traversal(二叉树中序遍历)
20201115 637. Average of Levels in Binary Tree(二叉树每一层求平均)
20201114 107. Binary Tree Level Order Traversal II(二叉树层次遍历二)
20201215 449. Serialize and Deserialize BST(序列化和反序列化二叉树)
20201213 104. Maximum Depth of Binary Tree(树的最大深度)
20201222 105. Construct Binary Tree from Preorder and Inorder Traversal(根据前序和中序遍历构造二叉树)
20201221 938. Range Sum of BST(BST范围内的和)
20201220 230. Kth Smallest Element in a BST(第k个最小的元素)
20201219 653. Two Sum IV - Input is a BST(求节点之和)
20201218 783. Minimum Distance Between BST Nodes(所有节点最小绝对值)
20201217 530. Minimum Absolute Difference in BST(父子节点最小绝对值)
20210101 110. Balanced Binary Tree(平衡二叉树的判断)
20201231 236. Lowest Common Ancestor of a Binary Tree(二叉树最近的公共祖先)
20210108 222. Count Complete Tree Nodes(求二叉树节点的总数量:深度/广度)
20210226 103. Binary Tree Zigzag Level Order Traversal(之字形打印二叉树)
20210223 110. Balanced Binary Tree(验证是否是平衡二叉树)
20210217 98. Validate Binary Search Tree(验证是否是二叉搜索树)
20210216 543. Diameter of Binary Tree(二叉树的直径)
20210214 450. Delete Node in a BST(删除二叉树的某一个节点)
20210205 236. Lowest Common Ancestor of a Binary Tree(左右节点最近公共祖先)
20210204 124. Binary Tree Maximum Path Sum(二叉树最大路径)
20210203 889. Construct Binary Tree from Preorder and Postorder Traversal(前序和后序遍历构造二叉树)
20210202 106. Construct Binary Tree from Inorder and Postorder Traversal(中序和后序构造二叉树)
20210201 105. Construct Binary Tree from Preorder and Inorder Traversal(前序和中序构造二叉树)
20210328 103. Binary Tree Zigzag Level Order Traversal(二叉树之字形遍历)
20210327 700. Search in a Binary Search Tree(二叉树查询)
20210315 449. Serialize and Deserialize BST(二叉树的序列化与反序列化)
20210312 701. Insert into a Binary Search Tree(二叉搜索树的插入)
20210303 102. Binary Tree Level Order Traversal(二叉树层次遍历)
20210430 958. Check Completeness of a Binary Tree(二叉树的完全性检验)
20210425 101. Symmetric Tree(对称二叉树)
20210420 102. Binary Tree Level Order Traversal(二叉树层次遍历)
20210408 124. Binary Tree Maximum Path Sum(二叉树中的最大路径和)
20210402 199. Binary Tree Right Side View(二叉树的右视图)
20210401 105. Construct Binary Tree from Preorder and Inorder Traversal(根据前序和中序遍历构造二叉树)

栈和队列

参考解答 原题地址
20221220 22. Generate Parentheses(生成括号)
20220905 225. Implement Stack using Queues(使用队列实现栈)
20220904 232. Implement Queue using Stacks(使用栈实现队列)
20220903 150. Evaluate Reverse Polish Notation(实现逆波兰表达式)
20220902 84. Largest Rectangle in Histogram(直方图最大矩形)
20220901 32. Longest Valid Parentheses(最长有效括号)
20220831 20. Valid Parentheses(有效括号)
20220614 32. Longest Valid Parentheses(https://leetcode.com/problems/longest-valid-parentheses/)
20220612 20. Valid Parentheses(有效括号-栈)
20220610 316. Remove Duplicate Letters(移除重复元素-单调栈)
20220603 224. Basic Calculator(基本计算器-栈)
20220502 239. Sliding Window Maximum(滑动窗口的最大值-单调队列)
20220501 739. Daily Temperatures(每日温度-单调栈)
20220121 150. Evaluate Reverse Polish Notation(计算逆波兰表达式)
20220120 42. Trapping Rain Water(接雨水)
20220119 84. Largest Rectangle in Histogram(直方图最大矩形)
20211129 用一个栈实现另一个栈的排序
20211125 使用递归函数和栈操作一个逆序栈
20211124 225. Implement Stack using Queues(用队列实现栈)
20211123 155. Min Stack(最小栈)
20211122 232. Implement Queue using Stacks(用栈实现队列)
20210912 32. Longest Valid Parentheses(最长有效括号)
20210518 232. Implement Queue using Stacks(用栈实现队列)
20210517 225. Implement Stack using Queues(用队列实现栈)
20200826 剑指offer-用两个栈实现队列
20200911 剑指offer-栈的压入弹出序列
20200910 剑指offer-包含min函数的栈
20201216 32. Longest Valid Parentheses(最长有效匹配括号)
20201214 20. Valid Parentheses(有效的括号)
20210308 150. Evaluate Reverse Polish Notation(逆波兰表达式求值)
20210426 20. Valid Parentheses(有效的括号)
20210411 155. Min Stack(最小栈)

链表

参考解答 原题地址
20221210 206. Reverse Linked List(反转链表)
20220815 146. LRU Cache(LRU缓存)
20220814 143. Reorder List(链表重排序)
20220813 142. Linked List Cycle II(环形链表2)
20220812 141. Linked List Cycle(环形链表)
20220811 138. Copy List with Random Pointer(随机指针)
20220810 25. Reverse Nodes in k-Group(K组链表反转)
20220809 24. Swap Nodes in Pairs(成对交换节点)
20220808 19. Remove Nth Node From End of List(移除链表倒数第N个元素)
20220807 61. Rotate List(旋转链表)
20220806 82. Remove Duplicates from Sorted List II(移除链表中的重复元素2)
20220805 83. Remove Duplicates from Sorted List(移除链表中的重复元素)
20220804 86. Partition List(分割链表)
20220803 92. Reverse Linked List II(反转链表2)
20220802 206. Reverse Linked List(反转链表)
20220801 2. Add Two Numbers(两个数字相加)
20220606 234. Palindrome Linked List(回文链表)
20220605 92. Reverse Linked List II(部分链表反转)
20220604 206. Reverse Linked List(链表反转)
20220524 25. Reverse Nodes in k-Group(K个一组的链表反转)
20220523 92. Reverse Linked List II(部分链表反转)
20220522 206. Reverse Linked List(链表反转-递归和非递归)
20220503 206. Reverse Linked List(反转链表-递归)
20220101 146. LRU Cache(LRU缓存)
20211231 143. Reorder List(链表重新排序)
20211230 142. Linked List Cycle II(环形链表2)
20211229 141. Linked List Cycle(环形链表)
20211228 138. Copy List with Random Pointer(复制链表随机指针)
20211227 25. Reverse Nodes in k-Group(按照分组反转链表)
20211226 24. Swap Nodes in Pairs(交换成对链表)
20211225 19. Remove Nth Node From End of List(移除链表第N个节点)
20211224 61. Rotate List(旋转链表)
20211223 82. Remove Duplicates from Sorted List II(移除链表相同的元素2)
20211222 83. Remove Duplicates from Sorted List(移除链表相同的元素)
20211221 86. Partition List(链表分区)
20211220 92. Reverse Linked List II(链表反转2)
20211103 21. Merge Two Sorted Lists(合并两个有序链表)
20211102 1669. Merge In Between Linked Lists(合并两个链表)
20210910 234. Palindrome Linked List(回文链表)
20210923 24. Swap Nodes in Pairs(两两交换链表中的节点)
20210811 92. Reverse Linked List II
20210805 23. Merge k Sorted Lists(合并K个排序链表)
20210729 160. Intersection of Two Linked Lists(两个相交链表)
20210726 206. Reverse Linked List(反转链表)
20210719 25. Reverse Nodes in k-Group(K个一组的链表反转)
20210708 61. Rotate List(旋转链表)
20210706 328. Odd Even Linked List(奇偶链表)
20210614 138. Copy List with Random Pointer(复制带随机指针的链表)
20210609 82. Remove Duplicates from Sorted List II(删除排序链表中的重复元素 II)
20210606 114. Flatten Binary Tree to Linked List(二叉树展开为链表)
20210605 19. Remove Nth Node From End of List(移除链表第n个节点)
20210601 24. Swap Nodes in Pairs(两两交换链表中的节点)
20210522 142. Linked List Cycle II(环形链表2)
20210514 24. Swap Nodes in Pairs(两两交换链表中的节点)
20210509 142. Linked List Cycle II(循环链表2)
20210508 21. Merge Two Sorted Lists(合并两个有序链表)
20200917 剑指offer-字符串的排列
20200824 剑指offer-从尾到头打印单链表
20200811 206. Reverse Linked List(链表反转)
20200818 142. Linked List Cycle II(循环链表2)
20200817 141. Linked List Cycle(循环链表1)
20201008 剑指offer-链表中的环节点入口
20200926 剑指offer-两个链表的第一个公共节点
20200915 剑指offer-复杂链表的复制
20200906 剑指offer-合并两个排序的列表
20200905 反转链表
20200904 剑指offer-链表中倒数第k个节点
20201023 剑指offer-删除链表中的重复节点
20201103 234. Palindrome Linked List(验证回文链表)
20201029 142. Linked List Cycle II(环形链表节点)
20201206 21. Merge Two Sorted Lists(合并两个有序的单链表)
20201205 876. Middle of the Linked List(寻找链表的中点)
20201204 237. Delete Node in a Linked List(删除链表中的一个节点)
20201203 234. Palindrome Linked List(回文链表)
20201202 206. Reverse Linked List(链表反转)
20201201 141. Linked List Cycle(判断链表中是否有环)
20201130 142. Linked List Cycle II(找链表环的交点)
20201212 19. Remove Nth Node From End of List(删除倒数第N个节点)
20201210 349. Intersection of Two Arrays(两个List重复的元素)
20210124 206. Reverse Linked List(链表反转)
20210121 148. Sort List(链表排序)
20210118 141. Linked List Cycle(判断单链表是否有环)
20210117 25. Reverse Nodes in k-Group(反转第K组链表)
20210225 138. Copy List with Random Pointer(复杂链表拷贝)
20210309 328. Odd Even Linked List(奇偶链表)
20210323 25. Reverse Nodes in k-Group(K个一组反转链表)
20210326 206. Reverse Linked List(链表反转)
20210325 146. LRU Cache(LRU缓存机制)
20210428 92. Reverse Linked List II(反转链表2)
20210423 148. Sort List(链表排序)
20210418 234. Palindrome Linked List(回文链表)
20210417 141. Linked List Cycle(循环链表)
20210409 143. Reorder List(重排链表)
20210406 234. Palindrome Linked List(判断链表是否是回文链表)
20210405 21. Merge Two Sorted Lists(相交链表)
20210403 160. Intersection of Two Linked Lists(相交链表)

数组

参考解答 原题地址
20221211 48. Rotate Image(旋转图像)
20221208 215. Kth Largest Element in an Array(数组中第K个最大元素)
20221226 15. 3Sum(三数之和)
20221203 59. Spiral Matrix II(螺旋矩阵2)
20221202 54. Spiral Matrix(螺旋矩阵)
20221201 119. Pascal's Triangle II(杨辉三角2)
20221130 118. Pascal's Triangle(杨辉三角)
20220731 137. Single Number II(只出现一次的数字2)
20220730 136. Single Number(只出现一次的数字)
20220729 575. Distribute Candies(分糖果)
20220728 135. Candy(分糖果)
20220727 134. Gas Station(加油站)
20220726 73. Set Matrix Zeroes(设置矩阵0)
20220725 89. Gray Code(灰度Code)
20220724 70. Climbing Stairs(爬梯子)
20220723 48. Rotate Image(图像旋转)
20220722 42. Trapping Rain Water(接雨水)
20220721 36. Valid Sudoku(有效数独)
20220720 60. Permutation Sequence(排列序列)
20220719 31. Next Permutation(下一个排列)
20220718 27. Remove Element(移除元素)
20220717 18. 4Sum(四数之和)
20220716 16. 3Sum Closest(最接近的三数之和)
20220715 15. 3Sum(三数之和)
20220714 1. Two Sum(两数之和)
20220713 128. Longest Consecutive Sequence(最长连续序列)
20220712 4. Median of Two Sorted Arrays(两个排序数组中间数字)
20220711 81. Search in Rotated Sorted Array II(旋转数组中的搜索2)
20220710 33. Search in Rotated Sorted Array(旋转数组中的搜索)
20220709 80. Remove Duplicates from Sorted Array II(移除数组中的重复元素2)
20220708 26. Remove Duplicates from Sorted Array(移除数组中的重复元素)
20220705 128. Longest Consecutive Sequence(最长连续子序列-双指针)
20220617 73. Set Matrix Zeroes(设置矩阵0)
20220616 42. Trapping Rain Water(接雨水-双指针)
20220611 392. Is Subsequence(是否是子串)
20220508 560. Subarray Sum Equals K(和等于K的子数组)
20211219 2. Add Two Numbers(两个数字相加)
20211218 136. Single Number(出现一次的数字-位运算)
20211217 135. Candy(糖果-贪心算法)
20211216 134. Gas Station(加油站)
20211215 36. Valid Sudoku(有效数独)
20211214 42. Trapping Rain Water(接雨水)
20211213 48. Rotate Image(旋转图像)
20211212 66. Plus One(数组加一)
20211211 70. Climbing Stairs(爬梯子-动态规划)
20211210 73. Set Matrix Zeroes(设置矩阵零)
20211209 60. Permutation Sequence(序列排序)
20211208 31. Next Permutation(下一个排列)
20211207 1. Two Sum(两数之和)
20211206 128. Longest Consecutive Sequence(最长递增序列)
20211205 4. Median of Two Sorted Arrays(两个排序数组的中位数)
20211204 27. Remove Element(移除元素)
20211203 81. Search in Rotated Sorted Array II(旋转数组中的查找2)
20211202 704. Binary Search(二分查找)
20211201 33. Search in Rotated Sorted Array(旋转数组中的查找)
20211130 26. Remove Duplicates from Sorted Array(删除数组中的重复项)
20211118 80. Remove Duplicates from Sorted Array II(删除排序数组中的重复项)
20211117 215. Kth Largest Element in an Array(数组中第K个最大元素)
20211014 1156. Swap For Longest Repeated Character Substring(单字符重复子串的最大长度)
20211013 349. Intersection of Two Arrays(数组的交集)
20211029 807. Max Increase to Keep City Skyline(保持城市天际线)
20211025 525. Contiguous Array(连续数组)
20211018 560. Subarray Sum Equals K(和等于k的数组个数)
20210822 56. Merge Intervals(合并区间)
20210803 33. Search in Rotated Sorted Array(搜索旋转排序数组)
20210713 456. 132 Pattern(132模式)
20210712 4. Median of Two Sorted Arrays(寻找两个正序数组的中位数)
20210727 15. 3Sum(三数之和)
20210721 215. Kth Largest Element in an Array(数组中第k个最大的元素)
20210718 977. Squares of a Sorted Array(有序数组的平方)
20210711 169. Majority Element(多数元素)
20210703 209. Minimum Size Subarray Sum(长度最小的子数组)
20210707 704. Binary Search(二分查找)
20210717 54. Spiral Matrix(寻找旋转排序数组中的最小值)
20210716 1095. Find in Mountain Array(寻找山脉数组的峰值)
20210627 24. Swap Nodes in Pairs(两两交换节点)
20210622 440. K-th Smallest in Lexicographical Order(字典序的第K小数字HARD)
20210616 862. Shortest Subarray with Sum at Least K(和至少为 K 的最短子数组)
20210625 560. Subarray Sum Equals K(和为K的子数组)
20210526 88. Merge Sorted Array(合并排好序的数组)
20210525 26. Remove Duplicates from Sorted Array(删除排序数组中的重复元素)
20210520 162. Find Peak Element(寻找峰值)
20210511 88. Merge Sorted Array(合并两个有序数组)
20201002 剑指offer-和为S的两个数字
20201001 剑指offer-和为S的连续正数序列
20200930 剑指offer-数组中只出现一次的数字
20200927 剑指offer-数字在升序数组中出现的次数
20200925 剑指offer-数组中的逆序对
20200909 剑指offer-顺时针打印矩阵
20200903 剑指Offer-调整数组顺序使奇数位于偶数前面
20200827 剑指offer-旋转数组中的最小数字
20200815 4. Median of Two Sorted Arrays(两个排序数组的中位数)
20200812 329. Longest Increasing Path in a Matrix(矩阵中最长增序列)
20201019 剑指offer-构建乘积数组
20200822 剑指offer-二维数组中的查找
20201015 剑指offer-数据流中的中位数
20200807 303. Range Sum Query - Immutable(数组范围内求和)
20200922 剑指offer-把数组排成最小的数
20200921 剑指offer-数组中1出现的次数
20200920 剑指offer-连续子数组的最大和
20200919 剑指offer-最小的K个数
20200918 剑指offer-数组中超过一半的数字
20201017 剑指offer-数组中的重复数字
20201106 69. Sqrt(x)(折半查找求根号)
20201113 剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
20201225 88. Merge Sorted Array(合并排序的数组)
20210102 55. Jump Game(跳到最后一格)
20210104 217. Contains Duplicate(数组重复元素)
20200807 303. Range Sum Query - Immutable(数组范围内求和)
20210127 48. Rotate Image(图像旋转)
20210126 215. Kth Largest Element in an Array(数组中第K个最大元素)
20210123 1095. Find in Mountain Array(查找山峰数组中的元素)
20210122 287. Find the Duplicate Number(发现重复元素)
20210119 168. Excel Sheet Column Title(Excel转换)
20210228 118. Pascal's Triangle(杨辉三角)
20210209 384. Shuffle an Array(打乱数组)
20210208 15. 3Sum(三个数字之和)
20210207 74. Search a 2D Matrix(寻找二维矩阵中的数字)
20210206 240. Search a 2D Matrix II(寻找二维矩阵中的数字)
20210329 215. Kth Largest Element in an Array(数组中的第K个最大元素)
20210331 39. Combination Sum(组合总和)
20210313 704. Binary Search(二分查找)
20210322 15. 3Sum(三数之和)
20210318 39. Combination Sum(组合总和)
20210316 88. Merge Sorted Array(合并两个有序数组)
20210305 46. Permutations(全排列)
20210302 1. Two Sum(两数之和)
20210301 119. Pascal's Triangle II(杨辉三角2)
20210307 84. Largest Rectangle in Histogram(柱状图最大矩形面积)
20210427 41. First Missing Positive(缺失的第一个正数)
20210424 200. Number of Islands(岛屿数量)
20210422 162. Find Peak Element(寻找峰值)
20210410 85. Maximal Rectangle(最大矩阵)
20210404 54. Spiral Matrix(螺旋矩阵)
20210416 56. Merge Intervals(合并区间)
20210407 42. Trapping Rain Water(接雨水)

位运算

参考解答 原题地址
20200902 剑指offer-数值的整数次方
20201007 剑指offer-不用加减乘除做加法
20201006 剑指offer-求1+2+3+...+n
20200901 剑指offer-二进制中1的个数

参考解答 原题地址
20221122 133. Clone Graph(克隆图)
20221122 133. Clone Graph(克隆图)
20220411 133. Clone Graph(图复制)
20210909 48. Rotate Image(旋转图像)
20210817 200. Number of Islands(岛屿数量)
20201026 剑指offer-机器人的运动范围
20201025 剑指offer-矩阵中的路径
20201105 62. Unique Paths(不同路径)
20210218 200. Number of Islands(查询岛屿的数量-dfs)
20210224 79. Word Search(单词查找-dfs)

细节实现题

参考解答 原题地址
20221223 468. Validate IP Address(验证IP地址)
20221222 224. Basic Calculator(基本计算器)
20221221 47. Permutations II(全排列2)
20221204 6. Zigzag Conversion(之字形转换)
20221203 59. Spiral Matrix II(螺旋矩阵2)
20221202 54. Spiral Matrix(螺旋矩阵)
20221201 119. Pascal's Triangle II(杨辉三角2)
20221130 118. Pascal's Triangle(杨辉三角)
20221129 30. Substring with Concatenation of All Words(串联所有单词的子串)
20221128 43. Multiply Strings(字符串相乘)
20221127 76. Minimum Window Substring(最小窗口子串)
20221126 56. Merge Intervals(合并区间)
20221125 57. Insert Interval(插入区间)
20221124 9. Palindrome Number(回文数)
20221123 7. Reverse Integer(整数反转)
20220620 50. Pow(x, n)(指数运算)
20220619 372. Super Pow(超级幂运算)
20220618 204. Count Primes(数素数)
20220608 41. First Missing Positive(寻找缺失的第一个正数-数学)
20220607 268. Missing Number(缺失的数字-位运算/数组)
20220425 149. Max Points on a Line(线上最多的点)
20220424 68. Text Justification(公平文本)
20220423 29. Divide Two Integers(整数相除)
20220422 6. Zigzag Conversion(之字形文本)
20220421 59. Spiral Matrix II(环形矩阵2)
20220420 54. Spiral Matrix(环形矩阵)
20220419 119. Pascal's Triangle II(杨辉三角2)
20220418 118. Pascal's Triangle(杨辉三角)
20220417 30. Substring with Concatenation of All Words(子字符串包含所有单词)
20220416 43. Multiply Strings(大数乘法)
20220415 76. Minimum Window Substring(最小子字符串区间)
20220414 57. Insert Interval(插入区间)
20220413 9. Palindrome Number(回文数)
20220412 7. Reverse Integer(整数反转)
20200828 剑指offer-斐波那契数列
20201005 剑指offer-孩子们的游戏-圆圈中剩下的数字
20201004 剑指offer-扑克牌顺子
20200831 剑指offer-矩形覆盖
20200820 剑指offer-剪绳子
20201129 146. LRU Cache
20201027 剑指offer-剪绳子
20210222 89. Gray Code

About

LeetCode & 剑指Offer(Java版);每天完成一个ARTS任务,分别为Algorithm(LeetCode),Review(点评技术文章/论文),Tip(技术技巧),Share(技术观点和思考); 欢迎大佬一起共建!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published