# DataStructure-Algorithm **Repository Path**: ilovemo/data-structure-algorithm ## Basic Information - **Project Name**: DataStructure-Algorithm - **Description**: 算法珠玑(Java版) - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 一、Array 1、[删除排序数组中的重复项(RemoveDuplicates)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/RemoveDuplicates.java) 2、[删除排序数组中的重复项 II(RemoveDuplicates2)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/RemoveDuplicates2.java) 3、[最长连续序列(LongestConsecutive)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/LongestConsecutive.java) 4、[两数之和(TwoSum)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/TwoSum.java) 5、[三数之和(ThreeSum)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ThreeSum.java) 6、[最接近的三数之和(ThreeSumClosest)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ThreeSumClosest.java) 7、[四数之和(FourSum)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/FourSum.java) 8、[移除元素(RemoveElement)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/RemoveElement.java) 9、[移动零(MoveZeroes)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/MoveZeroes.java) 10、[下一个排列(NextPermutation)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/NextPermutation.java) 11、[排列序列(PermutationSequence)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/PermutationSequence.java) 12、[有效的数独(ValidSudoku)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ValidSudoku.java) 13、[接雨水(Trap)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/Trap.java) 14、[旋转图像(RotateImage)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/RotateImage.java) 15、[加一(PlusOne)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/PlusOne.java) 16、[爬楼梯(ClimbStairs)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ClimbStairs.java) 17、[矩阵置零(SetMatrixZeroes)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/SetMatrixZeroes.java) 18、[加油站(GasStation)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/GasStation.java) 19、[分发糖果(Candy)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/Candy.java) 20、[多数元素(MajorityElement)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/MajorityElement.java) 21、[旋转数组(Rotate)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/Rotate.java) 22、[存在重复元素(ContainsDuplicate)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ContainsDuplicate.java) 23、[存在重复元素II(ContainsNearbyDuplicate)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ContainsNearbyDuplicate.java) 24、[存在重复元素III(ContainsNearbyAlmostDuplicate)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/ContainsNearbyAlmostDuplicate.java) 25、[生命游戏(GameOfLife)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/GameOfLife.java) 26、[递增的三元子序列(IncreasingTriplet)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/array/src/main/java/IncreasingTriplet.java) --- # 二、LinkList 1、[反转链表(ReverseList)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/linked-list/src/main/java/ReverseList.java) 2、[奇偶链表(OddEvenList)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/linked-list/src/main/java/OddEvenList.java) 3、[两数相加(AddTwoNumbers)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/linked-list/src/main/java/AddTwoNumbers.java) 4、[反转链表 II(ReverseBetween)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/linked-list/src/main/java/ReverseBetween.java) --- # 三、String 1、[验证回文串(ValidPalindrome)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/ValidPalindrome.java) 2、[实现 strStr()(ImplementStrstr)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/ImplementStrstr.java) 3、[把字符串转换成整数(Atoi)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/Atoi.java) 4、[二进制字符串相加(AddBinary)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/AddBinary.java) 5、[最长回文子串(LongestPalindrome)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/LongestPalindrome.java) 6、[正则表达式匹配(RegularExpressionMatching)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/RegularExpressionMatching.java) 7、[通配符匹配(WildcardMatching)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/WildcardMatching.java) 8、[最长公共前缀(LongestCommonPrefix)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/LongestCommonPrefix.java) 9、[有效数字(ValidNumber)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/ValidNumber.java) 10、[整数转罗马数字(IntToRoman)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/IntToRoman.java) 11、[罗马数字转整数(RomanToInt)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/RomanToInt.java) 12、[外观数列(CountAndSay)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/CountAndSay.java) 13、[字母异位词分组(GroupAnagrams)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/GroupAnagrams.java) 14、[有效的字母异位词(IsAnagram)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/IsAnagram.java) 15、[简化路径(SimplifyPath)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/SimplifyPath.java) 16、[旋转字符串(JunitString)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/JunitString.java) 17、[最后一个单词的长度(LengthOfLastWord)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/LengthOfLastWord.java) 18、[同构字符串(IsIsomorphic)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/IsIsomorphic.java) 19、[查找和替换模式(FindAndReplacePattern)](https://gitee.com/ilovemo/data-structure-algorithm/blob/master/string/src/main/java/FindAndReplacePattern.java)