├── .gitignore └── src ├── class001 ├── Code01_PosArrayToBST.java └── Code02_ContainAllCharExactly.java ├── class002 ├── Code01_MakeNo.java └── Code02_KthMinPair.java ├── class003 ├── Code01_LongestNoRepeatSubstring.java ├── Code02_HowManyTypes.java └── Code03_SubsquenceMaxModM.java ├── class004 ├── Code01_QueryHobby.java └── Code02_MergeRecord.java ├── class005 ├── Code01_RotateString.java └── Code02_RestoreWays.java ├── class006 ├── Code01_Power2Diffs.java └── Code02_Water.java ├── class007 ├── Code01_RandToRand.java ├── Code02_EqualProbabilityRandom.java ├── Code03_FindHalfMajority.java └── Code04_FindKMajor.java ├── class008 ├── Code01_JumpGameII.java └── Code02_LongestConsecutiveSequence.java ├── class009 ├── Code01_SetMatrixZeroes.java ├── Code02_SearchA2DMatrixII.java └── Code03_LongestOnes.java ├── class010 ├── Code01_SwapWithoutTmp.java ├── Code02_GetMax.java └── Code03_EvenTimesOddTimes.java ├── class011 ├── Code01_CopyListWithRandom.java └── Code02_JumpMinTimes.java ├── class012 └── Code01_MoneyProblem.java ├── class013 ├── Code01_PalindromeNumber.java └── Code03_LongestNoRepeatSubstring.java ├── class014 ├── Code01_CoverMax.java └── Code02_MaxDistance.java ├── class015 ├── Code01_CordCoverMaxPoint.java ├── Code02_ColorLeftRight.java ├── Code03_MaxABSBetweenLeftAndRight.java └── Code04_TrappingRainWater.java ├── class016 ├── Code01_RandToRand.java ├── Code02_EqualProbabilityRandom.java ├── Code03_FindHalfMajority.java └── Code04_FindKMajor.java ├── class017 ├── Code01_SubArrayMaxSum.java └── Code02_SubMatrixMaxSum.java ├── class018 ├── Code01_SqrtX.java ├── Code02_PowXN.java └── Code03_ContainerWithMostWater.java ├── class019 ├── Code01_RotateImage.java ├── Code02_ZigZagPrintMatrix.java └── Code03_PrintStar.java ├── class020 ├── Code01_RotateString.java ├── Code02_HowManyTypes.java ├── Code03_LongestNoRepeatSubstring.java ├── Code04_CoverMax.java └── Code05_MakeNo.java ├── class021 ├── Code01_SwapWithoutTmp.java ├── Code02_GetMax.java └── Code03_EvenTimesOddTimes.java ├── class022 ├── Code01_MinSwapStep.java ├── Code02_CountFiles.java └── Code03_Cola.java ├── class023 └── Code01_FindHalfMajority.java ├── class024 ├── Code01_RotateImage.java ├── Code02_ZigZagPrintMatrix.java └── Code03_PrintStar.java ├── class025 ├── Code01_Water.java ├── Code02_RandToRand.java └── Code03_EqualProbabilityRandom.java ├── class026 ├── Code01_SubArrayMaxSum.java ├── Code02_SubArrayMaxSumFollowUp.java └── Code03_SubMatrixMaxSum.java ├── class027 ├── Code01_MinSwapStep.java ├── Code02_CountFiles.java └── Code03_Cola.java ├── class028 ├── Code01_RotateString.java ├── Code02_HowManyTypes.java ├── Code03_LongestNoRepeatSubstring.java └── Code04_CoverMax.java ├── class029 ├── Code01_AppleMinBags.java ├── Code02_EatGrass.java └── Code03_MaxLeftMaxRight.java ├── class030 ├── Code01_IsPalindrome.java ├── Code02_MySqrt.java ├── Code03_UglyNumber.java └── Code04_EnterLoopNode.java ├── class031 ├── Code01_SwapWithoutTmp.java ├── Code02_AddMinus.java ├── Code03_GetMax.java └── Code04_MissingNumber.java ├── class032 ├── Code01_BinaryTreeLevelOrderTraversal.java ├── Code01_BinaryTreeLevelOrderTraversalII.java ├── Code02_ConstructBinaryTreeFromPreorderAndInorderTraversal.java ├── Code03_PaperFolding.java └── Code04_DiameterOfBinaryTree.java ├── class033 ├── Code01_FindHalfMajority.java ├── Code02_RotateImage.java ├── Code03_ZigZagPrintMatrix.java └── Code04_PrintStar.java ├── class034 ├── Code01_Water.java ├── Code02_RandToRand.java ├── Code03_EqualProbabilityRandom.java ├── Code04_EvenTimesOddTimes.java └── Code05_MakeNo.java ├── class035 ├── Code01_UglyNumber.java ├── Code02_MakeNo.java └── Code03_CoverMax.java ├── class036 ├── Code01_LongestNoRepeatSubstring.java ├── Code02_CordCoverMaxPoint.java └── Code03_ColorLeftRight.java ├── class037 ├── Code01_MaxABSBetweenLeftAndRight.java ├── Code02_JumpGameII.java └── Code03_FindHalfMajority.java ├── class038 ├── Code01_SubArrayMaxSum.java ├── Code02_MaxSumFollowUp.java ├── Code03_MaxSumNoAdjoin.java └── Code04_MissingNumber.java ├── class039 ├── Code01_Water.java ├── Code02_RandToRand.java ├── Code03_EqualProbabilityRandom.java ├── Code04_EvenTimesOddTimes.java └── Code05_KM.java ├── class040 ├── Code01_PalindromeNumber.java ├── Code02_MaximumProductSubarray.java ├── Code03_CoverMax.java └── Code04_KM.java ├── class041 ├── Code01_LongestNoRepeatSubstring.java ├── Code02_CordCoverMaxPoint.java ├── Code03_MaxABSBetweenLeftAndRight.java └── Code04_KM.java ├── class042 ├── Code02_ContainAllCharExactly.java └── Code03_FindHalfMajority.java ├── class043 ├── Code01_AppleMinBags.java ├── Code02_SplitNumber.java ├── Code03_EatGrass.java └── Code04_FindOddTimesNumber.java ├── class044 ├── Code01_SubArrayMaxSum.java ├── Code02_MaxSumFollowUp.java └── Code03_MaxSumNoAdjoin.java ├── class045 ├── Code01_MaxLeftMaxRight.java ├── Code02_RotateImage.java ├── Code03_ZigZagPrintMatrix.java └── Code04_MissingNumber.java ├── class046 ├── Code01_MergeKSortedLists.java ├── Code02_LongestNoRepeatSubstring.java └── Code03_CordCoverMaxPoint.java ├── class047 ├── Code01_Water.java ├── Code02_RandToRand.java ├── Code03_EqualProbabilityRandom.java └── Code04_EvenTimesOddTimes.java ├── class048 ├── Code01_SubArrayMaxSum.java ├── Code02_MaxSumFollowUp.java └── Code03_MaxSumNoAdjoin.java ├── class049 ├── Code01_AppleMinBags.java ├── Code02_SplitNumber.java └── Code03_EatGrass.java ├── class050 ├── Code01_HowManyTypes.java ├── Code02_CordCoverMaxPoint.java ├── Code03_FindHalfMajority.java ├── Code04_ZigZagPrintMatrix.java └── Code05_RotateImage.java ├── class051 ├── Code01_LongestNoRepeatSubstring.java └── Code02_CoverMax.java ├── class052 ├── Code01_EvenTimesOddTimes.java ├── Code02_KM.java ├── Code03_UglyNumber.java └── Code04_MakeNo.java ├── class053 ├── Code01_BestTimeToBuyAndSellStock.java ├── Code02_BestTimeToBuyAndSellStockII.java ├── Code03_BestTimeToBuyAndSellStockIII.java ├── Code04_RabbitsInForest.java ├── Code05_LIS.java └── Code06_EnvelopesProblem.java ├── class054 ├── Code01_FindHalfMajority.java ├── Code02_PalindromeNumber.java ├── Code03_Water.java └── Code04_JumpGameII.java ├── class055 ├── Code01_LongestNoRepeatSubstring.java ├── Code02_SubArrayMaxSum.java ├── Code03_MaximumProductSubarray.java └── Code04_PaperFolding.java ├── class056 ├── Code01_MissingNumber.java ├── Code02_RabbitsInForest.java ├── Code03_LIS.java └── Code04_EnvelopesProblem.java ├── class057 ├── Code01_MagicStone.java ├── Code02_CircleCandy.java ├── Code03_ComputeExpressionValue.java └── Code04_Ratio01Split.java ├── class058 ├── Code01_MinBoatEvenNumbers.java ├── Code02_MaxKLenSequence.java └── Code03_StoneGameIV.java ├── class059 ├── Code01_MagicStone.java ├── Code02_CircleCandy.java ├── Code03_MinBoatEvenNumbers.java ├── Code04_StringKth.java ├── Code05_SubarraySumEqualsK.java └── Code06_Ratio01Split.java ├── class060 ├── Code01_MinSwapTimes.java ├── Code02_MaxMeetingScore.java ├── Code03_NextPermutation.java └── Code04_SequenceKDifferentKinds.java ├── class061 ├── Code01_HashFunction.java ├── Code02_FillGapMinStep.java └── Code03_Mod3Max.java ├── class062 ├── Code01_MonotonousStack.java ├── Code02_LargestRectangleInHistogram.java ├── Code03_ValidSequence.java └── Code04_MaxKLenSequence.java ├── class063 ├── Code01_SumNoPositiveMinCost.java └── Code02_SplitBuildingBlock.java ├── class064 ├── Code01_LIS.java ├── Code02_EnvelopesProblem.java ├── Code03_MinSwapTimes.java └── Code04_PoemProblem.java ├── class065 ├── Code01_CoverMax.java ├── Code02_Heaters.java ├── Code03_TrappingRainWater.java └── Code04_CombinationSumIV.java ├── class066 ├── Code01_BestTimeToBuyAndSellStock.java ├── Code02_BestTimeToBuyAndSellStockII.java ├── Code03_BestTimeToBuyAndSellStockIII.java ├── Code04_SplitArrayLargestSum.java └── Code05_KokoEatingBananas.java ├── class067 ├── Code01_IsStepSum.java ├── Code02_KokoEatingBananas.java ├── Code03_SplitArrayLargestSum.java ├── Code04_MinimumWindowSubstring.java └── Code05_SubarraysWithKDifferentIntegers.java ├── class068 ├── Code01_MagicStone.java ├── Code02_CircleCandy.java └── Code03_MinBoatEvenNumbers.java ├── class069 ├── Code01_Hash.java └── Code02_BitMap.java ├── class070 ├── Code01_FindTheCelebrity.java ├── Code02_AvoidFloodInTheCity.java ├── Code03_BurstBalloons.java └── SuperWaterKing.java ├── class071 ├── Code01_CoverMax.java ├── Code02_Heaters.java ├── Code03_TrappingRainWater.java └── Code04_ExpressionCompute.java ├── class072 ├── Code01_SplitApples.java ├── Code02_SplitBuildingBlock.java ├── Code03_BestMeetingPoint.java └── Code04_CombinationSumIV.java ├── class073 ├── Code01_CoverMax.java ├── Code02_4KeysKeyboard.java ├── Code03_MinContinuousFragment.java └── Code04_MaxGap.java ├── class074 ├── Code01_Mod3Max.java ├── Code02_LetASorted.java ├── Code03_AwayFromBlackHole.java └── Code04_AllSame.java ├── class075 ├── Code01_BattleshipsInABoard.java ├── Code02_ShortestSubarrayWithSumAtLeastK.java ├── Code03_BuyThingsAboutCollocation.java └── Code04_BrickAll.java ├── class076 ├── Code01_SetAll.java ├── Code02_4KeysKeyboard.java ├── Code03_BrickAll.java ├── Code04_InsertDeleteGetRandom.java ├── Code05_SplitApples.java ├── Code06_SplitStrings.java └── Code07_ShortestSubarrayWithSumAtLeastK.java ├── class077 ├── Code01_MonotonousStack.java ├── Code02_AllTimesMinToMax.java ├── Code03_LargestRectangleInHistogram.java └── Code04_ValidSequence.java ├── class078 ├── Code01_SplitSameNumberWays.java ├── Code02_NearBiggerNoSameNeighbour.java ├── Code03_MaxTeamNumber.java ├── Code04_MinimumNumberOfDaysToEatNOranges.java ├── Code05_MaxKLenSequence.java ├── Code06_StringCheck.java └── Code07_ShortestSubarrayWithSumAtLeastK.java ├── class079 ├── Code01_StringCheck.java ├── Code02_NumberOfDivisibleByM.java ├── Code03_MinWaitingTime.java ├── Code04_LongestUncontinuousSet.java └── Code05_CutDouFu.java ├── class080 ├── Code01_FinancialProduct.java ├── Code02_EatFish.java ├── Code03_BuyGoodsHaveDiscount.java └── Code04_JumpToTargets.java ├── class081 ├── Code01_ArrangeJob.java ├── Code02_MinTowNumberSumABS.java └── Code03_HowManyWaysFromBottomToTop.java ├── class082 ├── Code01_JumpToTargets.java ├── Code02_ArrangeMeetingPosCancelPre.java ├── Code03_MaxScoreMoveInBoard.java ├── Code04_FourNumbersMinusOne.java └── Code05_MaxSumOnReverseArray.java ├── class083 ├── Code01_MaxOneNumbers.java ├── Code02_PerfectPairNumber.java ├── Code03_TopMinSubsquenceSum.java └── Code04_TopMaxSubsquenceSum.java ├── class084 ├── Code01_MinDepth.java ├── Code02_DiameterOfBinarytree.java ├── Code03_AllJobFinishTime.java └── Code04_ClassicDP.java ├── class085 ├── Code01_WhoWin21Balls.java └── Code02_ShortestSubarrayWithSumAtLeastK.java ├── class086 ├── Code01_TwoObjectMaxValue.java ├── Code02_ModifyOneNumberModXWays.java ├── Code03_BattleshipsInABoard.java └── Code04_BrickAll.java ├── class087 ├── Code01_RedAndWhiteSquares.java ├── Code02_MaxNumberUnderLimit.java └── Code03_NumberOfCannon.java ├── class088 ├── Code01_FourNumbersMinusOne.java ├── Code02_MinWaitingTime.java └── Code03_UniqueSubstringsInWraparoundString.java ├── class089 ├── Code01_MostStonesRemovedWithSameRowOrColumn.java ├── Code02_ReachingPoints.java └── Code03_NumberOfDifferentSubsequencesGCDs.java ├── class090 ├── Code01_LIS.java ├── Code02_MaxAnimalNumber.java └── Code03_EnvelopesProblem.java ├── class091 ├── Code01_SetAll.java ├── Code02_Heaters.java ├── Code03_TrappingRainWater.java └── Code04_SplitApples.java ├── class092 ├── Code01_ValidParentheses.java ├── Code02_LongestParentheses.java └── Code03_CompleteTreeNodeNumber.java ├── class093 ├── Code01_FindDuplicateOnlyOne.java └── Code02_SellingPiecesOfWood.java ├── class094 ├── Code01_SortStackUsingRecursive.java ├── Code02_ReversePolishNotation.java └── Code03_RightView.java ├── class095 ├── Code01_NumberOfPeopleAwareOfASecret.java ├── Code02_MaxNumberUnderLimit.java └── Code03_SwimInRisingWater.java ├── class096 ├── Code01_ParenthesesDye.java ├── Code02_ShortestImpossibleSequenceOfRolls.java ├── Code03_SwimInRisingWater.java └── Code04_LongestOneLetterManyNumberString.java ├── class097 ├── Code01_Cakes.java └── Code02_MinAddToMatch.java ├── class098 ├── Code01_ChangeToSame.java ├── Code02_MinCostMostE.java └── Code03_TravelMinFuel.java ├── class099 ├── Code01_MatchsticksToSquare.java ├── Code02_CutOrPoison.java └── Code03_CorporateFlightBookings.java ├── class100 ├── Code01_EvenTimesMaxSubstring.java ├── Code02_MaxLengthSameCharMChanges.java └── Code03_ExaminationPaperWays.java ├── class101 ├── Code01_SlidingWindowMaxArray.java ├── Code02_WindPrevent.java └── Code03_DreamCity.java ├── class102 ├── Code01_SortGame.java ├── Code02_NLengthMValueLIS3.java └── Code03_LIS.java ├── class103 ├── Code01_SoldierFindEnemy.java └── Code02_RedPalindromeGoodStrings.java ├── class104 ├── Code01_RedPalindromeGoodStrings.java ├── Code02_MaxSumOnReverseArray.java ├── Code03_ExaminationPaperWays.java ├── Code04_TopMinSubsquenceSum.java ├── Code05_MaxLengthSameCharMChanges.java ├── Code06_EvenTimesMaxSubstring.java └── Code07_SortGame.java ├── class105 ├── Code01_EveryQueryUsers.java └── Code02_TwoTeamsSortedMinSwap.java ├── class106 ├── Code01_MaximumWidthRamp.java └── Code02_MakeASortedMinSwaps.java ├── class107 ├── Code01_ScoreAllMatrix.java ├── Code02_HappyLimitLessGap.java └── Code03_RobotAndClothes.java ├── class108 ├── Code01_CordCoverMaxPoint.java ├── Code02_LongestSumSubArrayLengthInPositiveArray.java ├── Code03_LongestSumSubArrayLength.java ├── Code04_SlidingWindowMaxArray.java ├── Code05_WindPrevent.java ├── Code06_RemoveMostKContinuousSameLongest.java ├── Code07_RangesHasDominateNumber.java ├── Code08_LastStoneWeightII.java └── Code09_ScoreAllMatrix.java ├── class109 ├── Code01_ThreeEqualParts.java ├── Code02_LongestSumSubArrayLength.java ├── Code03_EvenTimesMaxSubstring.java └── Code04_RemoveMostKContinuousSameLongest.java ├── class110 ├── Code01_MoveCityGetMoney.java └── Code02_EntryRoomGetMoney.java ├── class111 ├── Code01_ComplementaryPairsInStringArray.java └── Code02_CouplesHoldingHands.java ├── class112 ├── Code01_SortArrayByMovingItemsToEmptySpace.java └── Code02_ZigZagConversion.java ├── class113 ├── Code01_TravelMinFuel.java ├── Code02_MakingALargeIsland.java └── Code03_MinimumCostToHireKWorkers.java ├── class114 ├── Code01_KthMissingPositiveNumber.java ├── Code02_ZigZagConversion.java ├── Code03_MaximumWidthRamp.java ├── Code04_ThreeEqualParts.java ├── Code05_CouplesHoldingHands.java ├── Code06_AbsToArrayFinalLength.java ├── Code07_HeightAfterSubtreeRemoval.java ├── Code08_AsFarFromLandAsPossible.java └── Code09_OrderlyQueue.java ├── class115 ├── Code01_StampingTheGrid.java ├── Code02_SumOfSubSequenceWidths.java └── Code03_SumOfDistancesInTree.java ├── class116 ├── Code01_MinimumNumberOfDaysToEatNOranges.java └── Code02_HowManyObtuseAngles.java ├── class117 ├── Code01_BoatsToSavePeople.java ├── Code02_MaximumProductSubarray.java ├── Code03_RotateImage.java ├── Code04_SmallestRangeCoveringElementsfromKLists.java ├── Code05_CandyProblem.java ├── Code06_MinWindowLength.java └── Code07_RangesHasDominateNumber.java ├── class118 ├── Code01_ExpressionCompute.java ├── Code02_ComputeExpressionValue.java └── Code03_CherryPickup.java ├── class119 ├── Code01_LongestWellPerformingInterval.java ├── Code02_MaximumFrequencyStack.java └── Code03_LongestConsecutive.java ├── class120 ├── Code01_OddEvenJump.java ├── Code02_RegularExpressionMatch.java ├── Code03_RemoveDuplicateLettersLessLexi.java └── Code04_DreamCity.java ├── class121 ├── Code01_MaxOneNumbers.java ├── Code02_MaxChunksToMakeSortedII.java ├── Code03_KokoEatingBananas.java ├── Code04_SplitArrayLargestSum.java └── Code05_MinWaitingTime.java ├── class122 ├── Code01_UniqueSubstringsInWraparoundString.java └── Code02_DistinctSubseqValue.java ├── class123 ├── Code01_SuperPalindromes.java └── Code02_RecoverTreeFromPreorderTraversal.java ├── class124 ├── Code01_RotateImage.java ├── Code02_ZigZagPrintMatrix.java ├── Code03_ZigZagConversion.java ├── Code04_SubArrayMaxSum.java ├── Code05_SubArrayMaxSumFollowUp.java ├── Code06_FindHalfMajority.java └── Code07_FindKMajor.java ├── class125 ├── Code01_WaterKing.java ├── Code02_InsertDeleteGetRandom.java ├── Code03_CandyProblem.java ├── Code04_ReservoirSampling.java └── Code05_KokoEatingBananas.java ├── class126 ├── Code01_SplitNumberTimesMax.java └── Code02_FillCellsUseAllColorsWays.java ├── class127 ├── Code01_MinDaysDoneAllProjects.java ├── Code02_DivideArrayIntoIncreasingSequences.java ├── Code03_CharRedToPalindromeString.java └── Code04_EatFish.java ├── class128 ├── Code01_CharRedToPalindromeString.java ├── Code02_OddLevelEvenLevelSumClosed.java ├── Code03_MaximumAveragePassRatio.java ├── Code04_MakingALargeIsland.java ├── Code05_NthMagicalNumber.java ├── Code06_FourKindsPaperQueryWays.java └── Code07_ValidPermutationsForDiSequence.java ├── class129 ├── Code01_GroupBuyTickets.java ├── Code02_ChemicalProblem.java ├── Code03_ValidPermutationsForDiSequence.java └── Code04_ShortestCommonSupersequence.java ├── class130 ├── Code01_ReplaceTheSubstringForBalancedString.java ├── Code02_ThreeEqualParts.java ├── Code03_KthMissingPositiveNumber.java └── Code04_MaximumWidthRamp.java ├── class131 ├── Code01_KthMissingPositiveNumber.java ├── Code02_MagicScrollProbelm.java └── Code03_ValidRangeBetweenTwoArrays.java ├── class132 ├── Code01_ReplaceTheSubstringForBalancedString.java ├── Code02_MinOpToMakeElementsEqual.java ├── Code03_MaximumNumberOfTasksYouCanAssign.java ├── Code04_ValidRangeBetweenTwoArrays.java ├── Code05_OddLevelEvenLevelSumClosed.java └── Code06_MakeSumDivisibleByP.java ├── class133 ├── Code01_RangesHasDominateNumber.java └── Code02_NumberOfSubsetGcdEqualK.java ├── class134 ├── Code01_ImageArrayAverageGotoHalf.java ├── Code02_MinScoreTriangulationPolygon.java └── Code03_MakeSumDivisibleByP.java ├── class135 ├── Code01_PrintFromInnerLoop.java ├── Code02_ValidateStackSequences.java ├── Code03_LeastNumberOfUniqueAfterRemovals.java ├── Code04_RemoveDuplicateLetters.java └── Code05_LexicographicBiggerSumOfR.java ├── class136 ├── Code01_HashTest.java └── Code02_Bit.java ├── class137 ├── Code01_WhereCanReachNumber.java └── Code02_HouseRobberIV.java ├── class138 ├── Code01_JumpGameOnLoop.java ├── Code02_ReplaceTheSubstringForBalancedString.java ├── Code03_PrintZigZagWithStar.java ├── Code04_SplitMaxProduct1.java └── Code05_SplitMaxProduct2.java ├── class139 ├── Code00_1_LongOverFlow.java ├── Code00_2_HashForString.java ├── Code00_2_HashForString2.java └── Code01_DiffLessKMatchNumber.java ├── class140 ├── Code01_MinWaitingTime.java ├── Code02_KokoEatingBananas.java ├── Code03_CrossRiver.java ├── Code04_BecomeMostPopularShop.java ├── Code05_OptimizeWaterDistributionInVillage.java └── Code06_CountUniqueCharactersOfAllSubstrings.java ├── class141 ├── Code01_CourseScheduleII.java ├── Code02_TopologicalOrderBFS.java ├── Code03_LoudAndRich.java ├── Code04_ConversionOfFinancialProducts.java ├── Code05_PaintingTheWalls.java ├── Code06_CountIncreasingQuadruplets.java └── Code07_StampingTheSequence.java ├── class142 ├── Code01_LongestSubstringWithoutRepeatingCharacters.java ├── Code02_MaxGap.java ├── Code03_EditCost.java ├── Code04_BoatsToSavePeople.java ├── Code05_MinLengthForSort.java └── Code06_Drive.java └── class143 ├── Code01_MinDaysDoneAllProjects.java ├── Code02_RobotPassThroughBuilding.java ├── Code03_SplitArrayLargestSum.java ├── Code04_CutOrPoison.java ├── Code05_KokoEatingBananas.java ├── Code06_FindKthSmallestPairDistance.java ├── Code07_FourNumbersMinusOne.java └── Code08_MinWaitingTime.java /.gitignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | .* 3 | /bin/ 4 | -------------------------------------------------------------------------------- /src/class001/Code01_PosArrayToBST.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class001/Code01_PosArrayToBST.java -------------------------------------------------------------------------------- /src/class001/Code02_ContainAllCharExactly.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class001/Code02_ContainAllCharExactly.java -------------------------------------------------------------------------------- /src/class002/Code01_MakeNo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class002/Code01_MakeNo.java -------------------------------------------------------------------------------- /src/class002/Code02_KthMinPair.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class002/Code02_KthMinPair.java -------------------------------------------------------------------------------- /src/class003/Code01_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class003/Code01_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class003/Code02_HowManyTypes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class003/Code02_HowManyTypes.java -------------------------------------------------------------------------------- /src/class003/Code03_SubsquenceMaxModM.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class003/Code03_SubsquenceMaxModM.java -------------------------------------------------------------------------------- /src/class004/Code01_QueryHobby.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class004/Code01_QueryHobby.java -------------------------------------------------------------------------------- /src/class004/Code02_MergeRecord.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class004/Code02_MergeRecord.java -------------------------------------------------------------------------------- /src/class005/Code01_RotateString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class005/Code01_RotateString.java -------------------------------------------------------------------------------- /src/class005/Code02_RestoreWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class005/Code02_RestoreWays.java -------------------------------------------------------------------------------- /src/class006/Code01_Power2Diffs.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class006/Code01_Power2Diffs.java -------------------------------------------------------------------------------- /src/class006/Code02_Water.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class006/Code02_Water.java -------------------------------------------------------------------------------- /src/class007/Code01_RandToRand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class007/Code01_RandToRand.java -------------------------------------------------------------------------------- /src/class007/Code02_EqualProbabilityRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class007/Code02_EqualProbabilityRandom.java -------------------------------------------------------------------------------- /src/class007/Code03_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class007/Code03_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class007/Code04_FindKMajor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class007/Code04_FindKMajor.java -------------------------------------------------------------------------------- /src/class008/Code01_JumpGameII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class008/Code01_JumpGameII.java -------------------------------------------------------------------------------- /src/class008/Code02_LongestConsecutiveSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class008/Code02_LongestConsecutiveSequence.java -------------------------------------------------------------------------------- /src/class009/Code01_SetMatrixZeroes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class009/Code01_SetMatrixZeroes.java -------------------------------------------------------------------------------- /src/class009/Code02_SearchA2DMatrixII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class009/Code02_SearchA2DMatrixII.java -------------------------------------------------------------------------------- /src/class009/Code03_LongestOnes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class009/Code03_LongestOnes.java -------------------------------------------------------------------------------- /src/class010/Code01_SwapWithoutTmp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class010/Code01_SwapWithoutTmp.java -------------------------------------------------------------------------------- /src/class010/Code02_GetMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class010/Code02_GetMax.java -------------------------------------------------------------------------------- /src/class010/Code03_EvenTimesOddTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class010/Code03_EvenTimesOddTimes.java -------------------------------------------------------------------------------- /src/class011/Code01_CopyListWithRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class011/Code01_CopyListWithRandom.java -------------------------------------------------------------------------------- /src/class011/Code02_JumpMinTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class011/Code02_JumpMinTimes.java -------------------------------------------------------------------------------- /src/class012/Code01_MoneyProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class012/Code01_MoneyProblem.java -------------------------------------------------------------------------------- /src/class013/Code01_PalindromeNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class013/Code01_PalindromeNumber.java -------------------------------------------------------------------------------- /src/class013/Code03_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class013/Code03_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class014/Code01_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class014/Code01_CoverMax.java -------------------------------------------------------------------------------- /src/class014/Code02_MaxDistance.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class014/Code02_MaxDistance.java -------------------------------------------------------------------------------- /src/class015/Code01_CordCoverMaxPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class015/Code01_CordCoverMaxPoint.java -------------------------------------------------------------------------------- /src/class015/Code02_ColorLeftRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class015/Code02_ColorLeftRight.java -------------------------------------------------------------------------------- /src/class015/Code03_MaxABSBetweenLeftAndRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class015/Code03_MaxABSBetweenLeftAndRight.java -------------------------------------------------------------------------------- /src/class015/Code04_TrappingRainWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class015/Code04_TrappingRainWater.java -------------------------------------------------------------------------------- /src/class016/Code01_RandToRand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class016/Code01_RandToRand.java -------------------------------------------------------------------------------- /src/class016/Code02_EqualProbabilityRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class016/Code02_EqualProbabilityRandom.java -------------------------------------------------------------------------------- /src/class016/Code03_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class016/Code03_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class016/Code04_FindKMajor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class016/Code04_FindKMajor.java -------------------------------------------------------------------------------- /src/class017/Code01_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class017/Code01_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class017/Code02_SubMatrixMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class017/Code02_SubMatrixMaxSum.java -------------------------------------------------------------------------------- /src/class018/Code01_SqrtX.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class018/Code01_SqrtX.java -------------------------------------------------------------------------------- /src/class018/Code02_PowXN.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class018/Code02_PowXN.java -------------------------------------------------------------------------------- /src/class018/Code03_ContainerWithMostWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class018/Code03_ContainerWithMostWater.java -------------------------------------------------------------------------------- /src/class019/Code01_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class019/Code01_RotateImage.java -------------------------------------------------------------------------------- /src/class019/Code02_ZigZagPrintMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class019/Code02_ZigZagPrintMatrix.java -------------------------------------------------------------------------------- /src/class019/Code03_PrintStar.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class019/Code03_PrintStar.java -------------------------------------------------------------------------------- /src/class020/Code01_RotateString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class020/Code01_RotateString.java -------------------------------------------------------------------------------- /src/class020/Code02_HowManyTypes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class020/Code02_HowManyTypes.java -------------------------------------------------------------------------------- /src/class020/Code03_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class020/Code03_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class020/Code04_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class020/Code04_CoverMax.java -------------------------------------------------------------------------------- /src/class020/Code05_MakeNo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class020/Code05_MakeNo.java -------------------------------------------------------------------------------- /src/class021/Code01_SwapWithoutTmp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class021/Code01_SwapWithoutTmp.java -------------------------------------------------------------------------------- /src/class021/Code02_GetMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class021/Code02_GetMax.java -------------------------------------------------------------------------------- /src/class021/Code03_EvenTimesOddTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class021/Code03_EvenTimesOddTimes.java -------------------------------------------------------------------------------- /src/class022/Code01_MinSwapStep.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class022/Code01_MinSwapStep.java -------------------------------------------------------------------------------- /src/class022/Code02_CountFiles.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class022/Code02_CountFiles.java -------------------------------------------------------------------------------- /src/class022/Code03_Cola.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class022/Code03_Cola.java -------------------------------------------------------------------------------- /src/class023/Code01_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class023/Code01_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class024/Code01_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class024/Code01_RotateImage.java -------------------------------------------------------------------------------- /src/class024/Code02_ZigZagPrintMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class024/Code02_ZigZagPrintMatrix.java -------------------------------------------------------------------------------- /src/class024/Code03_PrintStar.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class024/Code03_PrintStar.java -------------------------------------------------------------------------------- /src/class025/Code01_Water.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class025/Code01_Water.java -------------------------------------------------------------------------------- /src/class025/Code02_RandToRand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class025/Code02_RandToRand.java -------------------------------------------------------------------------------- /src/class025/Code03_EqualProbabilityRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class025/Code03_EqualProbabilityRandom.java -------------------------------------------------------------------------------- /src/class026/Code01_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class026/Code01_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class026/Code02_SubArrayMaxSumFollowUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class026/Code02_SubArrayMaxSumFollowUp.java -------------------------------------------------------------------------------- /src/class026/Code03_SubMatrixMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class026/Code03_SubMatrixMaxSum.java -------------------------------------------------------------------------------- /src/class027/Code01_MinSwapStep.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class027/Code01_MinSwapStep.java -------------------------------------------------------------------------------- /src/class027/Code02_CountFiles.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class027/Code02_CountFiles.java -------------------------------------------------------------------------------- /src/class027/Code03_Cola.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class027/Code03_Cola.java -------------------------------------------------------------------------------- /src/class028/Code01_RotateString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class028/Code01_RotateString.java -------------------------------------------------------------------------------- /src/class028/Code02_HowManyTypes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class028/Code02_HowManyTypes.java -------------------------------------------------------------------------------- /src/class028/Code03_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class028/Code03_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class028/Code04_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class028/Code04_CoverMax.java -------------------------------------------------------------------------------- /src/class029/Code01_AppleMinBags.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class029/Code01_AppleMinBags.java -------------------------------------------------------------------------------- /src/class029/Code02_EatGrass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class029/Code02_EatGrass.java -------------------------------------------------------------------------------- /src/class029/Code03_MaxLeftMaxRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class029/Code03_MaxLeftMaxRight.java -------------------------------------------------------------------------------- /src/class030/Code01_IsPalindrome.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class030/Code01_IsPalindrome.java -------------------------------------------------------------------------------- /src/class030/Code02_MySqrt.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class030/Code02_MySqrt.java -------------------------------------------------------------------------------- /src/class030/Code03_UglyNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class030/Code03_UglyNumber.java -------------------------------------------------------------------------------- /src/class030/Code04_EnterLoopNode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class030/Code04_EnterLoopNode.java -------------------------------------------------------------------------------- /src/class031/Code01_SwapWithoutTmp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class031/Code01_SwapWithoutTmp.java -------------------------------------------------------------------------------- /src/class031/Code02_AddMinus.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class031/Code02_AddMinus.java -------------------------------------------------------------------------------- /src/class031/Code03_GetMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class031/Code03_GetMax.java -------------------------------------------------------------------------------- /src/class031/Code04_MissingNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class031/Code04_MissingNumber.java -------------------------------------------------------------------------------- /src/class032/Code01_BinaryTreeLevelOrderTraversal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class032/Code01_BinaryTreeLevelOrderTraversal.java -------------------------------------------------------------------------------- /src/class032/Code01_BinaryTreeLevelOrderTraversalII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class032/Code01_BinaryTreeLevelOrderTraversalII.java -------------------------------------------------------------------------------- /src/class032/Code02_ConstructBinaryTreeFromPreorderAndInorderTraversal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class032/Code02_ConstructBinaryTreeFromPreorderAndInorderTraversal.java -------------------------------------------------------------------------------- /src/class032/Code03_PaperFolding.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class032/Code03_PaperFolding.java -------------------------------------------------------------------------------- /src/class032/Code04_DiameterOfBinaryTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class032/Code04_DiameterOfBinaryTree.java -------------------------------------------------------------------------------- /src/class033/Code01_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class033/Code01_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class033/Code02_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class033/Code02_RotateImage.java -------------------------------------------------------------------------------- /src/class033/Code03_ZigZagPrintMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class033/Code03_ZigZagPrintMatrix.java -------------------------------------------------------------------------------- /src/class033/Code04_PrintStar.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class033/Code04_PrintStar.java -------------------------------------------------------------------------------- /src/class034/Code01_Water.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class034/Code01_Water.java -------------------------------------------------------------------------------- /src/class034/Code02_RandToRand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class034/Code02_RandToRand.java -------------------------------------------------------------------------------- /src/class034/Code03_EqualProbabilityRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class034/Code03_EqualProbabilityRandom.java -------------------------------------------------------------------------------- /src/class034/Code04_EvenTimesOddTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class034/Code04_EvenTimesOddTimes.java -------------------------------------------------------------------------------- /src/class034/Code05_MakeNo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class034/Code05_MakeNo.java -------------------------------------------------------------------------------- /src/class035/Code01_UglyNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class035/Code01_UglyNumber.java -------------------------------------------------------------------------------- /src/class035/Code02_MakeNo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class035/Code02_MakeNo.java -------------------------------------------------------------------------------- /src/class035/Code03_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class035/Code03_CoverMax.java -------------------------------------------------------------------------------- /src/class036/Code01_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class036/Code01_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class036/Code02_CordCoverMaxPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class036/Code02_CordCoverMaxPoint.java -------------------------------------------------------------------------------- /src/class036/Code03_ColorLeftRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class036/Code03_ColorLeftRight.java -------------------------------------------------------------------------------- /src/class037/Code01_MaxABSBetweenLeftAndRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class037/Code01_MaxABSBetweenLeftAndRight.java -------------------------------------------------------------------------------- /src/class037/Code02_JumpGameII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class037/Code02_JumpGameII.java -------------------------------------------------------------------------------- /src/class037/Code03_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class037/Code03_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class038/Code01_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class038/Code01_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class038/Code02_MaxSumFollowUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class038/Code02_MaxSumFollowUp.java -------------------------------------------------------------------------------- /src/class038/Code03_MaxSumNoAdjoin.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class038/Code03_MaxSumNoAdjoin.java -------------------------------------------------------------------------------- /src/class038/Code04_MissingNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class038/Code04_MissingNumber.java -------------------------------------------------------------------------------- /src/class039/Code01_Water.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class039/Code01_Water.java -------------------------------------------------------------------------------- /src/class039/Code02_RandToRand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class039/Code02_RandToRand.java -------------------------------------------------------------------------------- /src/class039/Code03_EqualProbabilityRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class039/Code03_EqualProbabilityRandom.java -------------------------------------------------------------------------------- /src/class039/Code04_EvenTimesOddTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class039/Code04_EvenTimesOddTimes.java -------------------------------------------------------------------------------- /src/class039/Code05_KM.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class039/Code05_KM.java -------------------------------------------------------------------------------- /src/class040/Code01_PalindromeNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class040/Code01_PalindromeNumber.java -------------------------------------------------------------------------------- /src/class040/Code02_MaximumProductSubarray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class040/Code02_MaximumProductSubarray.java -------------------------------------------------------------------------------- /src/class040/Code03_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class040/Code03_CoverMax.java -------------------------------------------------------------------------------- /src/class040/Code04_KM.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class040/Code04_KM.java -------------------------------------------------------------------------------- /src/class041/Code01_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class041/Code01_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class041/Code02_CordCoverMaxPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class041/Code02_CordCoverMaxPoint.java -------------------------------------------------------------------------------- /src/class041/Code03_MaxABSBetweenLeftAndRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class041/Code03_MaxABSBetweenLeftAndRight.java -------------------------------------------------------------------------------- /src/class041/Code04_KM.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class041/Code04_KM.java -------------------------------------------------------------------------------- /src/class042/Code02_ContainAllCharExactly.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class042/Code02_ContainAllCharExactly.java -------------------------------------------------------------------------------- /src/class042/Code03_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class042/Code03_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class043/Code01_AppleMinBags.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class043/Code01_AppleMinBags.java -------------------------------------------------------------------------------- /src/class043/Code02_SplitNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class043/Code02_SplitNumber.java -------------------------------------------------------------------------------- /src/class043/Code03_EatGrass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class043/Code03_EatGrass.java -------------------------------------------------------------------------------- /src/class043/Code04_FindOddTimesNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class043/Code04_FindOddTimesNumber.java -------------------------------------------------------------------------------- /src/class044/Code01_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class044/Code01_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class044/Code02_MaxSumFollowUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class044/Code02_MaxSumFollowUp.java -------------------------------------------------------------------------------- /src/class044/Code03_MaxSumNoAdjoin.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class044/Code03_MaxSumNoAdjoin.java -------------------------------------------------------------------------------- /src/class045/Code01_MaxLeftMaxRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class045/Code01_MaxLeftMaxRight.java -------------------------------------------------------------------------------- /src/class045/Code02_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class045/Code02_RotateImage.java -------------------------------------------------------------------------------- /src/class045/Code03_ZigZagPrintMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class045/Code03_ZigZagPrintMatrix.java -------------------------------------------------------------------------------- /src/class045/Code04_MissingNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class045/Code04_MissingNumber.java -------------------------------------------------------------------------------- /src/class046/Code01_MergeKSortedLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class046/Code01_MergeKSortedLists.java -------------------------------------------------------------------------------- /src/class046/Code02_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class046/Code02_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class046/Code03_CordCoverMaxPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class046/Code03_CordCoverMaxPoint.java -------------------------------------------------------------------------------- /src/class047/Code01_Water.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class047/Code01_Water.java -------------------------------------------------------------------------------- /src/class047/Code02_RandToRand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class047/Code02_RandToRand.java -------------------------------------------------------------------------------- /src/class047/Code03_EqualProbabilityRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class047/Code03_EqualProbabilityRandom.java -------------------------------------------------------------------------------- /src/class047/Code04_EvenTimesOddTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class047/Code04_EvenTimesOddTimes.java -------------------------------------------------------------------------------- /src/class048/Code01_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class048/Code01_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class048/Code02_MaxSumFollowUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class048/Code02_MaxSumFollowUp.java -------------------------------------------------------------------------------- /src/class048/Code03_MaxSumNoAdjoin.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class048/Code03_MaxSumNoAdjoin.java -------------------------------------------------------------------------------- /src/class049/Code01_AppleMinBags.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class049/Code01_AppleMinBags.java -------------------------------------------------------------------------------- /src/class049/Code02_SplitNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class049/Code02_SplitNumber.java -------------------------------------------------------------------------------- /src/class049/Code03_EatGrass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class049/Code03_EatGrass.java -------------------------------------------------------------------------------- /src/class050/Code01_HowManyTypes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class050/Code01_HowManyTypes.java -------------------------------------------------------------------------------- /src/class050/Code02_CordCoverMaxPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class050/Code02_CordCoverMaxPoint.java -------------------------------------------------------------------------------- /src/class050/Code03_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class050/Code03_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class050/Code04_ZigZagPrintMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class050/Code04_ZigZagPrintMatrix.java -------------------------------------------------------------------------------- /src/class050/Code05_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class050/Code05_RotateImage.java -------------------------------------------------------------------------------- /src/class051/Code01_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class051/Code01_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class051/Code02_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class051/Code02_CoverMax.java -------------------------------------------------------------------------------- /src/class052/Code01_EvenTimesOddTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class052/Code01_EvenTimesOddTimes.java -------------------------------------------------------------------------------- /src/class052/Code02_KM.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class052/Code02_KM.java -------------------------------------------------------------------------------- /src/class052/Code03_UglyNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class052/Code03_UglyNumber.java -------------------------------------------------------------------------------- /src/class052/Code04_MakeNo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class052/Code04_MakeNo.java -------------------------------------------------------------------------------- /src/class053/Code01_BestTimeToBuyAndSellStock.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class053/Code01_BestTimeToBuyAndSellStock.java -------------------------------------------------------------------------------- /src/class053/Code02_BestTimeToBuyAndSellStockII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class053/Code02_BestTimeToBuyAndSellStockII.java -------------------------------------------------------------------------------- /src/class053/Code03_BestTimeToBuyAndSellStockIII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class053/Code03_BestTimeToBuyAndSellStockIII.java -------------------------------------------------------------------------------- /src/class053/Code04_RabbitsInForest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class053/Code04_RabbitsInForest.java -------------------------------------------------------------------------------- /src/class053/Code05_LIS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class053/Code05_LIS.java -------------------------------------------------------------------------------- /src/class053/Code06_EnvelopesProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class053/Code06_EnvelopesProblem.java -------------------------------------------------------------------------------- /src/class054/Code01_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class054/Code01_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class054/Code02_PalindromeNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class054/Code02_PalindromeNumber.java -------------------------------------------------------------------------------- /src/class054/Code03_Water.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class054/Code03_Water.java -------------------------------------------------------------------------------- /src/class054/Code04_JumpGameII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class054/Code04_JumpGameII.java -------------------------------------------------------------------------------- /src/class055/Code01_LongestNoRepeatSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class055/Code01_LongestNoRepeatSubstring.java -------------------------------------------------------------------------------- /src/class055/Code02_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class055/Code02_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class055/Code03_MaximumProductSubarray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class055/Code03_MaximumProductSubarray.java -------------------------------------------------------------------------------- /src/class055/Code04_PaperFolding.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class055/Code04_PaperFolding.java -------------------------------------------------------------------------------- /src/class056/Code01_MissingNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class056/Code01_MissingNumber.java -------------------------------------------------------------------------------- /src/class056/Code02_RabbitsInForest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class056/Code02_RabbitsInForest.java -------------------------------------------------------------------------------- /src/class056/Code03_LIS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class056/Code03_LIS.java -------------------------------------------------------------------------------- /src/class056/Code04_EnvelopesProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class056/Code04_EnvelopesProblem.java -------------------------------------------------------------------------------- /src/class057/Code01_MagicStone.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class057/Code01_MagicStone.java -------------------------------------------------------------------------------- /src/class057/Code02_CircleCandy.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class057/Code02_CircleCandy.java -------------------------------------------------------------------------------- /src/class057/Code03_ComputeExpressionValue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class057/Code03_ComputeExpressionValue.java -------------------------------------------------------------------------------- /src/class057/Code04_Ratio01Split.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class057/Code04_Ratio01Split.java -------------------------------------------------------------------------------- /src/class058/Code01_MinBoatEvenNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class058/Code01_MinBoatEvenNumbers.java -------------------------------------------------------------------------------- /src/class058/Code02_MaxKLenSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class058/Code02_MaxKLenSequence.java -------------------------------------------------------------------------------- /src/class058/Code03_StoneGameIV.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class058/Code03_StoneGameIV.java -------------------------------------------------------------------------------- /src/class059/Code01_MagicStone.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class059/Code01_MagicStone.java -------------------------------------------------------------------------------- /src/class059/Code02_CircleCandy.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class059/Code02_CircleCandy.java -------------------------------------------------------------------------------- /src/class059/Code03_MinBoatEvenNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class059/Code03_MinBoatEvenNumbers.java -------------------------------------------------------------------------------- /src/class059/Code04_StringKth.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class059/Code04_StringKth.java -------------------------------------------------------------------------------- /src/class059/Code05_SubarraySumEqualsK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class059/Code05_SubarraySumEqualsK.java -------------------------------------------------------------------------------- /src/class059/Code06_Ratio01Split.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class059/Code06_Ratio01Split.java -------------------------------------------------------------------------------- /src/class060/Code01_MinSwapTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class060/Code01_MinSwapTimes.java -------------------------------------------------------------------------------- /src/class060/Code02_MaxMeetingScore.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class060/Code02_MaxMeetingScore.java -------------------------------------------------------------------------------- /src/class060/Code03_NextPermutation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class060/Code03_NextPermutation.java -------------------------------------------------------------------------------- /src/class060/Code04_SequenceKDifferentKinds.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class060/Code04_SequenceKDifferentKinds.java -------------------------------------------------------------------------------- /src/class061/Code01_HashFunction.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class061/Code01_HashFunction.java -------------------------------------------------------------------------------- /src/class061/Code02_FillGapMinStep.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class061/Code02_FillGapMinStep.java -------------------------------------------------------------------------------- /src/class061/Code03_Mod3Max.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class061/Code03_Mod3Max.java -------------------------------------------------------------------------------- /src/class062/Code01_MonotonousStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class062/Code01_MonotonousStack.java -------------------------------------------------------------------------------- /src/class062/Code02_LargestRectangleInHistogram.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class062/Code02_LargestRectangleInHistogram.java -------------------------------------------------------------------------------- /src/class062/Code03_ValidSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class062/Code03_ValidSequence.java -------------------------------------------------------------------------------- /src/class062/Code04_MaxKLenSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class062/Code04_MaxKLenSequence.java -------------------------------------------------------------------------------- /src/class063/Code01_SumNoPositiveMinCost.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class063/Code01_SumNoPositiveMinCost.java -------------------------------------------------------------------------------- /src/class063/Code02_SplitBuildingBlock.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class063/Code02_SplitBuildingBlock.java -------------------------------------------------------------------------------- /src/class064/Code01_LIS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class064/Code01_LIS.java -------------------------------------------------------------------------------- /src/class064/Code02_EnvelopesProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class064/Code02_EnvelopesProblem.java -------------------------------------------------------------------------------- /src/class064/Code03_MinSwapTimes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class064/Code03_MinSwapTimes.java -------------------------------------------------------------------------------- /src/class064/Code04_PoemProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class064/Code04_PoemProblem.java -------------------------------------------------------------------------------- /src/class065/Code01_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class065/Code01_CoverMax.java -------------------------------------------------------------------------------- /src/class065/Code02_Heaters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class065/Code02_Heaters.java -------------------------------------------------------------------------------- /src/class065/Code03_TrappingRainWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class065/Code03_TrappingRainWater.java -------------------------------------------------------------------------------- /src/class065/Code04_CombinationSumIV.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class065/Code04_CombinationSumIV.java -------------------------------------------------------------------------------- /src/class066/Code01_BestTimeToBuyAndSellStock.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class066/Code01_BestTimeToBuyAndSellStock.java -------------------------------------------------------------------------------- /src/class066/Code02_BestTimeToBuyAndSellStockII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class066/Code02_BestTimeToBuyAndSellStockII.java -------------------------------------------------------------------------------- /src/class066/Code03_BestTimeToBuyAndSellStockIII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class066/Code03_BestTimeToBuyAndSellStockIII.java -------------------------------------------------------------------------------- /src/class066/Code04_SplitArrayLargestSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class066/Code04_SplitArrayLargestSum.java -------------------------------------------------------------------------------- /src/class066/Code05_KokoEatingBananas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class066/Code05_KokoEatingBananas.java -------------------------------------------------------------------------------- /src/class067/Code01_IsStepSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class067/Code01_IsStepSum.java -------------------------------------------------------------------------------- /src/class067/Code02_KokoEatingBananas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class067/Code02_KokoEatingBananas.java -------------------------------------------------------------------------------- /src/class067/Code03_SplitArrayLargestSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class067/Code03_SplitArrayLargestSum.java -------------------------------------------------------------------------------- /src/class067/Code04_MinimumWindowSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class067/Code04_MinimumWindowSubstring.java -------------------------------------------------------------------------------- /src/class067/Code05_SubarraysWithKDifferentIntegers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class067/Code05_SubarraysWithKDifferentIntegers.java -------------------------------------------------------------------------------- /src/class068/Code01_MagicStone.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class068/Code01_MagicStone.java -------------------------------------------------------------------------------- /src/class068/Code02_CircleCandy.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class068/Code02_CircleCandy.java -------------------------------------------------------------------------------- /src/class068/Code03_MinBoatEvenNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class068/Code03_MinBoatEvenNumbers.java -------------------------------------------------------------------------------- /src/class069/Code01_Hash.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class069/Code01_Hash.java -------------------------------------------------------------------------------- /src/class069/Code02_BitMap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class069/Code02_BitMap.java -------------------------------------------------------------------------------- /src/class070/Code01_FindTheCelebrity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class070/Code01_FindTheCelebrity.java -------------------------------------------------------------------------------- /src/class070/Code02_AvoidFloodInTheCity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class070/Code02_AvoidFloodInTheCity.java -------------------------------------------------------------------------------- /src/class070/Code03_BurstBalloons.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class070/Code03_BurstBalloons.java -------------------------------------------------------------------------------- /src/class070/SuperWaterKing.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class070/SuperWaterKing.java -------------------------------------------------------------------------------- /src/class071/Code01_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class071/Code01_CoverMax.java -------------------------------------------------------------------------------- /src/class071/Code02_Heaters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class071/Code02_Heaters.java -------------------------------------------------------------------------------- /src/class071/Code03_TrappingRainWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class071/Code03_TrappingRainWater.java -------------------------------------------------------------------------------- /src/class071/Code04_ExpressionCompute.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class071/Code04_ExpressionCompute.java -------------------------------------------------------------------------------- /src/class072/Code01_SplitApples.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class072/Code01_SplitApples.java -------------------------------------------------------------------------------- /src/class072/Code02_SplitBuildingBlock.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class072/Code02_SplitBuildingBlock.java -------------------------------------------------------------------------------- /src/class072/Code03_BestMeetingPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class072/Code03_BestMeetingPoint.java -------------------------------------------------------------------------------- /src/class072/Code04_CombinationSumIV.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class072/Code04_CombinationSumIV.java -------------------------------------------------------------------------------- /src/class073/Code01_CoverMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class073/Code01_CoverMax.java -------------------------------------------------------------------------------- /src/class073/Code02_4KeysKeyboard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class073/Code02_4KeysKeyboard.java -------------------------------------------------------------------------------- /src/class073/Code03_MinContinuousFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class073/Code03_MinContinuousFragment.java -------------------------------------------------------------------------------- /src/class073/Code04_MaxGap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class073/Code04_MaxGap.java -------------------------------------------------------------------------------- /src/class074/Code01_Mod3Max.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class074/Code01_Mod3Max.java -------------------------------------------------------------------------------- /src/class074/Code02_LetASorted.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class074/Code02_LetASorted.java -------------------------------------------------------------------------------- /src/class074/Code03_AwayFromBlackHole.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class074/Code03_AwayFromBlackHole.java -------------------------------------------------------------------------------- /src/class074/Code04_AllSame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class074/Code04_AllSame.java -------------------------------------------------------------------------------- /src/class075/Code01_BattleshipsInABoard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class075/Code01_BattleshipsInABoard.java -------------------------------------------------------------------------------- /src/class075/Code02_ShortestSubarrayWithSumAtLeastK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class075/Code02_ShortestSubarrayWithSumAtLeastK.java -------------------------------------------------------------------------------- /src/class075/Code03_BuyThingsAboutCollocation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class075/Code03_BuyThingsAboutCollocation.java -------------------------------------------------------------------------------- /src/class075/Code04_BrickAll.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class075/Code04_BrickAll.java -------------------------------------------------------------------------------- /src/class076/Code01_SetAll.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code01_SetAll.java -------------------------------------------------------------------------------- /src/class076/Code02_4KeysKeyboard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code02_4KeysKeyboard.java -------------------------------------------------------------------------------- /src/class076/Code03_BrickAll.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code03_BrickAll.java -------------------------------------------------------------------------------- /src/class076/Code04_InsertDeleteGetRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code04_InsertDeleteGetRandom.java -------------------------------------------------------------------------------- /src/class076/Code05_SplitApples.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code05_SplitApples.java -------------------------------------------------------------------------------- /src/class076/Code06_SplitStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code06_SplitStrings.java -------------------------------------------------------------------------------- /src/class076/Code07_ShortestSubarrayWithSumAtLeastK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class076/Code07_ShortestSubarrayWithSumAtLeastK.java -------------------------------------------------------------------------------- /src/class077/Code01_MonotonousStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class077/Code01_MonotonousStack.java -------------------------------------------------------------------------------- /src/class077/Code02_AllTimesMinToMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class077/Code02_AllTimesMinToMax.java -------------------------------------------------------------------------------- /src/class077/Code03_LargestRectangleInHistogram.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class077/Code03_LargestRectangleInHistogram.java -------------------------------------------------------------------------------- /src/class077/Code04_ValidSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class077/Code04_ValidSequence.java -------------------------------------------------------------------------------- /src/class078/Code01_SplitSameNumberWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code01_SplitSameNumberWays.java -------------------------------------------------------------------------------- /src/class078/Code02_NearBiggerNoSameNeighbour.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code02_NearBiggerNoSameNeighbour.java -------------------------------------------------------------------------------- /src/class078/Code03_MaxTeamNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code03_MaxTeamNumber.java -------------------------------------------------------------------------------- /src/class078/Code04_MinimumNumberOfDaysToEatNOranges.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code04_MinimumNumberOfDaysToEatNOranges.java -------------------------------------------------------------------------------- /src/class078/Code05_MaxKLenSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code05_MaxKLenSequence.java -------------------------------------------------------------------------------- /src/class078/Code06_StringCheck.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code06_StringCheck.java -------------------------------------------------------------------------------- /src/class078/Code07_ShortestSubarrayWithSumAtLeastK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class078/Code07_ShortestSubarrayWithSumAtLeastK.java -------------------------------------------------------------------------------- /src/class079/Code01_StringCheck.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class079/Code01_StringCheck.java -------------------------------------------------------------------------------- /src/class079/Code02_NumberOfDivisibleByM.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class079/Code02_NumberOfDivisibleByM.java -------------------------------------------------------------------------------- /src/class079/Code03_MinWaitingTime.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class079/Code03_MinWaitingTime.java -------------------------------------------------------------------------------- /src/class079/Code04_LongestUncontinuousSet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class079/Code04_LongestUncontinuousSet.java -------------------------------------------------------------------------------- /src/class079/Code05_CutDouFu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class079/Code05_CutDouFu.java -------------------------------------------------------------------------------- /src/class080/Code01_FinancialProduct.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class080/Code01_FinancialProduct.java -------------------------------------------------------------------------------- /src/class080/Code02_EatFish.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class080/Code02_EatFish.java -------------------------------------------------------------------------------- /src/class080/Code03_BuyGoodsHaveDiscount.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class080/Code03_BuyGoodsHaveDiscount.java -------------------------------------------------------------------------------- /src/class080/Code04_JumpToTargets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class080/Code04_JumpToTargets.java -------------------------------------------------------------------------------- /src/class081/Code01_ArrangeJob.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class081/Code01_ArrangeJob.java -------------------------------------------------------------------------------- /src/class081/Code02_MinTowNumberSumABS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class081/Code02_MinTowNumberSumABS.java -------------------------------------------------------------------------------- /src/class081/Code03_HowManyWaysFromBottomToTop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class081/Code03_HowManyWaysFromBottomToTop.java -------------------------------------------------------------------------------- /src/class082/Code01_JumpToTargets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class082/Code01_JumpToTargets.java -------------------------------------------------------------------------------- /src/class082/Code02_ArrangeMeetingPosCancelPre.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class082/Code02_ArrangeMeetingPosCancelPre.java -------------------------------------------------------------------------------- /src/class082/Code03_MaxScoreMoveInBoard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class082/Code03_MaxScoreMoveInBoard.java -------------------------------------------------------------------------------- /src/class082/Code04_FourNumbersMinusOne.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class082/Code04_FourNumbersMinusOne.java -------------------------------------------------------------------------------- /src/class082/Code05_MaxSumOnReverseArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class082/Code05_MaxSumOnReverseArray.java -------------------------------------------------------------------------------- /src/class083/Code01_MaxOneNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class083/Code01_MaxOneNumbers.java -------------------------------------------------------------------------------- /src/class083/Code02_PerfectPairNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class083/Code02_PerfectPairNumber.java -------------------------------------------------------------------------------- /src/class083/Code03_TopMinSubsquenceSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class083/Code03_TopMinSubsquenceSum.java -------------------------------------------------------------------------------- /src/class083/Code04_TopMaxSubsquenceSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class083/Code04_TopMaxSubsquenceSum.java -------------------------------------------------------------------------------- /src/class084/Code01_MinDepth.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class084/Code01_MinDepth.java -------------------------------------------------------------------------------- /src/class084/Code02_DiameterOfBinarytree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class084/Code02_DiameterOfBinarytree.java -------------------------------------------------------------------------------- /src/class084/Code03_AllJobFinishTime.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class084/Code03_AllJobFinishTime.java -------------------------------------------------------------------------------- /src/class084/Code04_ClassicDP.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class084/Code04_ClassicDP.java -------------------------------------------------------------------------------- /src/class085/Code01_WhoWin21Balls.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class085/Code01_WhoWin21Balls.java -------------------------------------------------------------------------------- /src/class085/Code02_ShortestSubarrayWithSumAtLeastK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class085/Code02_ShortestSubarrayWithSumAtLeastK.java -------------------------------------------------------------------------------- /src/class086/Code01_TwoObjectMaxValue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class086/Code01_TwoObjectMaxValue.java -------------------------------------------------------------------------------- /src/class086/Code02_ModifyOneNumberModXWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class086/Code02_ModifyOneNumberModXWays.java -------------------------------------------------------------------------------- /src/class086/Code03_BattleshipsInABoard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class086/Code03_BattleshipsInABoard.java -------------------------------------------------------------------------------- /src/class086/Code04_BrickAll.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class086/Code04_BrickAll.java -------------------------------------------------------------------------------- /src/class087/Code01_RedAndWhiteSquares.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class087/Code01_RedAndWhiteSquares.java -------------------------------------------------------------------------------- /src/class087/Code02_MaxNumberUnderLimit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class087/Code02_MaxNumberUnderLimit.java -------------------------------------------------------------------------------- /src/class087/Code03_NumberOfCannon.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class087/Code03_NumberOfCannon.java -------------------------------------------------------------------------------- /src/class088/Code01_FourNumbersMinusOne.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class088/Code01_FourNumbersMinusOne.java -------------------------------------------------------------------------------- /src/class088/Code02_MinWaitingTime.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class088/Code02_MinWaitingTime.java -------------------------------------------------------------------------------- /src/class088/Code03_UniqueSubstringsInWraparoundString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class088/Code03_UniqueSubstringsInWraparoundString.java -------------------------------------------------------------------------------- /src/class089/Code01_MostStonesRemovedWithSameRowOrColumn.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class089/Code01_MostStonesRemovedWithSameRowOrColumn.java -------------------------------------------------------------------------------- /src/class089/Code02_ReachingPoints.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class089/Code02_ReachingPoints.java -------------------------------------------------------------------------------- /src/class089/Code03_NumberOfDifferentSubsequencesGCDs.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class089/Code03_NumberOfDifferentSubsequencesGCDs.java -------------------------------------------------------------------------------- /src/class090/Code01_LIS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class090/Code01_LIS.java -------------------------------------------------------------------------------- /src/class090/Code02_MaxAnimalNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class090/Code02_MaxAnimalNumber.java -------------------------------------------------------------------------------- /src/class090/Code03_EnvelopesProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class090/Code03_EnvelopesProblem.java -------------------------------------------------------------------------------- /src/class091/Code01_SetAll.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class091/Code01_SetAll.java -------------------------------------------------------------------------------- /src/class091/Code02_Heaters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class091/Code02_Heaters.java -------------------------------------------------------------------------------- /src/class091/Code03_TrappingRainWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class091/Code03_TrappingRainWater.java -------------------------------------------------------------------------------- /src/class091/Code04_SplitApples.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class091/Code04_SplitApples.java -------------------------------------------------------------------------------- /src/class092/Code01_ValidParentheses.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class092/Code01_ValidParentheses.java -------------------------------------------------------------------------------- /src/class092/Code02_LongestParentheses.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class092/Code02_LongestParentheses.java -------------------------------------------------------------------------------- /src/class092/Code03_CompleteTreeNodeNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class092/Code03_CompleteTreeNodeNumber.java -------------------------------------------------------------------------------- /src/class093/Code01_FindDuplicateOnlyOne.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class093/Code01_FindDuplicateOnlyOne.java -------------------------------------------------------------------------------- /src/class093/Code02_SellingPiecesOfWood.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class093/Code02_SellingPiecesOfWood.java -------------------------------------------------------------------------------- /src/class094/Code01_SortStackUsingRecursive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class094/Code01_SortStackUsingRecursive.java -------------------------------------------------------------------------------- /src/class094/Code02_ReversePolishNotation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class094/Code02_ReversePolishNotation.java -------------------------------------------------------------------------------- /src/class094/Code03_RightView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class094/Code03_RightView.java -------------------------------------------------------------------------------- /src/class095/Code01_NumberOfPeopleAwareOfASecret.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class095/Code01_NumberOfPeopleAwareOfASecret.java -------------------------------------------------------------------------------- /src/class095/Code02_MaxNumberUnderLimit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class095/Code02_MaxNumberUnderLimit.java -------------------------------------------------------------------------------- /src/class095/Code03_SwimInRisingWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class095/Code03_SwimInRisingWater.java -------------------------------------------------------------------------------- /src/class096/Code01_ParenthesesDye.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class096/Code01_ParenthesesDye.java -------------------------------------------------------------------------------- /src/class096/Code02_ShortestImpossibleSequenceOfRolls.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class096/Code02_ShortestImpossibleSequenceOfRolls.java -------------------------------------------------------------------------------- /src/class096/Code03_SwimInRisingWater.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class096/Code03_SwimInRisingWater.java -------------------------------------------------------------------------------- /src/class096/Code04_LongestOneLetterManyNumberString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class096/Code04_LongestOneLetterManyNumberString.java -------------------------------------------------------------------------------- /src/class097/Code01_Cakes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class097/Code01_Cakes.java -------------------------------------------------------------------------------- /src/class097/Code02_MinAddToMatch.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class097/Code02_MinAddToMatch.java -------------------------------------------------------------------------------- /src/class098/Code01_ChangeToSame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class098/Code01_ChangeToSame.java -------------------------------------------------------------------------------- /src/class098/Code02_MinCostMostE.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class098/Code02_MinCostMostE.java -------------------------------------------------------------------------------- /src/class098/Code03_TravelMinFuel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class098/Code03_TravelMinFuel.java -------------------------------------------------------------------------------- /src/class099/Code01_MatchsticksToSquare.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class099/Code01_MatchsticksToSquare.java -------------------------------------------------------------------------------- /src/class099/Code02_CutOrPoison.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class099/Code02_CutOrPoison.java -------------------------------------------------------------------------------- /src/class099/Code03_CorporateFlightBookings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class099/Code03_CorporateFlightBookings.java -------------------------------------------------------------------------------- /src/class100/Code01_EvenTimesMaxSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class100/Code01_EvenTimesMaxSubstring.java -------------------------------------------------------------------------------- /src/class100/Code02_MaxLengthSameCharMChanges.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class100/Code02_MaxLengthSameCharMChanges.java -------------------------------------------------------------------------------- /src/class100/Code03_ExaminationPaperWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class100/Code03_ExaminationPaperWays.java -------------------------------------------------------------------------------- /src/class101/Code01_SlidingWindowMaxArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class101/Code01_SlidingWindowMaxArray.java -------------------------------------------------------------------------------- /src/class101/Code02_WindPrevent.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class101/Code02_WindPrevent.java -------------------------------------------------------------------------------- /src/class101/Code03_DreamCity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class101/Code03_DreamCity.java -------------------------------------------------------------------------------- /src/class102/Code01_SortGame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class102/Code01_SortGame.java -------------------------------------------------------------------------------- /src/class102/Code02_NLengthMValueLIS3.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class102/Code02_NLengthMValueLIS3.java -------------------------------------------------------------------------------- /src/class102/Code03_LIS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class102/Code03_LIS.java -------------------------------------------------------------------------------- /src/class103/Code01_SoldierFindEnemy.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class103/Code01_SoldierFindEnemy.java -------------------------------------------------------------------------------- /src/class103/Code02_RedPalindromeGoodStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class103/Code02_RedPalindromeGoodStrings.java -------------------------------------------------------------------------------- /src/class104/Code01_RedPalindromeGoodStrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code01_RedPalindromeGoodStrings.java -------------------------------------------------------------------------------- /src/class104/Code02_MaxSumOnReverseArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code02_MaxSumOnReverseArray.java -------------------------------------------------------------------------------- /src/class104/Code03_ExaminationPaperWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code03_ExaminationPaperWays.java -------------------------------------------------------------------------------- /src/class104/Code04_TopMinSubsquenceSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code04_TopMinSubsquenceSum.java -------------------------------------------------------------------------------- /src/class104/Code05_MaxLengthSameCharMChanges.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code05_MaxLengthSameCharMChanges.java -------------------------------------------------------------------------------- /src/class104/Code06_EvenTimesMaxSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code06_EvenTimesMaxSubstring.java -------------------------------------------------------------------------------- /src/class104/Code07_SortGame.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class104/Code07_SortGame.java -------------------------------------------------------------------------------- /src/class105/Code01_EveryQueryUsers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class105/Code01_EveryQueryUsers.java -------------------------------------------------------------------------------- /src/class105/Code02_TwoTeamsSortedMinSwap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class105/Code02_TwoTeamsSortedMinSwap.java -------------------------------------------------------------------------------- /src/class106/Code01_MaximumWidthRamp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class106/Code01_MaximumWidthRamp.java -------------------------------------------------------------------------------- /src/class106/Code02_MakeASortedMinSwaps.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class106/Code02_MakeASortedMinSwaps.java -------------------------------------------------------------------------------- /src/class107/Code01_ScoreAllMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class107/Code01_ScoreAllMatrix.java -------------------------------------------------------------------------------- /src/class107/Code02_HappyLimitLessGap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class107/Code02_HappyLimitLessGap.java -------------------------------------------------------------------------------- /src/class107/Code03_RobotAndClothes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class107/Code03_RobotAndClothes.java -------------------------------------------------------------------------------- /src/class108/Code01_CordCoverMaxPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code01_CordCoverMaxPoint.java -------------------------------------------------------------------------------- /src/class108/Code02_LongestSumSubArrayLengthInPositiveArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code02_LongestSumSubArrayLengthInPositiveArray.java -------------------------------------------------------------------------------- /src/class108/Code03_LongestSumSubArrayLength.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code03_LongestSumSubArrayLength.java -------------------------------------------------------------------------------- /src/class108/Code04_SlidingWindowMaxArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code04_SlidingWindowMaxArray.java -------------------------------------------------------------------------------- /src/class108/Code05_WindPrevent.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code05_WindPrevent.java -------------------------------------------------------------------------------- /src/class108/Code06_RemoveMostKContinuousSameLongest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code06_RemoveMostKContinuousSameLongest.java -------------------------------------------------------------------------------- /src/class108/Code07_RangesHasDominateNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code07_RangesHasDominateNumber.java -------------------------------------------------------------------------------- /src/class108/Code08_LastStoneWeightII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code08_LastStoneWeightII.java -------------------------------------------------------------------------------- /src/class108/Code09_ScoreAllMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class108/Code09_ScoreAllMatrix.java -------------------------------------------------------------------------------- /src/class109/Code01_ThreeEqualParts.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class109/Code01_ThreeEqualParts.java -------------------------------------------------------------------------------- /src/class109/Code02_LongestSumSubArrayLength.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class109/Code02_LongestSumSubArrayLength.java -------------------------------------------------------------------------------- /src/class109/Code03_EvenTimesMaxSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class109/Code03_EvenTimesMaxSubstring.java -------------------------------------------------------------------------------- /src/class109/Code04_RemoveMostKContinuousSameLongest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class109/Code04_RemoveMostKContinuousSameLongest.java -------------------------------------------------------------------------------- /src/class110/Code01_MoveCityGetMoney.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class110/Code01_MoveCityGetMoney.java -------------------------------------------------------------------------------- /src/class110/Code02_EntryRoomGetMoney.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class110/Code02_EntryRoomGetMoney.java -------------------------------------------------------------------------------- /src/class111/Code01_ComplementaryPairsInStringArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class111/Code01_ComplementaryPairsInStringArray.java -------------------------------------------------------------------------------- /src/class111/Code02_CouplesHoldingHands.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class111/Code02_CouplesHoldingHands.java -------------------------------------------------------------------------------- /src/class112/Code01_SortArrayByMovingItemsToEmptySpace.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class112/Code01_SortArrayByMovingItemsToEmptySpace.java -------------------------------------------------------------------------------- /src/class112/Code02_ZigZagConversion.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class112/Code02_ZigZagConversion.java -------------------------------------------------------------------------------- /src/class113/Code01_TravelMinFuel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class113/Code01_TravelMinFuel.java -------------------------------------------------------------------------------- /src/class113/Code02_MakingALargeIsland.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class113/Code02_MakingALargeIsland.java -------------------------------------------------------------------------------- /src/class113/Code03_MinimumCostToHireKWorkers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class113/Code03_MinimumCostToHireKWorkers.java -------------------------------------------------------------------------------- /src/class114/Code01_KthMissingPositiveNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code01_KthMissingPositiveNumber.java -------------------------------------------------------------------------------- /src/class114/Code02_ZigZagConversion.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code02_ZigZagConversion.java -------------------------------------------------------------------------------- /src/class114/Code03_MaximumWidthRamp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code03_MaximumWidthRamp.java -------------------------------------------------------------------------------- /src/class114/Code04_ThreeEqualParts.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code04_ThreeEqualParts.java -------------------------------------------------------------------------------- /src/class114/Code05_CouplesHoldingHands.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code05_CouplesHoldingHands.java -------------------------------------------------------------------------------- /src/class114/Code06_AbsToArrayFinalLength.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code06_AbsToArrayFinalLength.java -------------------------------------------------------------------------------- /src/class114/Code07_HeightAfterSubtreeRemoval.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code07_HeightAfterSubtreeRemoval.java -------------------------------------------------------------------------------- /src/class114/Code08_AsFarFromLandAsPossible.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code08_AsFarFromLandAsPossible.java -------------------------------------------------------------------------------- /src/class114/Code09_OrderlyQueue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class114/Code09_OrderlyQueue.java -------------------------------------------------------------------------------- /src/class115/Code01_StampingTheGrid.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class115/Code01_StampingTheGrid.java -------------------------------------------------------------------------------- /src/class115/Code02_SumOfSubSequenceWidths.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class115/Code02_SumOfSubSequenceWidths.java -------------------------------------------------------------------------------- /src/class115/Code03_SumOfDistancesInTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class115/Code03_SumOfDistancesInTree.java -------------------------------------------------------------------------------- /src/class116/Code01_MinimumNumberOfDaysToEatNOranges.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class116/Code01_MinimumNumberOfDaysToEatNOranges.java -------------------------------------------------------------------------------- /src/class116/Code02_HowManyObtuseAngles.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class116/Code02_HowManyObtuseAngles.java -------------------------------------------------------------------------------- /src/class117/Code01_BoatsToSavePeople.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code01_BoatsToSavePeople.java -------------------------------------------------------------------------------- /src/class117/Code02_MaximumProductSubarray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code02_MaximumProductSubarray.java -------------------------------------------------------------------------------- /src/class117/Code03_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code03_RotateImage.java -------------------------------------------------------------------------------- /src/class117/Code04_SmallestRangeCoveringElementsfromKLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code04_SmallestRangeCoveringElementsfromKLists.java -------------------------------------------------------------------------------- /src/class117/Code05_CandyProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code05_CandyProblem.java -------------------------------------------------------------------------------- /src/class117/Code06_MinWindowLength.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code06_MinWindowLength.java -------------------------------------------------------------------------------- /src/class117/Code07_RangesHasDominateNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class117/Code07_RangesHasDominateNumber.java -------------------------------------------------------------------------------- /src/class118/Code01_ExpressionCompute.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class118/Code01_ExpressionCompute.java -------------------------------------------------------------------------------- /src/class118/Code02_ComputeExpressionValue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class118/Code02_ComputeExpressionValue.java -------------------------------------------------------------------------------- /src/class118/Code03_CherryPickup.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class118/Code03_CherryPickup.java -------------------------------------------------------------------------------- /src/class119/Code01_LongestWellPerformingInterval.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class119/Code01_LongestWellPerformingInterval.java -------------------------------------------------------------------------------- /src/class119/Code02_MaximumFrequencyStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class119/Code02_MaximumFrequencyStack.java -------------------------------------------------------------------------------- /src/class119/Code03_LongestConsecutive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class119/Code03_LongestConsecutive.java -------------------------------------------------------------------------------- /src/class120/Code01_OddEvenJump.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class120/Code01_OddEvenJump.java -------------------------------------------------------------------------------- /src/class120/Code02_RegularExpressionMatch.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class120/Code02_RegularExpressionMatch.java -------------------------------------------------------------------------------- /src/class120/Code03_RemoveDuplicateLettersLessLexi.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class120/Code03_RemoveDuplicateLettersLessLexi.java -------------------------------------------------------------------------------- /src/class120/Code04_DreamCity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class120/Code04_DreamCity.java -------------------------------------------------------------------------------- /src/class121/Code01_MaxOneNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class121/Code01_MaxOneNumbers.java -------------------------------------------------------------------------------- /src/class121/Code02_MaxChunksToMakeSortedII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class121/Code02_MaxChunksToMakeSortedII.java -------------------------------------------------------------------------------- /src/class121/Code03_KokoEatingBananas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class121/Code03_KokoEatingBananas.java -------------------------------------------------------------------------------- /src/class121/Code04_SplitArrayLargestSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class121/Code04_SplitArrayLargestSum.java -------------------------------------------------------------------------------- /src/class121/Code05_MinWaitingTime.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class121/Code05_MinWaitingTime.java -------------------------------------------------------------------------------- /src/class122/Code01_UniqueSubstringsInWraparoundString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class122/Code01_UniqueSubstringsInWraparoundString.java -------------------------------------------------------------------------------- /src/class122/Code02_DistinctSubseqValue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class122/Code02_DistinctSubseqValue.java -------------------------------------------------------------------------------- /src/class123/Code01_SuperPalindromes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class123/Code01_SuperPalindromes.java -------------------------------------------------------------------------------- /src/class123/Code02_RecoverTreeFromPreorderTraversal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class123/Code02_RecoverTreeFromPreorderTraversal.java -------------------------------------------------------------------------------- /src/class124/Code01_RotateImage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code01_RotateImage.java -------------------------------------------------------------------------------- /src/class124/Code02_ZigZagPrintMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code02_ZigZagPrintMatrix.java -------------------------------------------------------------------------------- /src/class124/Code03_ZigZagConversion.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code03_ZigZagConversion.java -------------------------------------------------------------------------------- /src/class124/Code04_SubArrayMaxSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code04_SubArrayMaxSum.java -------------------------------------------------------------------------------- /src/class124/Code05_SubArrayMaxSumFollowUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code05_SubArrayMaxSumFollowUp.java -------------------------------------------------------------------------------- /src/class124/Code06_FindHalfMajority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code06_FindHalfMajority.java -------------------------------------------------------------------------------- /src/class124/Code07_FindKMajor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class124/Code07_FindKMajor.java -------------------------------------------------------------------------------- /src/class125/Code01_WaterKing.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class125/Code01_WaterKing.java -------------------------------------------------------------------------------- /src/class125/Code02_InsertDeleteGetRandom.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class125/Code02_InsertDeleteGetRandom.java -------------------------------------------------------------------------------- /src/class125/Code03_CandyProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class125/Code03_CandyProblem.java -------------------------------------------------------------------------------- /src/class125/Code04_ReservoirSampling.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class125/Code04_ReservoirSampling.java -------------------------------------------------------------------------------- /src/class125/Code05_KokoEatingBananas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class125/Code05_KokoEatingBananas.java -------------------------------------------------------------------------------- /src/class126/Code01_SplitNumberTimesMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class126/Code01_SplitNumberTimesMax.java -------------------------------------------------------------------------------- /src/class126/Code02_FillCellsUseAllColorsWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class126/Code02_FillCellsUseAllColorsWays.java -------------------------------------------------------------------------------- /src/class127/Code01_MinDaysDoneAllProjects.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class127/Code01_MinDaysDoneAllProjects.java -------------------------------------------------------------------------------- /src/class127/Code02_DivideArrayIntoIncreasingSequences.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class127/Code02_DivideArrayIntoIncreasingSequences.java -------------------------------------------------------------------------------- /src/class127/Code03_CharRedToPalindromeString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class127/Code03_CharRedToPalindromeString.java -------------------------------------------------------------------------------- /src/class127/Code04_EatFish.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class127/Code04_EatFish.java -------------------------------------------------------------------------------- /src/class128/Code01_CharRedToPalindromeString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code01_CharRedToPalindromeString.java -------------------------------------------------------------------------------- /src/class128/Code02_OddLevelEvenLevelSumClosed.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code02_OddLevelEvenLevelSumClosed.java -------------------------------------------------------------------------------- /src/class128/Code03_MaximumAveragePassRatio.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code03_MaximumAveragePassRatio.java -------------------------------------------------------------------------------- /src/class128/Code04_MakingALargeIsland.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code04_MakingALargeIsland.java -------------------------------------------------------------------------------- /src/class128/Code05_NthMagicalNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code05_NthMagicalNumber.java -------------------------------------------------------------------------------- /src/class128/Code06_FourKindsPaperQueryWays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code06_FourKindsPaperQueryWays.java -------------------------------------------------------------------------------- /src/class128/Code07_ValidPermutationsForDiSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class128/Code07_ValidPermutationsForDiSequence.java -------------------------------------------------------------------------------- /src/class129/Code01_GroupBuyTickets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class129/Code01_GroupBuyTickets.java -------------------------------------------------------------------------------- /src/class129/Code02_ChemicalProblem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class129/Code02_ChemicalProblem.java -------------------------------------------------------------------------------- /src/class129/Code03_ValidPermutationsForDiSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class129/Code03_ValidPermutationsForDiSequence.java -------------------------------------------------------------------------------- /src/class129/Code04_ShortestCommonSupersequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class129/Code04_ShortestCommonSupersequence.java -------------------------------------------------------------------------------- /src/class130/Code01_ReplaceTheSubstringForBalancedString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class130/Code01_ReplaceTheSubstringForBalancedString.java -------------------------------------------------------------------------------- /src/class130/Code02_ThreeEqualParts.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class130/Code02_ThreeEqualParts.java -------------------------------------------------------------------------------- /src/class130/Code03_KthMissingPositiveNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class130/Code03_KthMissingPositiveNumber.java -------------------------------------------------------------------------------- /src/class130/Code04_MaximumWidthRamp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class130/Code04_MaximumWidthRamp.java -------------------------------------------------------------------------------- /src/class131/Code01_KthMissingPositiveNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class131/Code01_KthMissingPositiveNumber.java -------------------------------------------------------------------------------- /src/class131/Code02_MagicScrollProbelm.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class131/Code02_MagicScrollProbelm.java -------------------------------------------------------------------------------- /src/class131/Code03_ValidRangeBetweenTwoArrays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class131/Code03_ValidRangeBetweenTwoArrays.java -------------------------------------------------------------------------------- /src/class132/Code01_ReplaceTheSubstringForBalancedString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class132/Code01_ReplaceTheSubstringForBalancedString.java -------------------------------------------------------------------------------- /src/class132/Code02_MinOpToMakeElementsEqual.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class132/Code02_MinOpToMakeElementsEqual.java -------------------------------------------------------------------------------- /src/class132/Code03_MaximumNumberOfTasksYouCanAssign.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class132/Code03_MaximumNumberOfTasksYouCanAssign.java -------------------------------------------------------------------------------- /src/class132/Code04_ValidRangeBetweenTwoArrays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class132/Code04_ValidRangeBetweenTwoArrays.java -------------------------------------------------------------------------------- /src/class132/Code05_OddLevelEvenLevelSumClosed.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class132/Code05_OddLevelEvenLevelSumClosed.java -------------------------------------------------------------------------------- /src/class132/Code06_MakeSumDivisibleByP.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class132/Code06_MakeSumDivisibleByP.java -------------------------------------------------------------------------------- /src/class133/Code01_RangesHasDominateNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class133/Code01_RangesHasDominateNumber.java -------------------------------------------------------------------------------- /src/class133/Code02_NumberOfSubsetGcdEqualK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class133/Code02_NumberOfSubsetGcdEqualK.java -------------------------------------------------------------------------------- /src/class134/Code01_ImageArrayAverageGotoHalf.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class134/Code01_ImageArrayAverageGotoHalf.java -------------------------------------------------------------------------------- /src/class134/Code02_MinScoreTriangulationPolygon.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class134/Code02_MinScoreTriangulationPolygon.java -------------------------------------------------------------------------------- /src/class134/Code03_MakeSumDivisibleByP.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class134/Code03_MakeSumDivisibleByP.java -------------------------------------------------------------------------------- /src/class135/Code01_PrintFromInnerLoop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class135/Code01_PrintFromInnerLoop.java -------------------------------------------------------------------------------- /src/class135/Code02_ValidateStackSequences.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class135/Code02_ValidateStackSequences.java -------------------------------------------------------------------------------- /src/class135/Code03_LeastNumberOfUniqueAfterRemovals.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class135/Code03_LeastNumberOfUniqueAfterRemovals.java -------------------------------------------------------------------------------- /src/class135/Code04_RemoveDuplicateLetters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class135/Code04_RemoveDuplicateLetters.java -------------------------------------------------------------------------------- /src/class135/Code05_LexicographicBiggerSumOfR.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class135/Code05_LexicographicBiggerSumOfR.java -------------------------------------------------------------------------------- /src/class136/Code01_HashTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class136/Code01_HashTest.java -------------------------------------------------------------------------------- /src/class136/Code02_Bit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class136/Code02_Bit.java -------------------------------------------------------------------------------- /src/class137/Code01_WhereCanReachNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class137/Code01_WhereCanReachNumber.java -------------------------------------------------------------------------------- /src/class137/Code02_HouseRobberIV.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class137/Code02_HouseRobberIV.java -------------------------------------------------------------------------------- /src/class138/Code01_JumpGameOnLoop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class138/Code01_JumpGameOnLoop.java -------------------------------------------------------------------------------- /src/class138/Code02_ReplaceTheSubstringForBalancedString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class138/Code02_ReplaceTheSubstringForBalancedString.java -------------------------------------------------------------------------------- /src/class138/Code03_PrintZigZagWithStar.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class138/Code03_PrintZigZagWithStar.java -------------------------------------------------------------------------------- /src/class138/Code04_SplitMaxProduct1.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class138/Code04_SplitMaxProduct1.java -------------------------------------------------------------------------------- /src/class138/Code05_SplitMaxProduct2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class138/Code05_SplitMaxProduct2.java -------------------------------------------------------------------------------- /src/class139/Code00_1_LongOverFlow.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class139/Code00_1_LongOverFlow.java -------------------------------------------------------------------------------- /src/class139/Code00_2_HashForString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class139/Code00_2_HashForString.java -------------------------------------------------------------------------------- /src/class139/Code00_2_HashForString2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class139/Code00_2_HashForString2.java -------------------------------------------------------------------------------- /src/class139/Code01_DiffLessKMatchNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class139/Code01_DiffLessKMatchNumber.java -------------------------------------------------------------------------------- /src/class140/Code01_MinWaitingTime.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class140/Code01_MinWaitingTime.java -------------------------------------------------------------------------------- /src/class140/Code02_KokoEatingBananas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class140/Code02_KokoEatingBananas.java -------------------------------------------------------------------------------- /src/class140/Code03_CrossRiver.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class140/Code03_CrossRiver.java -------------------------------------------------------------------------------- /src/class140/Code04_BecomeMostPopularShop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class140/Code04_BecomeMostPopularShop.java -------------------------------------------------------------------------------- /src/class140/Code05_OptimizeWaterDistributionInVillage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class140/Code05_OptimizeWaterDistributionInVillage.java -------------------------------------------------------------------------------- /src/class140/Code06_CountUniqueCharactersOfAllSubstrings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class140/Code06_CountUniqueCharactersOfAllSubstrings.java -------------------------------------------------------------------------------- /src/class141/Code01_CourseScheduleII.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code01_CourseScheduleII.java -------------------------------------------------------------------------------- /src/class141/Code02_TopologicalOrderBFS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code02_TopologicalOrderBFS.java -------------------------------------------------------------------------------- /src/class141/Code03_LoudAndRich.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code03_LoudAndRich.java -------------------------------------------------------------------------------- /src/class141/Code04_ConversionOfFinancialProducts.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code04_ConversionOfFinancialProducts.java -------------------------------------------------------------------------------- /src/class141/Code05_PaintingTheWalls.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code05_PaintingTheWalls.java -------------------------------------------------------------------------------- /src/class141/Code06_CountIncreasingQuadruplets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code06_CountIncreasingQuadruplets.java -------------------------------------------------------------------------------- /src/class141/Code07_StampingTheSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class141/Code07_StampingTheSequence.java -------------------------------------------------------------------------------- /src/class142/Code01_LongestSubstringWithoutRepeatingCharacters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class142/Code01_LongestSubstringWithoutRepeatingCharacters.java -------------------------------------------------------------------------------- /src/class142/Code02_MaxGap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class142/Code02_MaxGap.java -------------------------------------------------------------------------------- /src/class142/Code03_EditCost.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class142/Code03_EditCost.java -------------------------------------------------------------------------------- /src/class142/Code04_BoatsToSavePeople.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class142/Code04_BoatsToSavePeople.java -------------------------------------------------------------------------------- /src/class142/Code05_MinLengthForSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class142/Code05_MinLengthForSort.java -------------------------------------------------------------------------------- /src/class142/Code06_Drive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class142/Code06_Drive.java -------------------------------------------------------------------------------- /src/class143/Code01_MinDaysDoneAllProjects.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code01_MinDaysDoneAllProjects.java -------------------------------------------------------------------------------- /src/class143/Code02_RobotPassThroughBuilding.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code02_RobotPassThroughBuilding.java -------------------------------------------------------------------------------- /src/class143/Code03_SplitArrayLargestSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code03_SplitArrayLargestSum.java -------------------------------------------------------------------------------- /src/class143/Code04_CutOrPoison.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code04_CutOrPoison.java -------------------------------------------------------------------------------- /src/class143/Code05_KokoEatingBananas.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code05_KokoEatingBananas.java -------------------------------------------------------------------------------- /src/class143/Code06_FindKthSmallestPairDistance.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code06_FindKthSmallestPairDistance.java -------------------------------------------------------------------------------- /src/class143/Code07_FourNumbersMinusOne.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code07_FourNumbersMinusOne.java -------------------------------------------------------------------------------- /src/class143/Code08_MinWaitingTime.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithmzuo/publicclass2020/HEAD/src/class143/Code08_MinWaitingTime.java --------------------------------------------------------------------------------