# algorithm **Repository Path**: qq994300880/algorithm ## Basic Information - **Project Name**: algorithm - **Description**: 算法学习 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-03 - **Last Updated**: 2022-06-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 记录个人算法学习 ## Simple ### Integer 2019-08-31 => 476.数字的补数 [FindComplement.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/FindComplement.java) 2019-09-03 => 492.构造矩形 [ConstructRectangle.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/ConstructRectangle.java) 2019-09-06 => 504.七进制数 [ConvertToBase7.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/ConvertToBase7.java) 2019-09-08 => 507.完美数 [CheckPerfectNumber.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/CheckPerfectNumber.java) 2019-10-04 => 633.平方数之和 [JudgeSquareSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/JudgeSquareSum.java) 2019-10-14 => 693.交替位二进制数 [HasAlternatingBits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/HasAlternatingBits.java) 2019-11-13 => 728.自除数 [SelfDividingNumbers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/SelfDividingNumbers.java) 2019-11-16 => 762.二进制表示中质数个计算置位 [CountPrimeSetBits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/CountPrimeSetBits.java) 2019-11-16 => 754.到达终点数字 [ReachNumber.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/ReachNumber.java) 2019-11-26 => 788.旋转数字 [RotatedDigits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/RotatedDigits.java) 2019-12-15 => 868.二进制间距 [BinaryGap.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/BinaryGap.java) 2019-12-31 => 38.外观数列 [CountAndSay.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/CountAndSay.java) 2020-01-03 => 933.最近的请求次数 [RecentCounter.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/RecentCounter.java) 2020-01-14 => 970.强整数 [PowerfulIntegers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/PowerfulIntegers.java) 2020-02-02 => 1009.十进制整数的反码 [BitwiseComplement.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/BitwiseComplement.java) 2020-02-08 => 1025.除数博弈 [DivisorGame.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/DivisorGame.java) 2020-02-15 => 1175.质数排列 [NumPrimeArrangements.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/NumPrimeArrangements.java) 2020-02-18 => 1185.一周中的第几天 [DayOfTheWeek.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/DayOfTheWeek.java) 2020-02-25 => 1237.找出给定方程的正整数解 [FindSolution.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/FindSolution.java) 2020-03-01 => 1281.整数的各位积和之差 [SubtractProductAndSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/SubtractProductAndSum.java) 2020-03-06 => 1304.和为零的N个唯一整数 [SumZero.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/SumZero.java) 2020-03-09 => 1317.将整数转换为两个无零整数的和 [GetNoZeroIntegers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/GetNoZeroIntegers.java) 2020-03-10 => 1323.6和9组成的最大数字 [Maximum69Number.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/Maximum69Number.java) 2020-03-14 => 1342.将数字变成0的操作次数 [NumberOfSteps.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/NumberOfSteps.java) 2020-03-21 => 1374.生成每种字符都是奇数个的字符串 [GenerateTheString.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/GenerateTheString.java) 2020-04-05 => 5360.统计最大组的数目 [CountLargestGroup.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/CountLargestGroup.java) 2020-04-22 => 面试题05.01.插入 [InsertBits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/InsertBits.java) 2020-04-23 => 面试题05.03.翻转数位 [ReverseBits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/ReverseBits.java) 2020-04-24 => 面试题05.06.整数转换 [ConvertInteger.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/ConvertInteger.java) 2020-04-27 => 面试题05.07.配对交换 [ExchangeBits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/ExchangeBits.java) 2020-04-28 => 面试题08.01.三步问题 [WaysToStep.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/WaysToStep.java) 2020-05-06 => 面试题16.05.阶乘尾数 [TrailingZeroes.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/TrailingZeroes.java) 2020-05-07 => 面试题16.07.最大数值 [Maximum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/Maximum.java) 2020-05-08 => 面试题16.11.跳水板 [DivingBoard.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/DivingBoard.java) 2020-05-12 => 面试题17.01.不用加号的加法 [Add.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/Add.java) 2020-05-25 => 面试题10-I.斐波拉契数列 [Fib.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/Fib.java) 2020-05-26 => 面试题10-II.青蛙跳台阶问题 [NumWays.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/NumWays.java) 2020-05-27 => 面试题15. 二进制中1的个数 [HammingWeight.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/HammingWeight.java) 2020-05-27 => 面试题17. 打印从1到最大的n位数 [PrintNumbers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/PrintNumbers.java) 2020-06-21 => 1486. 数组异或操作 [XorOperation.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/XorOperation.java) 2020-06-26 => 剑指 Offer 60. n个骰子的点数 [TwoSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/TwoSum.java) 2020-06-30 => 剑指 Offer 62. 圆圈中最后剩下的数字 [LastRemaining.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/LastRemaining.java) 2020-07-02 => 剑指 Offer 65. 不用加减乘除做加法 [Add.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/Add.java) 2020-07-20 => 1518. 换酒问题 [NumWaterBottles.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/integer/NumWaterBottles.java) ### String 2019-09-02 => 482.密钥格式化 [LicenseKeyFormatting.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/LicenseKeyFormatting.java) 2019-09-07 => 520.检测大写字母 [DetectCapitalUse.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/DetectCapitalUse.java) 2019-09-07 => 521.最长特殊序列 I [FindLUSlength.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/FindLUSlength.java) 2019-09-14 => 541.反转字符串 II [ReverseStr2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReverseStr2.java) 2019-09-16 => 551.学生出勤记录 I [CheckRecord1.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CheckRecord1.java) 2019-09-21 => 557. 反转字符串中的单词 III [ReverseWords3.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReverseWords3.java) 2019-10-01 => 599.两个列表的最小索引总和 [FindRestaurant.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/FindRestaurant.java) 2019-10-08 => 657.机器人能否返回原点 [JudgeCircle.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/JudgeCircle.java) 2019-10-11 => 299.猜数字游戏 [GetHint.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/GetHint.java) 2019-10-12 => 680.验证回文字符串II [ValidPalindrome2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ValidPalindrome2.java) 2019-10-12 => 682.棒球比赛 [CalPoints.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CalPoints.java) 2019-10-13 => 686.重复叠加字符串匹配 [RepeatedStringMatch.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/RepeatedStringMatch.java) 2019-10-14 => 696.计数二进制子串 [CountBinarySubstrings.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CountBinarySubstrings.java) 2019-11-11 => 709.转换成小写字母 [ToLowerCase.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ToLowerCase.java) 2019-11-12 => 720.词典中最长的单词 [LongestWord.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/LongestWord.java) 2019-11-15 => 748.最短完整词 [ShortestCompletingWord.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ShortestCompletingWord.java) 2019-11-18 => 771.宝石与石头 [NumJewelsInStones.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/NumJewelsInStones.java) 2019-11-25 => 784.字母大小写全排列 [LetterCasePermutation.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/LetterCasePermutation.java) 2019-11-27 => 796.旋转字符串 [RotateString.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/RotateString.java) 2019-11-29 => 806.写字符串需要的行数 [NumberOfLines.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/NumberOfLines.java) 2019-12-02 => 819.最常见的单词 [MostCommonWord.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/MostCommonWord.java) 2019-12-03 => 821.字符的最短距离 [ShortestToChar.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ShortestToChar.java) 2019-12-04 => 824.山羊拉丁文 [ToGoatLatin.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ToGoatLatin.java) 2019-12-06 => 830.较大分组的位置 [LargeGroupPositions.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/LargeGroupPositions.java) 2019-12-09 => 844.比较含退格的字符串 [BackspaceCompare.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/BackspaceCompare.java) 2019-12-12 => 859.亲密字符串 [BuddyStrings.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/BuddyStrings.java) 2019-12-20 => 884.两句话中的不常见单词 [UncommonFromSentences.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/UncommonFromSentences.java) 2019-12-23 => 893.特殊等价字符串组 [NumSpecialEquivGroups.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/NumSpecialEquivGroups.java) 2019-12-29 => 917.仅仅反转字母 [ReverseOnlyLetters.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReverseOnlyLetters.java) 2020-01-01 => 925.长按键入 [IsLongPressedName.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/IsLongPressedName.java) 2020-01-02 => 929.独特的电子邮件地址 [NumUniqueEmails.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/NumUniqueEmails.java) 2020-01-04 => 937.重新排列日志文件 [ReorderLogFiles.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReorderLogFiles.java) 2020-01-07 => 942.增减字符串匹配 [DiStringMatch.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/DiStringMatch.java) 2020-01-08 => 944.删列造序 [MinDeletionSize.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/MinDeletionSize.java) 2020-01-11 => 953.验证外星语词典 [IsAlienSorted.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/IsAlienSorted.java) 2020-01-31 => 1002.查找常用字符 [CommonChars.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CommonChars.java) 2020-02-06 => 1021.删除最外层的括号 [RemoveOuterParentheses.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/RemoveOuterParentheses.java) 2020-02-11 => 1154.一年中的第几天 [DayOfYear.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/DayOfYear.java) 2020-02-13 => 1160.拼写单词 [CountCharacters.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CountCharacters.java) 2020-02-14 => 1170.比较字符串最小字母出现频次 [NumSmallerByFrequency.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/NumSmallerByFrequency.java) 2020-02-19 => 1189."气球"的最大数量 [MaxNumberOfBalloons.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/MaxNumberOfBalloons.java) 2020-02-23 => 1221.分割平衡字符串 [BalancedStringSplit.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/BalancedStringSplit.java) 2020-03-07 => 1309.解码字母到整数映射 [FreqAlphabets.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/FreqAlphabets.java) 2020-03-12 => 1332.删除回文子序列 [RemovePalindromeSub.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/RemovePalindromeSub.java) 2020-03-18 => 1360.日期之间隔几天 [DaysBetweenDates.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/DaysBetweenDates.java) 2020-03-20 => 1370.上升下降字符串 [SortString.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/SortString.java) 2020-03-27 => 面试题01.01.判定字符是否唯一 [IsUnique.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/IsUnique.java) 2020-03-28 => 面试题01.02.判定是否互为字符重排 [CheckPermutation.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CheckPermutation.java) 2020-03-30 => 面试题01.03.URL化 [ReplaceSpaces.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReplaceSpaces.java) 2020-03-31 => 面试题01.04.回文排列 [CanPermutePalindrome.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CanPermutePalindrome.java) 2020-04-01 => 面试题01.06.字符串压缩 [CompressString.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/CompressString.java) 2020-04-02 => 面试题01.09。字符串轮转 [IsFlipedString.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/IsFlipedString.java) 2020-04-21 => 1417.重新格式化字符串 [Reformat.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/Reformat.java) 2020-04-26 => 5392.分割字符串的最大得分 [MaxScore.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/MaxScore.java) 2020-05-09 => 面试题16.15.珠玑妙算 [MasterMind.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/MasterMind.java) 2020-05-17 => 5396.连续字符 [MaxPower.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/MaxPower.java) 2020-05-21 => 面试题05.替换空格 [ReplaceSpace.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReplaceSpace.java) 2020-05-24 => 5416.检查单词是否为句中其他单词的前缀 [IsPrefixOfWord.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/IsPrefixOfWord.java) 2020-06-12 => 面试题50. 第一个只出现一次的字符 [FirstUniqChar.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/FirstUniqChar.java) 2020-06-23 => 剑指 Offer 58 - I. 翻转单词顺序 [ReverseWords.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReverseWords.java) 2020-06-24 => 剑指 Offer 58 - II. 左旋转字符串 [ReverseLeftWords.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReverseLeftWords.java) 2020-06-29 => 1496. 判断路径是否相交 [IsPathCrossing.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/IsPathCrossing.java) 2020-07-17 => 1507. 转变日期格式 [ReformatDate.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/string/ReformatDate.java) ### Array 2019-09-03 => 485.最大连续1的个数 [FindMaxConsecutiveOnes.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindMaxConsecutiveOnes.java) 2019-09-04 => 496.下一个更大元素 I [NextGreaterElement.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NextGreaterElement.java) 2019-09-04 => 500.键盘行 [FindWords.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindWords.java) 2019-09-06 => 506.相对名次 [FindRelativeRanks.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindRelativeRanks.java) 2019-09-09 => 532.数组中的k-diif数对 [FindPairs.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindPairs.java) 2019-09-23 => 561.数组拆分 I [ArrayPairSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ArrayPairSum.java) 2019-09-25 => 563.二叉树的坡度 `FindTilt.java` 2019-09-25 => 566.重塑矩阵 [MatrixReshape.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MatrixReshape.java) 2019-09-27 => 575.分糖果 [DistributeCandies.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/DistributeCandies.java) 2019-09-28 => 581.最短无序连续子数组 [FindUnsortedSubarray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindUnsortedSubarray.java) 2019-09-29 => 594.最长和谐子序列 [FindLHS.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindLHS.java) 2019-09-30 => 605.种花问题 [CanPlaceFlowers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CanPlaceFlowers.java) 2019-10-06 => 643.子数组最大平均数 I [FindMaxAverage.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindMaxAverage.java) 2019-10-07 => 645.错误的集合 [FindErrorNums.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindErrorNums.java) 2019-10-08 => 661.图片平滑器 [ImageSmoother.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ImageSmoother.java) 2019-10-08 => 665.非递减数列 [CheckPossibility.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CheckPossibility.java) 2019-10-12 => 674.最长连续递增序列 [FindLengthOfLCIS.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindLengthOfLCIS.java) 2019-10-14 => 690.员工的重要性 [GetImportance.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/GetImportance.java) 2019-11-08 => 697.数组的度 [FindShortestSubArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindShortestSubArray.java) 2019-11-09 => 703.数据流中的第K大元素 [KthLargest.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/KthLargest.java) 2019-11-10 => 704.二分查找 [Search.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Search.java) 2019-11-11 => 717.1比特与2比特字符 [IsOneBitCharacter.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/IsOneBitCharacter.java) 2019-11-13 => 724.寻找数组的中心索引 [PivotIndex.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/PivotIndex.java) 2019-11-13 => 733.图像渲染 [FloodFill.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FloodFill.java) 2019-11-14 => 744.寻找比目标字母大的最小字母 [NextGreatestLetter.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NextGreatestLetter.java) 2019-11-14 => 746.使用最小花费爬楼梯 [MinCostClimbingStairs.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinCostClimbingStairs.java) 2019-11-15 => 747.至少是其他数字两倍的最大数 [DominantIndex.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/DominantIndex.java) 2019-11-17 => 766.托普利茨矩阵 [IsToeplitzMatrix.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/IsToeplitzMatrix.java) 2019-11-28 => 804.唯一摩尔斯密码词 [UniqueMorseRepresentations.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/UniqueMorseRepresentations.java) 2019-11-30 => 811.子域名访问计数 [SubdomainVisits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SubdomainVisits.java) 2019-12-01 => 812.最大三角形 [LargestTriangleArea.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/LargestTriangleArea.java) 2019-12-06 => 832.翻转图像 [FlipAndInvertImage.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FlipAndInvertImage.java) 2019-12-07 => 836.矩形重叠 [IsRectangleOverlap.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/IsRectangleOverlap.java) 2019-12-08 => 840.矩阵中的幻方 [NumMagicSquaresInside.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NumMagicSquaresInside.java) 2019-12-10 => 849.到最近的人的最大距离 [MaxDistToClosest.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MaxDistToClosest.java) 2019-12-11 => 852.山脉数组的峰顶索引 [PeakIndexInMountainArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/PeakIndexInMountainArray.java) 2019-12-13 => 860.柠檬水找零 [LemonadeChange.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/LemonadeChange.java) 2019-12-14 => 867.转置矩阵 [Transpose.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Transpose.java) 2019-12-17 => 874.模拟行走机器人 [RobotSim.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/RobotSim.java) ~~最后一个用例没通过~~ 2019-12-19 => 883.二维形体投影面积 [ProjectionArea.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ProjectionArea.java) 2019-12-21 => 888.公平的糖果交换 [FairCandySwap.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FairCandySwap.java) 2019-12-22 => 892.三维形体的表面积 [SurfaceArea.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SurfaceArea.java) 2019-12-24 => 896.单调数列 [IsMonotonic.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/IsMonotonic.java) 2019-12-26 => 905.按奇偶排序数组 [SortArrayByParity.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SortArrayByParityII.java) 2019-12-27 => 908.最小差值I [SmallestRangeI.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SmallestRangeI.java) 2019-12-28 => 914.卡牌分组 [HasGroupsSizeX.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/HasGroupsSizeX.java) 2019-12-30 => 922.按奇偶排序数组II [SortArrayByParityII.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SortArrayByParityII.java) 2020-01-06 => 941.有效的山脉数组 [ValidMountainArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ValidMountainArray.java) 2020-01-10 => 949.给定数字能组成的最大时间 [LargestTimeFromDigits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/LargestTimeFromDigits.java) 2020-01-12 => 961.重复N次的元素 `RepeatedNTimes.java` 2020-01-15 => 976.三角形的最大周长 [LargestPerimeter.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/LargestPerimeter.java) 2020-01-17 => 977.有序数组的平方 [SortedSquares.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SortedSquares.java) 2020-01-18 => 985.查询后的偶数和 [SumEvenAfterQueries.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SumEvenAfterQueries.java) 2020-01-18 => 989.数组形式的整数加法 [AddToArrayForm.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/AddToArrayForm.java) 2020-01-28 => 994.腐烂的橘子 [OrangesRotting.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/OrangesRotting.java) 2020-01-29 => 997.找到小镇的法官 [FindJudge.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindJudge.java) 2020-01-30 => 999.车的可用捕获量 [NumRookCaptures.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NumRookCaptures.java) 2020-02-01 => 1005.K次取反后最大化的数组和 [LargestSumAfterKNegations.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/LargestSumAfterKNegations.java) 2020-02-03 => 1010.总持续时间可被60整除的歌曲 [NumPairsDivisibleBy60.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NumPairsDivisibleBy60.java) 2020-02-04 => 1013.将数组分成和相等的三个部分 [CanThreePartsEqualSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CanThreePartsEqualSum.java) 2020-02-05 => 1018.可被5整除的二进制前缀 [PrefixesDivBy5.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/PrefixesDivBy5.java) 2020-02-09 => 1030.距离顺序排列矩阵单元格 [AllCellsDistOrder.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/AllCellsDistOrder.java) 2020-02-10 => 1042.不邻接植花 [GardenNoAdj.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/GardenNoAdj.java) 2020-02-17 => 1184.公交站间的距离 [DistanceBetweenBusStops.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/DistanceBetweenBusStops.java) 2020-02-20 => 1200.最小绝对差 [MinimumAbsDifference.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinimumAbsDifference.java) 2020-02-21 => 1207.独一无二的出现次数 [UniqueOccurrences.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/UniqueOccurrences.java) 2020-02-22 => 1217.玩筹码 [MinCostToMoveChips.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinCostToMoveChips.java) 2020-02-24 => 1232.缀点成线 [CheckStraightLine.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CheckStraightLine.java) 2020-02-26 => 1252.奇数值单元格的数目 [OddCells.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/OddCells.java) 2020-02-27 => 1260.二维网格迁移 [ShiftGrid.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ShiftGrid.java) 2020-02-28 => 1266.访问所有点的最小时间 [MinTimeToVisitAllPoints.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinTimeToVisitAllPoints.java) 2020-02-29 => 1275.找出井字棋的获胜者 [Tictactoe.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Tictactoe.java) 2020-03-02 => 1287.有序数组中出现次数超过25%的元素 [FindSpecialInteger.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindSpecialInteger.java) 2020-03-04 => 1295.统计位数为偶数的数字 [FindNumbers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindSpecialInteger.java) 2020-03-05 => 1299.将每个元素替换为右侧最大元素 [ReplaceElements.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ReplaceElements.java) 2020-03-08 => 1313.解压缩编码列表 [DecompressRLElist.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/DecompressRLElist.java) 2020-03-11 => 1331.数组序号转换 [ArrayRankTransform.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ArrayRankTransform.java) 2020-03-13 => 1337.方阵中战斗力最弱的K行 [KWeakestRows.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/KWeakestRows.java) 2020-03-15 => 1346.检查整数及其两倍数是否存在 [CheckIfExist.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CheckIfExist.java) 2020-03-16 => 1351.统计有序矩阵中的负数 [CountNegatives.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CountNegatives.java) 2020-03-17 => 1356.根据数字二进制下1的数目排序 [SortByBits.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SortByBits.java) 2020-03-19 => 1365.有多少小于当前数字的数字 [SmallerNumbersThanCurrent.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SmallerNumbersThanCurrent.java) 2020-03-22 => 1380.矩阵中的幸运数 [LuckyNumbers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/LuckyNumbers.java) 2020-03-23 => 1385.两个数组间的距离值 [FindTheDistanceValue.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindTheDistanceValue.java) 2020-03-24 => 1389.按既定顺序创建目标数组 [CreateTargetArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CreateTargetArray.java) 2020-03-25 => LCP1.猜数字 [Game.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Game.java) 2020-03-26 => LCP2.分式化简 [Fraction.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Fraction.java) 2020-03-29 => 5368.找出数组中的幸运数 [FindLucky.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindLucky.java) 2020-04-06 => 1403.非递增顺序的最小子序列 [MinSubsequence.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinSubsequence.java) 2020-04-12 => 5380.数组中的字符串匹配 [StringMatching.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/StringMatching.java) 2020-04-18 => LCP06.拿硬币 [MinCount.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinCount.java) 2020-04-19 => 5372.逐步求和得到正数的最小值 [MinStartValue.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinStartValue.java) 2020-04-21 => LCP07.传递信息 [NumWays.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NumWays.java) 2020-04-25 => LCP11.期望个数统计 [ExpectNumber.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ExpectNumber.java) 2020-04-29 => 面试题08.03.魔术索引 [FindMagicIndex.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindMagicIndex.java) 2020-05-01 => 面试题08.10.颜色填充 [FloodFill2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FloodFill2.java) 2020-05-02 => 面试题10.01.合并排序的数组 [Merge.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Merge.java) 2020-05-03 => 5384.拥有最多糖果的孩子 [KidsWithCandies.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/KidsWithCandies.java) 2020-05-05 => 面试题10.05.稀疏数组搜索 [FindString.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindString.java) 2020-05-10 => 5404.用栈操作构建数组 [BuildArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/BuildArray.java) 2020-05-11 => 面试题16.17.连续数列 [MaxSubArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MaxSubArray.java) 2020-05-13 => 面试题17.04.消失的数字 [MissingNumber.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MissingNumber.java) 2020-05-14 => 面试题17.10.主要元素 [MajorityElement.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MajorityElement.java) 2020-05-16 => 面试题17.16.按摩师 [Massage.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Massage.java) 2020-05-18 => 1450.在既定时间做作业的学生人数 [BusyStudent.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/BusyStudent.java) 2020-05-19 => 面试题03.数组中重复的数字 [FindRepeatNumber.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindRepeatNumber.java) 2020-05-20 => 面试题04.二维数组中的查找 [FindNumberIn2DArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindNumberIn2DArray.java) 2020-05-27 => 面试题11.旋转数组的最小数字 [MinArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MinArray.java) 2020-05-28 => 面试题21. 调整数组顺序使奇数位于偶数前面 [Exchange.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Exchange.java) 2020-05-31 => 5408. 通过翻转子数组使两个数组相等 [CanBeEqual.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CanBeEqual.java) 2020-06-01 => 1464. 数组中两元素的最大乘积 [MaxProduct.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MaxProduct.java) 2020-06-06 => 面试题29. 顺时针打印矩阵 [SpiralOrder.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/SpiralOrder.java) 2020-06-07 => 5428. 重新排列数组 [Shuffle.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Shuffle.java) 2020-06-08 => 面试题39. 数组中出现次数超过一半的数字 [MajorityElement.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MajorityElement.java) 2020-06-09 => 面试题40. 最小的k个数 [GetLeastNumbers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/GetLeastNumbers.java) 2020-06-10 => 面试题42. 连续子数组的最大和 [MaxSubArray.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MaxSubArray.java) 2020-06-13 => 面试题53 - I. 在排序数组中查找数字 I [Search2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Search2.java) 2020-06-13 => 面试题53 - II. 0~n-1中缺失的数字 [MissingNumber.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MissingNumber.java) 2020-06-14 => 5420. 商品折扣后的最终价格 [FinalPrices.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FinalPrices.java) 2020-06-15 => 1480. 一维数组的动态和 [RunningSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/RunningSum.java) 2020-06-19 => 剑指 Offer 57. 和为s的两个数字 [TwoSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/TwoSum.java) 2020-06-20 => 剑指 Offer 57 - II. 和为s的连续正数序列 [FindContinuousSequence.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/FindContinuousSequence.java) 2020-06-25 => 剑指 Offer 59 - I. 滑动窗口的最大值 [MaxSlidingWindow.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/MaxSlidingWindow.java) 2020-06-27 => 剑指 Offer 61. 扑克牌中的顺子 [IsStraight.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/IsStraight.java) 2020-06-28 => 5432. 去掉最低工资和最高工资后的工资平均值 [Average.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/Average.java) 2020-07-08 => 1502. 判断能否形成等差数列 [CanMakeArithmeticProgression.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/CanMakeArithmeticProgression.java) 2020-07-18 => 1512. 好数对的数目 [NumIdenticalPairs.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/NumIdenticalPairs.java) 2020-07-21 => 剑指 Offer 66. 构建乘积数组 [ConstructArr.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/array/ConstructArr.java) ### Tree 2019-09-05 => 501.二叉搜索树中的众数 [FindMode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/FindMode.java) 2019-09-09 => 530.二叉搜索树的最小绝对差 [GetMinimumDifference.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/GetMinimumDifference.java) 2019-09-10 => 538.把二叉搜索树转换为累加树 [ConvertBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/ConvertBST.java) 2019-09-15 => 543.二叉树的直径 [DiameterOfBinaryTree.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/DiameterOfBinaryTree.java) 2019-09-22 => 558.四叉树交集 [Intersect.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/Intersect.java) 2019-09-23 => 559.N叉树的最大深度 [MaxDepth.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/MaxDepth.java) 2019-09-26 => 572.另一个树的子树 [IsSubtree.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IsSubtree.java) 2019-09-28 => 589.N叉树的前序遍历 [Preorder.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/Preorder.java) 2019-09-28 => 590.N叉树的后序遍历 [Postorder.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/Postorder.java) 2019-09-30 => 617.合并二叉树 [MergeTrees.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/MergeTrees.java) 2019-10-01 => 606.根据二叉树创建字符串 [Tree2str.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/Tree2str.java) 2019-10-05 => 637.二叉树的层平均值 [AverageOfLevels.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/AverageOfLevels.java) 2019-10-08 => 653.两数之和 IV [FindTarget4.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/FindTarget4.java) 2019-10-11 => 669.修剪二叉搜索树 [TrimBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/TrimBST.java) 2019-10-11 => 671.二叉树中第二小的节点 [FindSecondMinimumValue.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/FindSecondMinimumValue.java) 2019-10-14 => 687.最长同值路径 [LongestUnivaluePath.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/LongestUnivaluePath.java) 2019-11-08 => 700.二叉搜索树中的搜索 [SearchBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/SearchBST.java) 2019-11-24 => 783.二叉搜索树结点最小距离 [MinDiffInBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/MinDiffInBST.java) 2019-12-17 => 872.叶子相似的树 [LeafSimilar.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/LeafSimilar.java) 2019-12-25 => 897.递增顺序查找树 [IncreasingBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IncreasingBST.java) 2020-01-05 => 938.二叉搜索树的范围和 [RangeSumBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/RangeSumBST.java) 2020-01-14 => 965.单值二叉树 [IsUnivalTree.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IsUnivalTree.java) 2020-01-20 => 993.二叉树的堂兄弟节点 [IsCousins.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IsCousins.java) 2020-02-07 => 1022.从根到叶的二进制数之和 [SumRootToLeaf.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/SumRootToLeaf.java) 2020-04-15 => 面试题04.02.最小高度树 [SortedArrayToBST.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/SortedArrayToBST.java) 2020-04-17 => 面试题04.04.检查平衡性 [IsBalanced.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IsBalanced.java) 2020-05-15 => 面试题17.12.BiNode [ConvertBiNode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/ConvertBiNode.java) 2020-06-03 => 面试题27. 二叉树的镜像 [MirrorTree.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/MirrorTree.java) 2020-06-04 => 面试题28. 对称的二叉树 [IsSymmetric.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IsSymmetric.java) 2020-06-05 => 面试题32 - II. 从上到下打印二叉树 II [LevelOrder.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/LevelOrder.java) 2020-06-16 => 面试题54. 二叉搜索树的第k大节点 [KthLargest.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/KthLargest.java) 2020-06-17 => 面试题55 - I. 二叉树的深度 [MaxDepth2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/MaxDepth2.java) 2020-06-18 => 面试题55 - II. 平衡二叉树 [IsBalanced.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/IsBalanced.java) 2020-07-24 => 面试题68 - I. 二叉搜索树的最近公共祖先 [LowestCommonAncestor.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/tree/LowestCommonAncestor.java) ### Hash 2019-11-10 => 705.设计哈希集合 [MyHashSet.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/hash/MyHashSet.java) 2019-11-11 => 706.设计哈希映射 [MyHashMap.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/hash/MyHashMap.java) [基于两个数组](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/hash/MyHashMap2.java) ### SQL 2019-09-30 => 595.大的国家 [BigCountry.sql](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/sql/BigCountry.sql) 2019-09-30 => 596.超过5名学生的课 [LessonForMoreThanFive.sql](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/sql/LessonForMoreThanFive.sql) 2019-10-02 => 620.有趣的电影 [InterestingMovie.sql](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/sql/InterestingMovie.sql) 2019-10-03 => 627.交换工资 [ExchangeSalary.sql](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/sql/ExchangeSalary.sql) 2020-02-17 => 1179.重新格式化部门表 [ReformattingTheDepartmentTable.sql](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/sql/ReformattingTheDepartmentTable.sql) ### List 2019-12-18 => 876.链表的中间结点 [MiddleNode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/MiddleNode.java) 2020-03-03 => 1290.二进制链表转整数 [GetDecimalValue.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/GetDecimalValue.java) 2020-04-03 => 面试题02.01.移除重复节点 [RemoveDuplicateNodes.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/RemoveDuplicateNodes.java) 2020-04-04 => 面试题02.02.返回倒数第K个节点 [KthToLast.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/KthToLast.java) 2020-04-07 => 面试题02.03.删除中间节点 [DeleteNode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/DeleteNode.java) 2020-04-08 => 面试题02.06.回文链表 [IsPalindrome.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/IsPalindrome.java) 2020-04-09 => 面试题02.07.链表相交 [GetIntersectionNode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/GetIntersectionNode.java) 2020-04-30 => 面试题08.06.汉诺塔问题 [Hanota.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/Hanota.java) 2020-05-04 => 1436.旅行终点站 [DestCity.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/DestCity.java) 2020-05-22 => 面试题06.从尾到头打印链表 [ReversePrint.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/ReversePrint.java) 2020-05-27 => 面试题18. 删除链表的节点 [DeleteNode2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/DeleteNode2.java) 2020-05-29 => 面试题22. 链表中倒数第k个节点 [GetKthFromEnd.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/GetKthFromEnd.java) 2020-05-30 => 面试题24. 反转链表 [ReverseList.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/ReverseList.java) 2020-06-02 => 面试题25. 合并两个排序的链表 [MergeTwoLists.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/MergeTwoLists.java) 2020-06-12 => 面试题52. 两个链表的第一个公共节点 [GetIntersectionNode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/list/GetIntersectionNode.java) ### Stack 2020-04-10 => 面试题03.01.三合一 [TripleInOne.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/stack/TripleInOne.java) 2020-04-11 => 面试题03.02.栈的最小值 [MinStack.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/stack/MinStack.java) 2020-04-13 => 面试题03.04.化栈为队 [MyQueue.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/stack/MyQueue.java) 2020-05-23 => 面试题09.用两个栈实现队列 [CQueue.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/stack/CQueue.java) [CQueue.java(利用数组)](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/stack/CQueue2.java) ### Queue 2020-04-14 => 面试题03.06.动物收容所 [AnimalShelf.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/queue/AnimalShelf.java) ### Thread 2020-02-12 => 1114.按序打印 [Foo.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/simple/thread/Foo.java) ## Medium ### Integer 2020-07-26 => 2. 两数相加 [AddTwoNumbers.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/AddTwoNumbers.java) 2020-07-31 => 12. 整数转罗马数字 [IntToRoman.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/IntToRoman.java) 2020-08-07 => 22. 括号生成 [GenerateParenthesis.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/GenerateParenthesis.java) 2020=08-09 => 29. 两数相除 [Divide.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/Divide.java) 2020-08-25 => 50. Pow(x, n) [MyPow.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/MyPow.java) 2020-08-31 => 59. 螺旋矩阵 II [GenerateMatrix.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/GenerateMatrix.java) 2020-09-01 => 60. 第k个排列 [GetPermutation.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/GetPermutation.java) 2020-09-04 => 62. 不同路径 [UniquePaths.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/UniquePaths.java) 2020-09-16 => 77. 组合 [Combine.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/Combine.java) 2020-09-23 => 89. 格雷编码 [GrayCode.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/integer/GrayCode.java) ### String 2020-07-27 => 3. 无重复字符的最长子串 [LengthOfLongestSubstring.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/LengthOfLongestSubstring.java) 2020-07-28 => 6. Z 字形变换 [Convert.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/Convert.java) 2020-07-29 => 8. 字符串转换整数(atoi) [MyAtoi.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/MyAtoi.java) 2020-08-04 => 17. 电话号码的字母组合 [LetterCombinations.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/LetterCombinations.java) 2020-08-16 => 43. 字符串相乘 [Multiply.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/Multiply.java) 2020-09-08 => 71. 简化路径 [SimplifyPath.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/SimplifyPath.java) 2020-10-01 => 91. 解码方法 [NumDecodings.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/NumDecodings.java) 2020-10-09 => 93. 复原IP地址 [RestoreIpAddresses.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/string/RestoreIpAddresses.java) ### Array 2020-07-30 => 11. 盛最多水的容器 [MaxArea.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/MaxArea.java) 2020-08-01 => 15. 三数之和 [ThreeSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/ThreeSum.java) 2020-08-03 => 16. 最接近的三数之和 [ThreeSumClosest.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/ThreeSumClosest.java) 2020-08-05 => 18. 四数之和 [FourSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/FourSum.java) 2020-08-11 => 31. 下一个排列 [NextPermutation.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/NextPermutation.java) 2020-08-12 => 33. 搜索旋转排序数组 [Search.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/Search.java) 2020-08-13 => 34. 在排序数组中查找元素的第一个和最后一个位置 [SearchRange.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/SearchRange.java) 2020-08-14 => 39. 组合总和 [CombinationSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/CombinationSum.java) 2020-08-15 => 40. 组合总和 II [CombinationSum2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/CombinationSum2.java) 2020-08-21 => 46. 全排列 [Permute.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/Permute.java) 2020-08-23 => 47. 全排列 II [PermuteUnique.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/PermuteUnique.java) 2020-08-24 => 49. 字母异位词分组 [GroupAnagrams.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/GroupAnagrams.java) 2020-08-27 => 54. 螺旋矩阵 [SpiralOrder.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/SpiralOrder.java) 2020-08-28 => 55. 跳跃游戏 [CanJump.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/CanJump.java) 2020-08-29 => 56. 合并区间 [Merge.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/Merge.java) 2020-09-05 => 63. 不同路径 II [UniquePathsWithObstacles.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/UniquePathsWithObstacles.java) 2020-09-07 => 64. 最小路径和 [MinPathSum.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/MinPathSum.java) 2020-09-09 => 73. 矩阵置零 [SetZeroes.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/SetZeroes.java) 2020-09-13 => 74. 搜索二维矩阵 [SearchMatrix.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/SearchMatrix.java) 2020-09-14 => 75. 颜色分类 [SortColors.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/SortColors.java) 2020-09-17 => 78. 子集 [Subsets.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/Subsets.java) 2020-09-18 => 79. 单词搜索 [Exist.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/Exist.java) 2020-09-19 => 80. 删除排序数组中的重复项 II [RemoveDuplicates.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/RemoveDuplicates.java) 2020-09-20 => 81. 搜索旋转排序数组 II [Search2.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/Search2.java) 2020-09-30 => 90. 子集 II [SubsetsWithDup.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/array/SubsetsWithDup.java) ### List 2020-08-06 => 19. 删除链表的倒数第N个节点 [RemoveNthFromEnd.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/RemoveNthFromEnd.java) 2020-08-08 => 24. 两两交换链表中的节点 [SwapPairs.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/SwapPairs.java) 2020-09-03 => 61. 旋转链表 [RotateRight.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/RotateRight.java) 2020-09-21 => 82. 删除排序链表中的重复元素 II [DeleteDuplicates.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/DeleteDuplicates.java) 2020-09-22 => 86. 分隔链表 [Partition.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/Partition.java) 2020-10-07 => 92. 反转链表 II [ReverseBetween.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/ReverseBetween.java) ### Tree 2020-10-12 => 94. 二叉树的中序遍历 [InorderTraversal.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/InorderTraversal.java) 2020-10-16 => 95. 不同的二叉搜索树 II [GenerateTrees.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/GenerateTrees.java) 2020-10-24 => 96. 不同的二叉搜索树 [NumTrees.java](https://gitee.com/qq994300880/algorithm/blob/master/src/com/youngdream/algorithm/medium/list/NumTrees.java)