/Coding-Decoded

LeetCode solutions

Primary LanguageJava

Coding Decoded

GitHub contributorsContributors StarsStars ForksForks Pull RequestPull Request IssuesIssues


The motive is to help the viewers of the Coding Decoded Channel land the job of their dreams and become a better engineer! It is a one stop solution for all your technical knowledge. Its primary focus is to help viewers build strong

  • Data structures and algorithm concepts
  • Coding Aptitude
  • System Design
  • Interviewing Aptitude and process
  • Deciphering Interviewer's mindset
  • Motivational talks

In the last year we have solved 600+ problems and published their videos. We daily publish solutions to leetcode monthly challenges. We also solve leetcode weekly contest questions as well.

A picture is worth 1000 words, and a video is worth 100000+ words

Each video has a pictorial representation of the algorithm, test cases walk through and cherry on top is live coding session.

Hard work paid off. We have already reached our first milestone of 1k+ subscribers and hope to build the largest coding community.


Get Aboard

If you also intend to get a job of your dreams, come join us, and become our companion. We will together make it possible.

Youtube Channel

Coding Decoded Coding Decoded Channel

All the videos are hosted here.

Discord Server

Discord Server Coding Decoded Discord

It is a place where peers of the community help each other with their queries, schedule mock interviews among themselves and bring in a little humour.


Interviewing and building coding Aptitude

S No Topic Playlist
1. Success storing and Interviewing Tips Link
2. How to build attitude to crack a coding interview Link
3. Weekly Contest Problem Link
4. System Design Link

Leetcode Challenges

S No Leetcode Weekly Contest Challenges Youtube Playlist
1. Leetcode Weekly Contest Solutions

S No Leetcode Monthly Challenge Youtube Playlist
1. June 2022 Solutions
2. May 2022 Solutions
3. April 2022 Solutions
4. March 2022 Solutions
5. February 2022 Solutions
6. January 2022 Solutions
7. December 2021 Solutions
8. November 2021 Solutions
9. October 2021 Solutions
10. September 2021 Solutions
11. August 2021 Solutions
12. July 2021 Solutions
13. June 2021 Solutions
14. May 2021 Solutions
15. April 2021 Solutions
16. March 2021 Solutions
17. February 2021 Solutions
18. January 2021 Solutions
19. December 2020 Solutions
20. November 2020 Solutions
21. September 2020 Solutions
22. August 2020 Solutions

S.NO Code Link Video Link
1 CountingBits Solution

S.NO Code Link Video Link
1 CountingBits Solution
2 IsSubsequence Solution
3 BaseballGame Solution
4 BackspaceStringCompare Solution
5 EvaluateDivision Solution
6 IsGraphBipartite Solution
7 SmallestStringWithSwaps Solution
8 MinCostToConnectAllPoints Solution
9 MinCostToConnectAllPoints Solution
10 MinCostToConnectAllPoints Solution
11 MinCostToConnectAllPoints Solution
12 PeekingIterator Solution
13 DesignUndergroundSystem Solution
14 DesignHashSet Solution
15 DesignHashMap Solution
16 BinarySearchTreeIterator Solution
17 RecoverBinarySearchTree Solution
18 KthSmallestElementInABST Solution
19 IncreasingOrderSearchTree Solution
20 TrimABinarySearchTree Solution
21 SearchinaBinarySearchTree Solution
22 ConvertBSTtoGreaterTree Solution
23 SpiralMatrixII Solution
24 GameofLife Solution
25 Shift2DGrid Solution
26 KthLargestElementinaStream Solution
27 3SumWithMultiplicity Solution
28 ContainerWithMostWater Solution
29 SwappingNodesinaLinkedList Solution
30 NextPermutation Solution
31 ValidPalindromeII Solution
32 ReverseString Solution

S.NO Code Link Video Link
1 CountingBits Solution
2 IsSubsequence Solution
3 ArithmeticSlices Solution
4 ChampagneTower Solution
5 DeleteAndEarn Solution
6 CountAllValidPickupAndDeliveryOptions Solution
7 MergeTwoSortedLists Solution
8 LinkedListCycle Solution
9 RemoveDuplicatesfromSortedListII Solution
10 AddTwoNumbers Solution
11 RotateList Solution
12 CopyListWithRandomPointer Solution
13 ValidParentheses Solution
14 SimplifyPath Solution
15 PartitionLabels Solution
16 SmallestStringWithAGivenNumericValue Solution
17 BoatsToSavePeople
18 TwoCityScheduling
19 BinarySearch
20 TheKWeakestRowsInAMatrix
21 SearchInRotatedSortedArrayII
22 SearchA2DMatrix
23 FindTheDuplicateNumber
24 SplitArrayLargestSum
S.NO Code Link Video Link
1 BestTimetoBuyandSellStock Solution
2 FindAllAnagramsinaString Solution
3 4SUMII Solution
4 ContiguousArray Solution
5 FindtheDifference Solution
6 KdiffPairsinanArray Solution
7 SubarraySumEqualsK Solution
8 PermutationInString Solution
9 Subsets Solution
10 CombinationSum Solution
11 RemoveKDigits Solution
12 RemoveCoveredIntervals Solution
13 MajorityElement Solution
14 CloneGraph Solution
15 SortList Solution
16 ShortestPathVisitingAllNodes Solution
17 MaximumWidthofBinaryTree Solution
S.NO Code Link Video Link
1 BurstBalloon Solution
2 PairsofSongsWithTotalDurationsDivisibleby60 Solution
3 FindTheTownJudge Solution
4 ComplementofBase10Integer Solution
4 ComplementofBase10Integer Solution
5 PalindromePartitioning Solution
6 CarPooling Solution
7 LinkedListrRandomNode Solution
8 CherryPickerII Solution
9 RobotBoundedInCircle Solution
9 AddBinary Solution
10 SumofRootToLeafBinaryNumbers Solution
11 InsertIntoABinarySearchTree.java Solution
12 MinimumNumberOfArrowsToBurstBalloons.java Solution
13 StringToIntegerAtoi.java Solution
14 JumpGameIV.java Solution
15 MaximizeDistancetoClosestPerson.java Solution
16 CanPlaceFlowers.java Solution
17 KokoEatingBananas.java Solution
18 GasStation.java Solution
19 StoneGameIV.java Solution
20 SequentialDigits.java Solution
21 DetectCapital.java Solution
22 ValidMountain.java Solution
22 MaximumXorOfTwoNumbersInAnArray.java Solution
22 AddAndSearchWord.java Solution
23 LaregstAreaOfHistorgam.java Solution
23 RotateArray.java Solution
24 RichestCustomerWealth.java Solution
  1. HouseRobber
  2. OddEvenLinkedList
  3. StreamOfCharacters
  4. MinCostToMoveChipsToSamePosition
  5. ConvertBinaryNumberInALinkedListToInteger
  6. BinaryTreeTilt
  7. DominoAndTrominoTiling
  8. NthMagicalNumber
  9. PartitionEqualSubsetSum
  10. ConsecutiveCharacters
  11. RangeSumofBST
  12. InsertionSortList
  13. MinimumHeightTrees
  14. MaximalSquare
  15. MinimumAbsoluteDifference
  16. PowerOfTwo
  17. CourseScheduleII
  18. MergeInterval
  19. KClosestPointstoOrigin
  20. NumberComplement
  21. MiddleoftheLinkedList
  22. PopulatingNextRightPointersInEachNode
  23. SmallestIntegerDivisiblebyK
  24. MaximumDifferenceBetweenNodeAndAncestor
  1. SurroundedRegions - Day 1
  2. UniquePathsIII - Day 2
  3. ArrangingCoins - Day 5
  4. SingleNumbersIII - Day 6
  5. MultiplyStrings - Day 7
  6. UniqueBinarySearchTrees - Day 8
  7. NumberOfValidWordsForEachPuzzle - Day 9
  8. BestTimeToBuyAndSellStockII - Day 10
  9. MinimumValueToGetPositiveStepbyStepSum - Day 11
  10. RemoveLinkedListElements - Day 12
  11. DailyTemperatures - Day 13
  12. CombinationIterator - Day 14
  13. LargestDivisibleSubset - Day 15
  14. KthNumberinMultiplicationTable - Day 16
  15. UniquePaths - Day 17
  16. FindAllNumbersDisappearedinanArray - Day 18
  17. HammingDistance - Day 19
  18. SingleElementinaSortedArray - Day 20
  19. ConstructBinaryTreeFromInorderAndPostorderTraversal - Day 21
  20. LargestComponentSizeByCommonFactor - Day 23
  21. IntervalListIntersections - Day 24
  22. SearchInsertPosition - Day 26
  23. ProductOfArrayExceptSelf - Day 27
  24. AllPathsFromSourceToTarget - Day 28
  25. AccountsMerge - Day 29
  26. MaximalRectangle - Day 30
  1. LongestCommonSubsequence - Day 1
  2. DungeonGame - Day 2
  3. JumpGame - Day 3
  4. IslandPerimeter - Day 4
  5. ClimbingStairs - Day 5
  6. FindAllDuplicatesinanArray - Day 6
  7. WordSearch - Day 7
  8. ImplementTrie - Day 8
  9. WordSearchII - Day 9
  10. BitwiseAndOfNumbersRange - Day 10
  11. DiameterOfBinaryTree - Day 11
  12. GuessNumberHigherorLower - Day 12
  13. ConstructBinarySearchTreeFromPreorderTraversal - Day 13
  14. PerfectSquares - Day 14
  15. BestTimeToBuyAndSellStockWithCooldown - Day 15
  16. BestTimetoBuyandSellStockIII - Day 16
  17. PathSumIII - Day 17
  18. CousinsInBinaryTree - Day 18
  19. NextGreaterElementI - Day 19
  20. ReverseWordsInAString - Day 20
  21. InsertDeleteGetRandomO(1) - Day 21
  22. SortCharactersByFrequency) - Day 22
  23. FindMinimumInRotatedSortedArrayII - Day 23
  24. CountCompleteTreeNodes - Day 24
  25. MinStack - Day 25
  26. InvertBinaryTree - Day 26
  27. SortColors - Day 27
  28. LongestDuplicateSubstring - Day 27
  29. FlattenaMultilevelDoublyLinkedList - Day 31
  1. ArrayNesting - Day 1
  2. UniqueBinarySearchTreesII - Day 2
  3. ErectTheFence - Day 3
  4. SumOfDistancesInTree - Day 4
  5. OrderlyQueue - Day 5
  6. SlowestKey - Day 6
  7. ReverseLinkedList - Day 7
  8. ShiftingLetter - Day 8
  9. LargestPlusSign - Day 9
  10. ArithmeticSlicesIISubsequence - Day 10
  11. BasicCalculator - Day 10
  12. ReachableNodesInSubdividedGraph - Day 12
  13. MaximumNumberofBalloons - Day 13
  14. ReverseOnlyLetters - Day 14
  15. LongestTurbulentSubarray - Day 15
  16. SpiralMatrix - Day 16
  17. IntersectionOfTwoArraysII - Day 17
  18. ExpressionAddOperators - Day 18
  19. Distinct Subsequences - Day 19
  20. FindWinneronaTicTacToeGame - Day 19
  21. MaxConsecutiveOnes - Day 21
  22. MaximumLengthofaConcatenatedStringwithUniqueCharacters - Day 22
  23. BreakAPalindrome - Day 23
  24. NthTribonacciNumber - Day 24
  25. ShortestPathinaGridwithObstaclesElimination - Day 25
  26. TransformtoChessboard - Day 26
  27. UniqueEmailAddresses - Day 27
  28. SortArrayByParityII - Day 28
  29. SplitLinkedListinParts - Day 29
  30. PartitiontoKEqualSumSubsets - Day 30

August 2021 Leetcode Solution Playlist

  1. MakingALargeIsland - Day 1
  2. StoneGame - Day 5
  3. NaryTreeLevelOrderTraversal - Day 6
  4. PalindromePartitioningII - Day 7
  5. AddStrings - Day 9
  6. FlipStringtoMonotoneIncreasing - Day 10
  7. ArrayofDoubledPairs - Day 11
  8. GroupAnangrams - Day 12
  9. SetMatrixZeroes - Day 13
  10. RemoveBoxes - Day 14
  11. MinimumWindowSubstring - Day 15
  12. RangeSumQueryImmutable - Day 16
  13. CountGoodNodesinBinaryTree - Day 17
  14. MaximumProductofSplittedBinaryTree - Day 19
  15. ValidSudoku - Day 20
  16. SudokuSolver - Day 21
  17. TwoSumIVInputIsABST - Day 23
  18. ComplexNumberMultiplication - Day 24
  19. SumofSquareNumbers - Day 25
  20. VerifyPreorderSerializationofaBinaryTree - Day 26
  21. LongestUncommonSubsequenceII - Day 27
  22. MaximumProfitInJobScheduling - Day 28
  23. PatchingArray - Day 29
  24. RangeAdditionII - Day 30
  25. FindMinimuminRotatedSortedArray - Day 30
  26. InvertBinaryTree - Day 26
  1. GrayCode - Day 1
  2. FindKClosestElements - Day 2
  3. MaxSumofRectangleNoLargerThanK - Day 3
  4. CountVowelsPermutation - Day 4
  5. ReshapeTheMatrix - Day 5
  6. ReduceArraySizetoTheHalf - Day 6
  7. KthSmallestElementinaSortedMatrix - Day 7
  8. MaximumLengthofRepeatedSubarray - Day 8
  9. LongestIncreasingSubsequence - Day 9
  10. DecodeWaysII - Day 10
  11. FindMedianfromDataStream - Day 11
  12. IsomorphicStrings - Day 12
  13. FindPeakElement - Day 13
  14. CustomSortString - Day 14
  15. ValidTriangleNumber - Day 15
  16. 4Sum - Day 16
  17. ThreeEqualParts - Day 17
  18. ReverseNodesinkGroup - Day 18
  19. LowestCommonAncestorofaBinarySearchTree - Day 19
  20. ShuffleAnArray - Day 20
  21. PushDominoes - Day 21
  22. PartitionArrayintoDisjointIntervals - Day 22
  23. BinaryTreePruning - Day 23
  24. WordLadderII - Day 24
  25. NonNegativeIntegerswithoutConsecutiveOnes - Day 25
  26. ConvertSortedArraytoBinarySearchTree - Day 26
  27. 3SumClosest - Day 27
  28. BeautifulArray - Day 28
  29. 01Matrix - Day 29
  30. MapSumPairs - Day 30
  31. TrappingRainWater - Day 31
  1. MaxAreaofIsland - Day 1
  2. InterleavingString - Day 2
  3. MaximumAreaofaPieceofCakeAfterHorizontalandVerticalCuts - Day 3
  4. MaximumAreaofaPieceofCakeAfterHorizontalandVerticalCutsg_Python
  5. OpenTheLock - Day 4
  6. MaximumPerformanceofaTeam - Day 5
  7. LongestConsecutiveSequence - Day 6
  8. MinCostClimbingStairs - Day 7
  9. ConstructBinaryTreefromPreorderandInorderTraversal - Day 8
  10. JumpGameVI - Day 9
  11. MyCalendarI - Day 10
  12. StoneGameVII - Day 11
  13. MinimumNumberofRefuelingStops - Day 12
  14. PalindromePairs - Day 13
  15. MaximumUnitsonaTruck - Day 14
  16. MaximumUnitsonaTruck - Day 15
  17. GenerateParentheses - Day 16
  18. NumberofSubarrayswithBoundedMaximum - Day 17
  19. RangeSumMutable - Day 18
  20. KInversePairsArray - Day 19
  21. SwiminRisingWater - Day 20
  22. Pascal'sTriangle - Day 21
  23. NumberofMatchingSubsequences - Day 22
  24. ReverseLinkedListII - Day 23
  25. OutofBoundaryPaths - Day 24
  26. RedundantConnection - Day 25
  27. CountOfSmallerNumbersAfterSelf - Day 26
  28. Candy - Day 27
  29. RemoveAllAdjacentDuplicatesInString - Day 28
  30. MaxConsecutiveOnesIII - Day 29
  31. LowestCommonAncestorofaBinaryTree - Day 30
  1. PrefixAndSuffixSearch
  2. CourseScheduleIII
  3. RunningSumof1dArray
  4. Non-decreasingArray
  5. JumpGameII
  6. ConvertSortedListToBST
  7. DeleteOperationforTwoStrings
  8. SuperPalindrome
  9. ConstructTargetArrayWithMultipleSums
  10. CountPrimes
  11. MaximumPointsYouCanObtainfromCards
  12. RangeSumQuery2D-Immutable
  13. AmbiguousCoordinates
  14. FlattenBinaryTreetoLinkedList
  15. BinaryCameraTree
  16. LongestStringChainSolution
  17. FindDuplicateFileinSystem
  18. MinimumMovestoEqualArrayElementsII
  19. MinimumMovestoEqualArrayElementsII
  20. BinaryTreeLevelOrderTraversal
  21. FindandReplacePattern
  22. NQueen
  23. FindTheShortestSuperstring
  24. ToLowerCase
  25. EvaluateReversePolishNotation
  26. PartitioningIntoMinimumNumberOfDeciBinaryNumbersg
  27. maximum-product-of-word-lengths
  28. MaximumErasureValue
  29. NQueenII
  30. MaximumGap
  31. SearchSuggestionsSystem
  1. PalindromeLinkedList
  2. OnesAndZeros
  3. LongestValidParentheses
  4. DesignCircularQueue
  5. GlobalandLocalInversions
  6. MinimumOperationstoMakeArrayEqual
  7. determine-if-string-halves-are-alike
  8. LetterCombinationPhone
  9. ValidAlienDictionary
  10. LongestIncreasingPath
  11. DeepestLeavesSum
  12. BeautifulArrangementII
  13. FlattenedNestedList
  14. PartitionList
  15. FibonacciNos
  16. remove-all-adjacent-duplicates-in-string-ii
  17. PowerfulIntegers
  1. Distribute Candies
  2. Set Mismatch
  3. Missing Number
  4. Intersection Of Two Linked Lists
  5. AverageofLevelsinBinaryTree
  6. ShortEncodingofWords
  7. DesignHashMap
  8. AddRowToTree
  9. IntegertoRoman
  10. CoinChange
  11. Check-if-a-string-contains-allbinary-codesofsize-K
  12. BinaryTreesWithFactors
  13. SwappingNodesinaLinkedList
  14. EncodeandDecodeTinyURL
  15. BestTimetoBuyandSellStockwithTransactionFee
  16. GenerateRandomPointinaCircle
  17. WiggleSubSequnce
  18. KeysAndRooms
  19. DesignUndergroundSystem
  20. ReorderedPowerOf2
  21. SpellChecker
  22. 3SumWithMultiplicity
  23. AdvantageShuffle
  24. PacificAltaticWaterFlow
  25. WordsSubset
  26. PalindromicSubStrings
  27. FlipBinaryTreeToMatchPreorderTraversal
  28. RussianDollEnvelopes
  29. StampingTheSequence
  1. No Of 1 bits
  2. Trim Binary Search Tree
  3. Linked List Cycle
  4. LongestHarmoinousSubsequence
  5. SimiplifyPaths
  6. Binary Tree Right Side View
  7. Shortest Distance to a Character
  8. Peeking Iterator
  9. convert-bst-to-greater-tree
  10. Copy List with Random Pointer
  11. Valid Anagram
  12. NumberofStepstoReduceNumbertoZero
  13. ShortestPathInAGird
  14. IsGraphBipairate
  15. TheKWeakestRowsinaMatrix
  16. LetterCasePermutation
  17. ContainerWithMostWater
  18. ArthimeticSlicing
  19. MinimumRemovetoMakeValidParentheses
  20. ScoreOfParentheses
  21. ShortestUnsortedContinuousSubarray
  22. ValidateStackSequences
  23. DivideTwoIntegers
  24. MaximumFrequencyStack
  1. Check Array Formation Through Concatenation
  2. Find a Corresponding of a Binary Tree in a of That Tree
  3. Beautiful Arrangement
  4. Merge two sorted list
  5. RemoveDuplicatesfromSortedListII
  6. kth-missing-positive-number
  7. Check If Two String Arrays are Equivalent
  8. LongestSubstringWithoutRepeatingCharacters
  9. WordLadder
  10. MergeSortedArrays
  11. AddTwoNumbers
  12. BoatsToSavePeople
  13. MinimumOperationsToReduceXToZero
  14. GetMaximumInGeneratedArray
  15. KthLargestElementInArray
  16. CountSortedVowelStrings
  17. MaxPairsWithKSum
  18. LongestPalindromicSubstring.java
  19. ValidParentheses.java
  20. FindMostCompetitiveSubsequence.java
  21. Determin2StringsAreClose.java
  22. SortMatixDaigonally.java
  23. MergeKSortedLists
  24. MergeKSortedLists
  25. CheckIfAll1'sAreatLeastLengthKPlacesAway
  26. PathWithMinimumEffort
  27. concatenation-of-consecutive-binary-numbers
  28. smallest-string-with-a-given-numeric-value
  29. VerticalOrderOfABinaryTree
  30. MinimizeDeviationinArray
  31. NextPermutation
  1. Maximum Depth Of Binary Tree
  2. Linked List Random Node
  3. Increasing Order SearchTree
  4. Kth Factor Of N
  5. Can Place Flower
  6. PopulatingNextRightPointersInEachNodeII
  7. RemoveDuplicatesFromSortedArrayII
  8. Smallest Subtree with all the Deepest Nodes
  9. Burst Balloon
  10. Palindrome Partitioning
  11. Squares Of Sorted Array
  12. Validate Binary Search Tree
  13. 4Sum II
  14. Increasing Triplet Sequence
  15. Cherry PickerII
  16. SmallestRangeII
  17. BalancedBinaryTree
  18. NextGreaterElementIII
  19. SwapNodesInPairs
  20. Diagonal traverse
  21. Decode Ways
  22. Jump Game IV
  23. Reach A Number
  24. PseudoPalindromic Paths In A Binary Tree
  25. Game Of Life
  26. LaregstAreaOfHistorgam
  1. Merge Intervals
  2. Decode String
  3. RotatedSearchArrayII
  4. NumbersAtNGivenDigitSet
  5. UniqueMorseCodeWords
  6. HouseRobberIII
  7. BasicCalculatorII
  8. SmallestIntegerDivisiblebyK
  9. SubstringWithAtLeastKRepeatingCharacters
  10. PartitionEqualSubsetSum
  11. PartitionEqualSubsetSum
  12. JumpGameIII
  13. TheSkyLineProblem
  1. Largest Time for Given Digits
  2. Contains Duplicate III
  3. RepeatedSubstringPattern
  4. PartitionLabels
  5. AllElementsinTwoBinarySearchTrees
  6. ImageOverlap
  7. WordPattern
  8. SumofRootToLeafBinaryNumbers
  9. CompareVersionNumbers
  10. BullsAndCows
  11. MaximumProductSubArray
  12. Comination Sum III
    1. Combination Sum without using Start variable
    2. Combination Sum using Start variable -InsertIntervals
  1. Detect Capitals
  2. Design HashSet
    1. Design HashSet Time Extensive
    2. Design HashSet Space Extensive
  3. Valid Palindrome
  4. Power of Four
  5. Add and Search Word
  6. FindAllDuplicate
  7. Vertical Travesal of Binary Tree
  8. Path Sum III
  9. Rotting Oranges
  10. Excel Sheet Column Number
  11. H Index
  12. PascalsTriangleII
  13. CombinationIterator
  14. Longest Palindrome
  15. Non Overlapping Intervals
  16. Best Time To Buy And Sell Stock III.java
  17. Distribute Candies To People.java
  18. Numbers With Same Consecutive Differences.java
  19. GoatLatin.java
  20. ReoderList
  21. SortArrayByParity
  22. RandomPointInNonOverlappingRectangles
  23. Stream of Characters
  24. Sum Of Left Leaves
  25. Minimum Cost Of Tickets
  26. Fizz Buzz
  27. First Right Interval
  28. Implement Rand10 Using Rand7
  29. PancakeSorting
  30. LargestComponentSizebyCommonFactor
  31. DeleteANodeInBst
  1. Longest Increasing Subsequence

Follow Us

SubscribeSubscribe SubscribeInstagram Subscribe Linkedin