Skip to content

leodinas-hao/leetcode-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csharp exercises

index

Bitwise

  • BitwiseAndOfNumbersRange
  • CountingBits
  • NumberOfOneBits
  • PowerOfTwo
  • ReverseBits
  • SingleNumber
  • Subsets
  • SubsetsII

Binary Search

  • ArrangingCoins
  • AvoidFloodInTheCity
  • CheckIfNAndItsDoubleExist
  • CountNegativeNumbersInASortedMatrix
  • FindAPeakElementII
  • FindFirstAndLastPositionOfElementInSortedArray
  • FindMinimumInRotatedSortedArray
  • FindMinimumInRotatedSortedArrayII
  • FindPeakElement
  • FindRightInterval
  • FindSmallestLetterGreaterThanTarget
  • FindTheDistanceValueBetweenTwoArrays
  • FindTheDuplicateNumber
  • FindTheSmallestDivisorGivenAThreshold
  • KClosestPointsToOrigin
  • KokoEatingBananas
  • KDiffPairsInAnArray
  • MagneticForceBetweenTwoBalls
  • MaximumDistanceBetweenAPairOfValues
  • MaximumNumberOfRemovableCharacters
  • MaximumSideLengthOfASquareWithSumLessThanOrEqualToThreshold
  • MaximumValueAtAGivenIndexInABoundedArray
  • MinimumAbsoluteSumDifference
  • MinimumLimitOfBallsInABag
  • MinimumNumberOfDaysToMakeMBouquets
  • MinimumSpeedToArriveOnTime
  • OnlineElection
  • RandomPickWithWeight
  • Search2DMatrix
  • SearchInRotatedSortedArray
  • SearchInRotatedSortedArrayII
  • SingleElementInASortedArray
  • SpecialArrayWithXElementsGreaterThanOrEqualX
  • SplitArrayLargestSum
  • SubarrayProductLessThanK
  • SumOfMutatedArrayClosestToTarget
  • SumOfSquareNumbers
  • TimeBasedKeyValueStore
  • TwoSumIIInputArrayIsSorted
  • UglyNumberIII
  • ValidTriangleNumber
  • WaysToSplitArrayIntoThreeSubarrays

Two Pointers

  • AssignCookies
  • BackspaceStringCompare
  • ContainerWithMostWater
  • FrequencyOfTheMostFrequentElement
  • IntersectionOfTwoArraysII
  • IntervalListIntersections
  • MaximumDistanceBetweenAPairOfValues
  • MinimumSizeSubarraySum
  • MoveZeroes
  • RemoveDuplicatesFromSortedListII
  • RemoveNthNodeFromEndOfList
  • RotateArray
  • SquaresOfASortedArray
  • SubarrayProductLessThanK
  • ThreeSum
  • TrappingRainWater
  • TwoSumIIInputArrayIsSorted

Dynamic Programming (DP)

  • ArithmeticSlices
  • BestSightseeingPair
  • BestTimeToBuyAndSellStock
  • BestTimeToBuyAndSellStockII
  • BestTimeToBuyAndSellStockWithCooldown
  • BestTimeToBuyAndSellStockWithTransactionFee
  • ClimbingStairs
  • CoinChange
  • CoinChange2
  • CombinationSumIV
  • DecodeWays
  • DeleteAndEarn
  • DeleteOperationForTwoStrings
  • EditDistance
  • FibonacciNumber
  • HIndexII
  • HouseRobber
  • HouseRobberII
  • JumpGameII
  • LongestCommonSubsequence
  • LongestIncreasingSubsequence
  • LongestPalindromicSubsequence
  • LongestPalindromicSubstring
  • UniqueBinarySearchTrees
  • Matrix01
  • MatrixBlockSum
  • MaximalSquare
  • MaximumProductSubarray
  • MaximumSubarray
  • MinCostClimbingStairs
  • MinimumFallingPathSum
  • MinimumPathSum
  • NthTribonacciNumber
  • NumberOfLongestIncreasingSubsequence
  • PartitionEqualSubsetSum
  • PascalTriangle
  • PascalTriangleII
  • PerfectSquares
  • RangeSumQuery2DImmutable
  • TrappingRainWater
  • Triangle
  • UglyNumberII
  • UniquePaths
  • UniquePathsII
  • WiggleSubsequence
  • WordBreak

Backtracking

  • Combinations
  • CombinationSum
  • CombinationSumII
  • LargestTimeForGivenDigits
  • Permutations
  • PermutationsII
  • Subsets
  • SubsetsII

Breadth-First Search (BFS)

  • BinaryTreeLevelOrderTraversal
  • BusRoutes
  • CountCompleteTreeNodes
  • JumpGameII
  • JumpGameIII
  • KeysAndRooms
  • Matrix01
  • MinimumDepthOfBinaryTree
  • MinimumGeneticMutation
  • MinimumJumpsToReachHome
  • NearestExitFromEntranceInMaze
  • OpenTheLock
  • PerfectSquares
  • ReorderRoutesToMakeAllPathsLeadToTheCityZero
  • RottingOranges
  • ShortestBridge
  • ShortestPathInBinaryMatrix
  • ShortestPathVisitingAllNodes
  • ShortestPathWithAlternatingColors
  • WaterAndJugProblem
  • WordLadder

Depth-First Search (DFS)

  • AllPathsFromSourceToTarget
  • BalancedBinaryTree
  • CountSubIslands
  • CourseScheduleII
  • DiameterOfBinaryTree
  • EvaluateDivision
  • FindEventualSafeStates
  • FloodFill
  • GenerateParentheses
  • InvertBinaryTree
  • IsGraphBipartite
  • LetterCasePermutation
  • LetterCombinationsOfAPhoneNumber
  • LinkedListInBinaryTree
  • LowestCommonAncestorOfABinarySearchTree
  • MaxAreaOfIsland
  • MaximumDepthOfBinaryTree
  • MergeTwoBinaryTrees
  • MinimumDepthOfBinaryTree
  • NQueens
  • NumberOfClosedIslands
  • NumberOfEnclaves
  • NumberOfIslands
  • NumberOfProvinces
  • PacificAtlanticWaterFlow
  • PathSumIII
  • PossibleBipartition
  • RangeSumOfBST
  • ShortestBridge
  • ShortestPathVisitingAllNodes
  • SubtreeOfAnotherTree
  • SurroundedRegions
  • SymmetricTree
  • TimeNeededToInformAllEmployees
  • ValidateBinarySearchTree
  • WhereWillTheBallFall
  • WordSearch

??

  • NumberOfOperationsToMakeNetworkConnected

refs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages