├── .gitignore ├── Arrays ├── Diagnol.py ├── Flip.py ├── Hotel.py ├── Interval.py ├── Interval2.py ├── Largestnum.py ├── Maxdist.py ├── Maxgap.py ├── Maxset.py ├── Maxsum.py ├── Narray.py ├── Nextperm.py ├── Pascal1.py ├── Pascal2.py ├── Plus1.py ├── Positive.py ├── Repeat3.py ├── RepeatArr.py ├── Rotate2D.py ├── Setzero.py ├── Spiral.py ├── Wave.py └── reach.py ├── Backtracking ├── Comb.py ├── Comb2.py ├── Combinations.py ├── LetterPhone.py ├── NQueens.py ├── PalinPart.py ├── Parenthesis.py ├── PermSeq.py ├── Permutations.py ├── Subset.py ├── Subset2.py └── Sudoku.py ├── Binary Search ├── Books.py ├── InsertPos.py ├── MedianArray.py ├── Paint.py ├── Pow.py ├── Search2D.py ├── SearchRange.py ├── SearchRotated.py └── Sqrt.py ├── Bit Manipulation ├── CntBits.py ├── Divide.py ├── Num1Bits.py ├── Revbits.py ├── Single.py └── Single2.py ├── Dynamic Programming ├── Adjacent.py ├── AnyTwo.py ├── Arrange2.py ├── AvgSet.py ├── CNTTrue.py ├── CoinChange2.py ├── DecodeWays.py ├── DistinctSubseq.py ├── Dungeon.py ├── EditDistance.py ├── IsInterleave.py ├── Jump1.py ├── Jump2.py ├── LIS.py ├── LongestParen.py ├── MaxPathTree.py ├── MaxProd.py ├── MaxRectangle.py ├── Maxcoin.py ├── MinPath.py ├── Palin2.py ├── Paths2.py ├── Regex.py ├── Regex2.py ├── RodCut.py ├── Scramble.py ├── Stairs.py ├── Stocks1.py ├── Stocks2.py ├── Stocks3.py ├── Triangle.py ├── UniqueTrees.py ├── WordBreak.py └── WordBreak2.py ├── Graphs ├── Black.py ├── CloneGraph.py ├── Fibsum.py ├── Knight.py ├── LevelOrder.py ├── List2Tree.py ├── Multiple.cpp ├── Multiple.py ├── StepNum.py ├── Surrounding.py ├── WordLadder1.py ├── WordLadder2.py └── WordSearch.py ├── Greedy ├── Bulbs.py ├── Candy.py ├── Gas.py ├── Majority.py ├── MaxP3.py ├── Mice.py └── Seats.py ├── Hashing ├── 2Sum.py ├── 4Sum.py ├── Anagrams.py ├── Colorful.py ├── CopyList.py ├── Equal.py ├── Fraction.py ├── LSZero.py ├── Points.py ├── RepeatStr.py ├── Substring.py ├── ValidSudoku.py └── WindowStr.py ├── Heaps and Maps ├── DNums.py ├── LRU.py └── MergeKList.py ├── Linked Lists ├── AddNum.py ├── InsertionSort.py ├── LPalin.py ├── ListCycle.py ├── Merge.py ├── NthEnd.py ├── PartitionList.py ├── RemDupLink.py ├── RemDupLink2.py ├── ReorderList.py ├── ReverseList.py ├── SortList.py └── SwapL.py ├── Math ├── Arrange.py ├── Excel1.py ├── Excel2.py ├── Factorial.py ├── Palindrome.py ├── Paths.py ├── Power2.py ├── PrimeSum.py ├── Rank.py ├── Rank2.py ├── Revint.py └── gcd.py ├── README.md ├── Stacks and Queues ├── Braces.py ├── EvalExp.py ├── Histogram.py ├── MinStack.py ├── Nearest.py ├── Rain.py ├── SimplifyPath.py └── SlidingMax.py ├── Strings ├── AddBinary.py ├── AtoI.py ├── Count_Say.py ├── IPAddress.py ├── Int2Roman.py ├── LCP.py ├── LengthLast.py ├── LongestPalin.py ├── Multiply.py ├── Palindrome.py ├── Power.py ├── PrettyJSON.py ├── Revword.py ├── Roman2Int.py ├── StrStr.py ├── TextJust.py ├── ValidNumber.py ├── Version.py └── ZigZag.py ├── Trees ├── ArrayBST.py ├── Balanced.py ├── BinTree.py ├── BinTree2.py ├── Cartesian.py ├── Flatten.py ├── Inorder.py ├── Invert.py ├── KthSmallest2.py ├── LCA.py ├── MaxDepth.py ├── MinDepth.py ├── NextPointer2.cpp ├── NextPointer2.py ├── Order.py ├── Path.py ├── Path2.py ├── Postorder.py ├── Prefix.py ├── Preorder.py ├── Recover.py ├── SameTree.py ├── SumRootLeaf.py ├── Symmetry.py ├── T2Sum.py ├── TreeIterator.py └── ZigZagTree.py └── Two pointers ├── 3Sum.py ├── 3SumZero.py ├── Array3Ptr.py ├── Container.py ├── Diffk.py ├── IntersectArr.py ├── MaxOne.py ├── Merge.py ├── RemDup.py ├── RemDup2.py ├── RemElem.py └── SortColor.py /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | -------------------------------------------------------------------------------- /Arrays/Diagnol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Diagnol.py -------------------------------------------------------------------------------- /Arrays/Flip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Flip.py -------------------------------------------------------------------------------- /Arrays/Hotel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Hotel.py -------------------------------------------------------------------------------- /Arrays/Interval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Interval.py -------------------------------------------------------------------------------- /Arrays/Interval2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Interval2.py -------------------------------------------------------------------------------- /Arrays/Largestnum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Largestnum.py -------------------------------------------------------------------------------- /Arrays/Maxdist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Maxdist.py -------------------------------------------------------------------------------- /Arrays/Maxgap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Maxgap.py -------------------------------------------------------------------------------- /Arrays/Maxset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Maxset.py -------------------------------------------------------------------------------- /Arrays/Maxsum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Maxsum.py -------------------------------------------------------------------------------- /Arrays/Narray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Narray.py -------------------------------------------------------------------------------- /Arrays/Nextperm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Nextperm.py -------------------------------------------------------------------------------- /Arrays/Pascal1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Pascal1.py -------------------------------------------------------------------------------- /Arrays/Pascal2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Pascal2.py -------------------------------------------------------------------------------- /Arrays/Plus1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Plus1.py -------------------------------------------------------------------------------- /Arrays/Positive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Positive.py -------------------------------------------------------------------------------- /Arrays/Repeat3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Repeat3.py -------------------------------------------------------------------------------- /Arrays/RepeatArr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/RepeatArr.py -------------------------------------------------------------------------------- /Arrays/Rotate2D.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Rotate2D.py -------------------------------------------------------------------------------- /Arrays/Setzero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Setzero.py -------------------------------------------------------------------------------- /Arrays/Spiral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Spiral.py -------------------------------------------------------------------------------- /Arrays/Wave.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/Wave.py -------------------------------------------------------------------------------- /Arrays/reach.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Arrays/reach.py -------------------------------------------------------------------------------- /Backtracking/Comb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Comb.py -------------------------------------------------------------------------------- /Backtracking/Comb2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Comb2.py -------------------------------------------------------------------------------- /Backtracking/Combinations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Combinations.py -------------------------------------------------------------------------------- /Backtracking/LetterPhone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/LetterPhone.py -------------------------------------------------------------------------------- /Backtracking/NQueens.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/NQueens.py -------------------------------------------------------------------------------- /Backtracking/PalinPart.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/PalinPart.py -------------------------------------------------------------------------------- /Backtracking/Parenthesis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Parenthesis.py -------------------------------------------------------------------------------- /Backtracking/PermSeq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/PermSeq.py -------------------------------------------------------------------------------- /Backtracking/Permutations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Permutations.py -------------------------------------------------------------------------------- /Backtracking/Subset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Subset.py -------------------------------------------------------------------------------- /Backtracking/Subset2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Subset2.py -------------------------------------------------------------------------------- /Backtracking/Sudoku.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Backtracking/Sudoku.py -------------------------------------------------------------------------------- /Binary Search/Books.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/Books.py -------------------------------------------------------------------------------- /Binary Search/InsertPos.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/InsertPos.py -------------------------------------------------------------------------------- /Binary Search/MedianArray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/MedianArray.py -------------------------------------------------------------------------------- /Binary Search/Paint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/Paint.py -------------------------------------------------------------------------------- /Binary Search/Pow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/Pow.py -------------------------------------------------------------------------------- /Binary Search/Search2D.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/Search2D.py -------------------------------------------------------------------------------- /Binary Search/SearchRange.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/SearchRange.py -------------------------------------------------------------------------------- /Binary Search/SearchRotated.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/SearchRotated.py -------------------------------------------------------------------------------- /Binary Search/Sqrt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Binary Search/Sqrt.py -------------------------------------------------------------------------------- /Bit Manipulation/CntBits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Bit Manipulation/CntBits.py -------------------------------------------------------------------------------- /Bit Manipulation/Divide.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Bit Manipulation/Divide.py -------------------------------------------------------------------------------- /Bit Manipulation/Num1Bits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Bit Manipulation/Num1Bits.py -------------------------------------------------------------------------------- /Bit Manipulation/Revbits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Bit Manipulation/Revbits.py -------------------------------------------------------------------------------- /Bit Manipulation/Single.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Bit Manipulation/Single.py -------------------------------------------------------------------------------- /Bit Manipulation/Single2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Bit Manipulation/Single2.py -------------------------------------------------------------------------------- /Dynamic Programming/Adjacent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Adjacent.py -------------------------------------------------------------------------------- /Dynamic Programming/AnyTwo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/AnyTwo.py -------------------------------------------------------------------------------- /Dynamic Programming/Arrange2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Arrange2.py -------------------------------------------------------------------------------- /Dynamic Programming/AvgSet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/AvgSet.py -------------------------------------------------------------------------------- /Dynamic Programming/CNTTrue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/CNTTrue.py -------------------------------------------------------------------------------- /Dynamic Programming/CoinChange2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/CoinChange2.py -------------------------------------------------------------------------------- /Dynamic Programming/DecodeWays.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/DecodeWays.py -------------------------------------------------------------------------------- /Dynamic Programming/DistinctSubseq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/DistinctSubseq.py -------------------------------------------------------------------------------- /Dynamic Programming/Dungeon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Dungeon.py -------------------------------------------------------------------------------- /Dynamic Programming/EditDistance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/EditDistance.py -------------------------------------------------------------------------------- /Dynamic Programming/IsInterleave.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/IsInterleave.py -------------------------------------------------------------------------------- /Dynamic Programming/Jump1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Jump1.py -------------------------------------------------------------------------------- /Dynamic Programming/Jump2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Jump2.py -------------------------------------------------------------------------------- /Dynamic Programming/LIS.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/LIS.py -------------------------------------------------------------------------------- /Dynamic Programming/LongestParen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/LongestParen.py -------------------------------------------------------------------------------- /Dynamic Programming/MaxPathTree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/MaxPathTree.py -------------------------------------------------------------------------------- /Dynamic Programming/MaxProd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/MaxProd.py -------------------------------------------------------------------------------- /Dynamic Programming/MaxRectangle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/MaxRectangle.py -------------------------------------------------------------------------------- /Dynamic Programming/Maxcoin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Maxcoin.py -------------------------------------------------------------------------------- /Dynamic Programming/MinPath.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/MinPath.py -------------------------------------------------------------------------------- /Dynamic Programming/Palin2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Palin2.py -------------------------------------------------------------------------------- /Dynamic Programming/Paths2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Paths2.py -------------------------------------------------------------------------------- /Dynamic Programming/Regex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Regex.py -------------------------------------------------------------------------------- /Dynamic Programming/Regex2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Regex2.py -------------------------------------------------------------------------------- /Dynamic Programming/RodCut.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/RodCut.py -------------------------------------------------------------------------------- /Dynamic Programming/Scramble.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Scramble.py -------------------------------------------------------------------------------- /Dynamic Programming/Stairs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Stairs.py -------------------------------------------------------------------------------- /Dynamic Programming/Stocks1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Stocks1.py -------------------------------------------------------------------------------- /Dynamic Programming/Stocks2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Stocks2.py -------------------------------------------------------------------------------- /Dynamic Programming/Stocks3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Stocks3.py -------------------------------------------------------------------------------- /Dynamic Programming/Triangle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/Triangle.py -------------------------------------------------------------------------------- /Dynamic Programming/UniqueTrees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/UniqueTrees.py -------------------------------------------------------------------------------- /Dynamic Programming/WordBreak.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/WordBreak.py -------------------------------------------------------------------------------- /Dynamic Programming/WordBreak2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Dynamic Programming/WordBreak2.py -------------------------------------------------------------------------------- /Graphs/Black.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/Black.py -------------------------------------------------------------------------------- /Graphs/CloneGraph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/CloneGraph.py -------------------------------------------------------------------------------- /Graphs/Fibsum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/Fibsum.py -------------------------------------------------------------------------------- /Graphs/Knight.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/Knight.py -------------------------------------------------------------------------------- /Graphs/LevelOrder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/LevelOrder.py -------------------------------------------------------------------------------- /Graphs/List2Tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/List2Tree.py -------------------------------------------------------------------------------- /Graphs/Multiple.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/Multiple.cpp -------------------------------------------------------------------------------- /Graphs/Multiple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/Multiple.py -------------------------------------------------------------------------------- /Graphs/StepNum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/StepNum.py -------------------------------------------------------------------------------- /Graphs/Surrounding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/Surrounding.py -------------------------------------------------------------------------------- /Graphs/WordLadder1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/WordLadder1.py -------------------------------------------------------------------------------- /Graphs/WordLadder2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/WordLadder2.py -------------------------------------------------------------------------------- /Graphs/WordSearch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Graphs/WordSearch.py -------------------------------------------------------------------------------- /Greedy/Bulbs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/Bulbs.py -------------------------------------------------------------------------------- /Greedy/Candy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/Candy.py -------------------------------------------------------------------------------- /Greedy/Gas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/Gas.py -------------------------------------------------------------------------------- /Greedy/Majority.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/Majority.py -------------------------------------------------------------------------------- /Greedy/MaxP3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/MaxP3.py -------------------------------------------------------------------------------- /Greedy/Mice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/Mice.py -------------------------------------------------------------------------------- /Greedy/Seats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Greedy/Seats.py -------------------------------------------------------------------------------- /Hashing/2Sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/2Sum.py -------------------------------------------------------------------------------- /Hashing/4Sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/4Sum.py -------------------------------------------------------------------------------- /Hashing/Anagrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/Anagrams.py -------------------------------------------------------------------------------- /Hashing/Colorful.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/Colorful.py -------------------------------------------------------------------------------- /Hashing/CopyList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/CopyList.py -------------------------------------------------------------------------------- /Hashing/Equal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/Equal.py -------------------------------------------------------------------------------- /Hashing/Fraction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/Fraction.py -------------------------------------------------------------------------------- /Hashing/LSZero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/LSZero.py -------------------------------------------------------------------------------- /Hashing/Points.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/Points.py -------------------------------------------------------------------------------- /Hashing/RepeatStr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/RepeatStr.py -------------------------------------------------------------------------------- /Hashing/Substring.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/Substring.py -------------------------------------------------------------------------------- /Hashing/ValidSudoku.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/ValidSudoku.py -------------------------------------------------------------------------------- /Hashing/WindowStr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Hashing/WindowStr.py -------------------------------------------------------------------------------- /Heaps and Maps/DNums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Heaps and Maps/DNums.py -------------------------------------------------------------------------------- /Heaps and Maps/LRU.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Heaps and Maps/LRU.py -------------------------------------------------------------------------------- /Heaps and Maps/MergeKList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Heaps and Maps/MergeKList.py -------------------------------------------------------------------------------- /Linked Lists/AddNum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/AddNum.py -------------------------------------------------------------------------------- /Linked Lists/InsertionSort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/InsertionSort.py -------------------------------------------------------------------------------- /Linked Lists/LPalin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/LPalin.py -------------------------------------------------------------------------------- /Linked Lists/ListCycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/ListCycle.py -------------------------------------------------------------------------------- /Linked Lists/Merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/Merge.py -------------------------------------------------------------------------------- /Linked Lists/NthEnd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/NthEnd.py -------------------------------------------------------------------------------- /Linked Lists/PartitionList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/PartitionList.py -------------------------------------------------------------------------------- /Linked Lists/RemDupLink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/RemDupLink.py -------------------------------------------------------------------------------- /Linked Lists/RemDupLink2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/RemDupLink2.py -------------------------------------------------------------------------------- /Linked Lists/ReorderList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/ReorderList.py -------------------------------------------------------------------------------- /Linked Lists/ReverseList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/ReverseList.py -------------------------------------------------------------------------------- /Linked Lists/SortList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/SortList.py -------------------------------------------------------------------------------- /Linked Lists/SwapL.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Linked Lists/SwapL.py -------------------------------------------------------------------------------- /Math/Arrange.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Arrange.py -------------------------------------------------------------------------------- /Math/Excel1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Excel1.py -------------------------------------------------------------------------------- /Math/Excel2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Excel2.py -------------------------------------------------------------------------------- /Math/Factorial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Factorial.py -------------------------------------------------------------------------------- /Math/Palindrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Palindrome.py -------------------------------------------------------------------------------- /Math/Paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Paths.py -------------------------------------------------------------------------------- /Math/Power2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Power2.py -------------------------------------------------------------------------------- /Math/PrimeSum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/PrimeSum.py -------------------------------------------------------------------------------- /Math/Rank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Rank.py -------------------------------------------------------------------------------- /Math/Rank2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Rank2.py -------------------------------------------------------------------------------- /Math/Revint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/Revint.py -------------------------------------------------------------------------------- /Math/gcd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Math/gcd.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # interviewbit-solutions-python -------------------------------------------------------------------------------- /Stacks and Queues/Braces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/Braces.py -------------------------------------------------------------------------------- /Stacks and Queues/EvalExp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/EvalExp.py -------------------------------------------------------------------------------- /Stacks and Queues/Histogram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/Histogram.py -------------------------------------------------------------------------------- /Stacks and Queues/MinStack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/MinStack.py -------------------------------------------------------------------------------- /Stacks and Queues/Nearest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/Nearest.py -------------------------------------------------------------------------------- /Stacks and Queues/Rain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/Rain.py -------------------------------------------------------------------------------- /Stacks and Queues/SimplifyPath.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/SimplifyPath.py -------------------------------------------------------------------------------- /Stacks and Queues/SlidingMax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Stacks and Queues/SlidingMax.py -------------------------------------------------------------------------------- /Strings/AddBinary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/AddBinary.py -------------------------------------------------------------------------------- /Strings/AtoI.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/AtoI.py -------------------------------------------------------------------------------- /Strings/Count_Say.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Count_Say.py -------------------------------------------------------------------------------- /Strings/IPAddress.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/IPAddress.py -------------------------------------------------------------------------------- /Strings/Int2Roman.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Int2Roman.py -------------------------------------------------------------------------------- /Strings/LCP.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/LCP.py -------------------------------------------------------------------------------- /Strings/LengthLast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/LengthLast.py -------------------------------------------------------------------------------- /Strings/LongestPalin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/LongestPalin.py -------------------------------------------------------------------------------- /Strings/Multiply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Multiply.py -------------------------------------------------------------------------------- /Strings/Palindrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Palindrome.py -------------------------------------------------------------------------------- /Strings/Power.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Power.py -------------------------------------------------------------------------------- /Strings/PrettyJSON.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/PrettyJSON.py -------------------------------------------------------------------------------- /Strings/Revword.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Revword.py -------------------------------------------------------------------------------- /Strings/Roman2Int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Roman2Int.py -------------------------------------------------------------------------------- /Strings/StrStr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/StrStr.py -------------------------------------------------------------------------------- /Strings/TextJust.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/TextJust.py -------------------------------------------------------------------------------- /Strings/ValidNumber.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/ValidNumber.py -------------------------------------------------------------------------------- /Strings/Version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/Version.py -------------------------------------------------------------------------------- /Strings/ZigZag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Strings/ZigZag.py -------------------------------------------------------------------------------- /Trees/ArrayBST.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/ArrayBST.py -------------------------------------------------------------------------------- /Trees/Balanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Balanced.py -------------------------------------------------------------------------------- /Trees/BinTree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/BinTree.py -------------------------------------------------------------------------------- /Trees/BinTree2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/BinTree2.py -------------------------------------------------------------------------------- /Trees/Cartesian.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Cartesian.py -------------------------------------------------------------------------------- /Trees/Flatten.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Flatten.py -------------------------------------------------------------------------------- /Trees/Inorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Inorder.py -------------------------------------------------------------------------------- /Trees/Invert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Invert.py -------------------------------------------------------------------------------- /Trees/KthSmallest2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/KthSmallest2.py -------------------------------------------------------------------------------- /Trees/LCA.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/LCA.py -------------------------------------------------------------------------------- /Trees/MaxDepth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/MaxDepth.py -------------------------------------------------------------------------------- /Trees/MinDepth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/MinDepth.py -------------------------------------------------------------------------------- /Trees/NextPointer2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/NextPointer2.cpp -------------------------------------------------------------------------------- /Trees/NextPointer2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/NextPointer2.py -------------------------------------------------------------------------------- /Trees/Order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Order.py -------------------------------------------------------------------------------- /Trees/Path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Path.py -------------------------------------------------------------------------------- /Trees/Path2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Path2.py -------------------------------------------------------------------------------- /Trees/Postorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Postorder.py -------------------------------------------------------------------------------- /Trees/Prefix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Prefix.py -------------------------------------------------------------------------------- /Trees/Preorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Preorder.py -------------------------------------------------------------------------------- /Trees/Recover.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Recover.py -------------------------------------------------------------------------------- /Trees/SameTree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/SameTree.py -------------------------------------------------------------------------------- /Trees/SumRootLeaf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/SumRootLeaf.py -------------------------------------------------------------------------------- /Trees/Symmetry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/Symmetry.py -------------------------------------------------------------------------------- /Trees/T2Sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/T2Sum.py -------------------------------------------------------------------------------- /Trees/TreeIterator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/TreeIterator.py -------------------------------------------------------------------------------- /Trees/ZigZagTree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Trees/ZigZagTree.py -------------------------------------------------------------------------------- /Two pointers/3Sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/3Sum.py -------------------------------------------------------------------------------- /Two pointers/3SumZero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/3SumZero.py -------------------------------------------------------------------------------- /Two pointers/Array3Ptr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/Array3Ptr.py -------------------------------------------------------------------------------- /Two pointers/Container.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/Container.py -------------------------------------------------------------------------------- /Two pointers/Diffk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/Diffk.py -------------------------------------------------------------------------------- /Two pointers/IntersectArr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/IntersectArr.py -------------------------------------------------------------------------------- /Two pointers/MaxOne.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/MaxOne.py -------------------------------------------------------------------------------- /Two pointers/Merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/Merge.py -------------------------------------------------------------------------------- /Two pointers/RemDup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/RemDup.py -------------------------------------------------------------------------------- /Two pointers/RemDup2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/RemDup2.py -------------------------------------------------------------------------------- /Two pointers/RemElem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/RemElem.py -------------------------------------------------------------------------------- /Two pointers/SortColor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anaviltripathi/interviewbit-solutions-python/HEAD/Two pointers/SortColor.py --------------------------------------------------------------------------------