├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── cpp ├── Backtracking │ ├── combinations_of_sum_k.cpp │ ├── find_all_permutations.cpp │ ├── find_all_subsets.cpp │ ├── n_queens.cpp │ └── phone_keypad_combinations.cpp ├── Binary Search │ ├── cutting_wood.cpp │ ├── find_the_insertion_index.cpp │ ├── find_the_median_from_two_sorted_arrays.cpp │ ├── find_the_target_in_a_rotated_sorted_array.cpp │ ├── first_and_last_occurrences_of_a_number.cpp │ ├── local_maxima_in_array.cpp │ ├── matrix_search.cpp │ └── weighted_random_selection.cpp ├── Bit Manipulation │ ├── hamming_weights_of_integers.cpp │ ├── hamming_weights_of_integers_dp.cpp │ ├── lonely_integer.cpp │ └── swap_odd_and_even_bits.cpp ├── Dynamic Programming │ ├── climbing_stairs_bottom_up.cpp │ ├── climbing_stairs_bottom_up_optimized.cpp │ ├── climbing_stairs_top_down.cpp │ ├── knapsack.cpp │ ├── knapsack_optimized.cpp │ ├── largest_square_in_a_matrix.cpp │ ├── largest_square_in_a_matrix_optimized.cpp │ ├── longest_common_subsequence.cpp │ ├── longest_common_subsequence_optimized.cpp │ ├── longest_palindrome_in_a_string.cpp │ ├── longest_palindrome_in_a_string_expanding.cpp │ ├── matrix_pathways.cpp │ ├── matrix_pathways_optimized.cpp │ ├── maximum_subarray_sum.cpp │ ├── maximum_subarray_sum_dp.cpp │ ├── maximum_subarray_sum_dp_optimized.cpp │ ├── min_coin_combination_bottom_up.cpp │ ├── min_coin_combination_top_down.cpp │ ├── neighborhood_burglary.cpp │ └── neighborhood_burglary_optimized.cpp ├── Fast and Slow Pointers │ ├── happy_number.cpp │ ├── linked_list_loop.cpp │ ├── linked_list_loop_naive.cpp │ └── linked_list_midpoint.cpp ├── Graphs │ ├── bipartite_graph_validation.cpp │ ├── connect_the_dots.cpp │ ├── count_islands.cpp │ ├── graph_deep_copy.cpp │ ├── longest_increasing_path.cpp │ ├── matrix_infection.cpp │ ├── merging_communities.cpp │ ├── prerequisites.cpp │ ├── shortest_path.cpp │ ├── shortest_transformation_sequence.cpp │ └── shortest_transformation_sequence_optimized.cpp ├── Greedy │ ├── candies.cpp │ ├── gas_stations.cpp │ └── jump_to_the_end.cpp ├── Hash Maps and Sets │ ├── geometric_sequence_triplets.cpp │ ├── longest_chain_of_consecutive_numbers.cpp │ ├── longest_chain_of_consecutive_numbers_brute_force.cpp │ ├── pair_sum_unsorted.cpp │ ├── pair_sum_unsorted_two_pass.cpp │ ├── verify_sudoku_board.cpp │ ├── zero_striping.cpp │ └── zero_striping_hash_sets.cpp ├── Heaps │ ├── combine_sorted_linked_lists.cpp │ ├── k_most_frequent_strings_max_heap.cpp │ ├── k_most_frequent_strings_min_heap.cpp │ ├── median_of_an_integer_stream.cpp │ └── sort_a_k_sorted_array.cpp ├── Intervals │ ├── identify_all_interval_overlaps.cpp │ ├── largest_overlap_of_intervals.cpp │ └── merge_overlapping_intervals.cpp ├── Linked Lists │ ├── flatten_multi_level_list.cpp │ ├── linked_list_intersection.cpp │ ├── linked_list_reversal.cpp │ ├── linked_list_reversal_recursive.cpp │ ├── lru_cache.cpp │ ├── palindromic_linked_list.cpp │ └── remove_kth_last_node.cpp ├── Math and Geometry │ ├── josephus.cpp │ ├── josephus_optimized.cpp │ ├── maximum_collinear_points.cpp │ ├── reverse_32_bit_integer.cpp │ ├── spiral_matrix.cpp │ └── triangle_numbers.cpp ├── Prefix Sums │ ├── k_sum_subarrays.cpp │ ├── k_sum_subarrays_optimized.cpp │ ├── product_array_without_current_element.cpp │ └── sum_between_range.cpp ├── Sliding Windows │ ├── longest_substring_with_unique_chars.cpp │ ├── longest_substring_with_unique_chars_optimized.cpp │ ├── longest_uniform_substring_after_replacements.cpp │ └── substring_anagrams.cpp ├── Sort and Search │ ├── dutch_national_flag.cpp │ ├── kth_largest_integer_min_heap.cpp │ ├── kth_largest_integer_quickselect.cpp │ ├── sort_array_counting_sort.cpp │ ├── sort_array_quicksort.cpp │ ├── sort_array_quicksort_optimized.cpp │ └── sort_linked_list.cpp ├── Stacks │ ├── evaluate_expression.cpp │ ├── implement_a_queue_using_a_stack.cpp │ ├── maximums_of_sliding_window.cpp │ ├── next_largest_number_to_the_right.cpp │ ├── repeated_removal_of_adjacent_duplicates.cpp │ └── valid_parenthesis_expression.cpp ├── Trees │ ├── balanced_binary_tree_validation.cpp │ ├── binary_search_tree_validation.cpp │ ├── binary_tree_columns.cpp │ ├── binary_tree_symmetry.cpp │ ├── build_binary_tree.cpp │ ├── invert_binary_tree_iterative.cpp │ ├── invert_binary_tree_recursive.cpp │ ├── kth_smallest_number_in_BST_iterative.cpp │ ├── kth_smallest_number_in_BST_recursive.cpp │ ├── lowest_common_ancestor.cpp │ ├── maximum_path_sum.cpp │ ├── rightmost_nodes_of_a_binary_tree.cpp │ ├── serialize_and_deserialize_a_binary_tree.cpp │ └── widest_binary_tree_level.cpp ├── Tries │ ├── design_a_trie.cpp │ ├── find_all_words_on_a_board.cpp │ └── insert_and_search_words_with_wildcards.cpp └── Two Pointers │ ├── is_palindrome_valid.cpp │ ├── largest_container.cpp │ ├── largest_container_brute_force.cpp │ ├── next_lexicographical_sequence.cpp │ ├── pair_sum_sorted.cpp │ ├── pair_sum_sorted_brute_force.cpp │ ├── shift_zeros_to_the_end.cpp │ ├── shift_zeros_to_the_end_naive.cpp │ ├── triplet_sum.cpp │ └── triplet_sum_brute_force.cpp ├── csharp ├── Backtracking │ ├── CombinationsOfSumK.cs │ ├── FindAllPermutations.cs │ ├── FindAllSubsets.cs │ ├── NQueens.cs │ └── PhoneKeypadCombinations.cs ├── Binary Search │ ├── CuttingWood.cs │ ├── FindTheInsertionIndex.cs │ ├── FindTheMedianFromTwoSortedArrays.cs │ ├── FindTheTargetInARotatedSortedArray.cs │ ├── FirstAndLastOccurrencesOfANumber.cs │ ├── LocalMaximaInArray.cs │ ├── MatrixSearch.cs │ └── WeightedRandomSelection.cs ├── Fast and Slow Pointers │ ├── HappyNumber.cs │ ├── LinkedListLoop.cs │ ├── LinkedListLoopNaive.cs │ └── LinkedListMidPoint.cs ├── Hash Maps and Sets │ ├── GeometricSequenceTriplets.cs │ ├── LongestChainOfConsecutiveNumbers.cs │ ├── LongestChainOfConsecutiveNumbersBruteForce.cs │ ├── PairSumUnsorted.cs │ ├── PairSumUnsortedTwoPass.cs │ ├── VerifySudokuBoard.cs │ ├── ZeroStriping.cs │ └── ZeroStripingHashSets.cs ├── Heaps │ ├── CombineSortedLinkedLists.cs │ ├── KMostFrequentStringsMaxHeap.cs │ ├── KMostFrequentStringsMinHeap.cs │ ├── MedianOfAnIntegerStream.cs │ └── SortAKSortedArray.cs ├── Intervals │ ├── IdentifyAllIntervalOverlaps.cs │ ├── LargestOverlapOfIntervals.cs │ └── MergeOverlappingIntervals.cs ├── Linked Lists │ ├── FlattenMultiLevelList.cs │ ├── LRUCache.cs │ ├── LinkedListIntersection.cs │ ├── LinkedListReversal.cs │ ├── LinkedListReversalRecursive.cs │ ├── PalindromicLinkedList.cs │ └── RemoveKthLastNode.cs ├── Prefix Sums │ ├── KSumSubArrays.cs │ ├── KSumSubArraysOptimized.cs │ ├── ProductArrayWithoutCurrentElement.cs │ └── SumBetweenRange.cs ├── Sliding Windows │ ├── LongestSubstringWithUniqueChars.cs │ ├── LongestSubstringWithUniqueCharsOptimized.cs │ ├── LongestUniformSubstringAfterReplacements.cs │ └── SubstringAnagrams.cs ├── Stacks │ ├── EvaluateExpression.cs │ ├── ImplementAQueueUsingAStack.cs │ ├── MaximumsOfSlidingWindow.cs │ ├── NextLargestNumberToTheRight.cs │ ├── RepeatedRemovalOfAdjacentDuplicates.cs │ └── ValidParenthesisExpression.cs └── Two Pointers │ ├── IsPalindromeValid.cs │ ├── LargestContainer.cs │ ├── LargestContainerBruteForce.cs │ ├── NextLexicographicalSequence.cs │ ├── PairSumSorted.cs │ ├── PairSumSortedBruteForce.cs │ ├── ShiftZerosToTheEnd.cs │ ├── ShiftZerosToTheEndNaive.cs │ ├── TripletSum.cs │ └── TripletSumBruteForce.cs ├── go ├── Hash Maps and Sets │ ├── geometric_sequence_triplets.go │ ├── longest_chain_of_consecutive_numbers.go │ ├── longest_chain_of_consecutive_numbers_brute_force.go │ ├── pair_sum_unsorted.go │ ├── pair_sum_unsorted_two_pass.go │ ├── verify_sudoku_board.go │ ├── zero_striping.go │ └── zero_striping_hash_sets.go └── Two Pointers │ ├── is_palindrome_valid.go │ ├── largest_container.go │ ├── next_lexicographical_sequence.go │ ├── pair_sum_sorted.go │ ├── shift_zeros_to_the_end.go │ └── triplet_sum.go ├── java ├── Backtracking │ ├── CombinationsOfSumK.java │ ├── FindAllPermutations.java │ ├── FindAllSubsets.java │ ├── NQueens.java │ └── PhoneKeypadCombinations.java ├── Binary Search │ ├── CuttingWood.java │ ├── FindTheInsertionIndex.java │ ├── FindTheMedianFromTwoSortedArrays.java │ ├── FindTheTargetInARotatedSortedArray.java │ ├── FirstAndLastOccurrencesOfANumber.java │ ├── LocalMaximaInArray.java │ ├── MatrixSearch.java │ └── WeightedRandomSelection.java ├── Bit Manipulation │ ├── HammingWeightsOfIntegers.java │ ├── HammingWeightsOfIntegersDp.java │ ├── LonelyInteger.java │ └── SwapOddAndEvenBits.java ├── Dynamic Programming │ ├── ClimbingStairsBottomUp.java │ ├── ClimbingStairsBottomUpOptimized.java │ ├── ClimbingStairsTopDown.java │ ├── Knapsack.java │ ├── KnapsackOptimized.java │ ├── LargestSquareInAMatrix.java │ ├── LargestSquareInAMatrixOptimized.java │ ├── LongestCommonSubsequence.java │ ├── LongestCommonSubsequenceOptimized.java │ ├── LongestPalindromeInAString.java │ ├── LongestPalindromeInAStringExpanding.java │ ├── MatrixPathways.java │ ├── MatrixPathwaysOptimized.java │ ├── MaximumSubarraySum.java │ ├── MaximumSubarraySumDp.java │ ├── MaximumSubarraySumDpOptimized.java │ ├── MinCoinCombinationBottomUp.java │ ├── MinCoinCombinationTopDown.java │ ├── NeighborhoodBurglary.java │ └── NeighborhoodBurglaryOptimized.java ├── Fast and Slow Pointers │ ├── HappyNumber.java │ ├── LinkedListLoop.java │ ├── LinkedListLoopNaive.java │ └── LinkedListMidpoint.java ├── Graphs │ ├── BipartiteGraphValidation.java │ ├── ConnectTheDots.java │ ├── CountIslands.java │ ├── GraphDeepCopy.java │ ├── LongestIncreasingPath.java │ ├── MatrixInfection.java │ ├── MergingCommunities.java │ ├── Prerequisites.java │ ├── ShortestPath.java │ ├── ShortestTransformationSequence.java │ └── ShortestTransformationSequenceOptimized.java ├── Greedy │ ├── Candies.java │ ├── GasStations.java │ └── JumpToTheEnd.java ├── Hash Maps and Sets │ ├── GeometricSequenceTriplets.java │ ├── LongestChainOfConsecutiveNumbers.java │ ├── LongestChainOfConsecutiveNumbersBruteForce.java │ ├── PairSumUnsorted.java │ ├── PairSumUnsortedTwoPass.java │ ├── VerifySudokuBoard.java │ ├── ZeroStriping.java │ └── ZeroStripingHashSets.java ├── Heaps │ ├── CombineSortedLinkedLists.java │ ├── KMostFrequentStringsMaxHeap.java │ ├── KMostFrequentStringsMinHeap.java │ ├── MedianOfAnIntegerStream.java │ └── SortAKSortedArray.java ├── Intervals │ ├── IdentifyAllIntervalOverlaps.java │ ├── LargestOverlapOfIntervals.java │ └── MergeOverlappingIntervals.java ├── Linked Lists │ ├── FlattenMultiLevelList.java │ ├── LRUCache.java │ ├── LinkedListIntersection.java │ ├── LinkedListReversal.java │ ├── LinkedListReversalRecursive.java │ ├── PalindromicLinkedList.java │ └── RemoveKthLastNode.java ├── Prefix Sums │ ├── KSumSubarrays.java │ ├── KSumSubarraysOptimized.java │ ├── ProductArrayWithoutCurrentElement.java │ └── SumBetweenRange.java ├── Sliding Windows │ ├── LongestSubstringWithUniqueChars.java │ ├── LongestSubstringWithUniqueCharsOptimized.java │ ├── LongestUniformSubstringAfterReplacements.java │ └── SubstringAnagrams.java ├── Sort and Search │ ├── DutchNationalFlag.java │ ├── KthLargestIntegerMinHeap.java │ ├── KthLargestIntegerQuickselect.java │ ├── SortArrayCountingSort.java │ ├── SortArrayQuicksort.java │ ├── SortArrayQuicksortOptimized.java │ └── SortLinkedList.java ├── Stacks │ ├── EvaluateExpression.java │ ├── ImplementAQueueUsingAStack.java │ ├── MaximumsOfSlidingWindow.java │ ├── NextLargestNumberToTheRight.java │ ├── RepeatedRemovalOfAdjacentDuplicates.java │ └── ValidParenthesisExpression.java ├── Trees │ ├── BalancedBinaryTreeValidation.java │ ├── BinarySearchTreeValidation.java │ ├── BinaryTreeColumns.java │ ├── BinaryTreeSymmetry.java │ ├── BuildBinaryTree.java │ ├── InvertBinaryTreeIterative.java │ ├── InvertBinaryTreeRecursive.java │ ├── KthSmallestNumberInBSTIterative.java │ ├── KthSmallestNumberInBSTRecursive.java │ ├── LowestCommonAncestor.java │ ├── MaximumPathSum.java │ ├── RightmostNodesOfABinaryTree.java │ ├── SerializeAndDeserializeABinaryTree.java │ └── WidestBinaryTreeLevel.java ├── Tries │ ├── DesignATrie.java │ ├── FindAllWordsOnABoard.java │ └── InsertAndSearchWordsWithWildcards.java └── Two Pointers │ ├── IsPalindromeValid.java │ ├── LargestContainer.java │ ├── LargestContainerBruteForce.java │ ├── NextLexicographicalSequence.java │ ├── PairSumSorted.java │ ├── PairSumSortedBruteForce.java │ ├── ShiftZerosToTheEnd.java │ ├── ShiftZerosToTheEndNaive.java │ ├── TripletSum.java │ └── TripletSumBruteForce.java ├── kotlin ├── Backtracking │ ├── CombinationsOfSumK.kt │ ├── FindAllPermutations.kt │ ├── FindAllSubsets.kt │ ├── NQueens.kt │ └── PhoneKeypadCombinations.kt ├── Binary Search │ ├── CuttingWood.kt │ ├── FindTheInsertionIndex.kt │ ├── FindTheMedianFromTwoSortedArray.kt │ ├── FindTheTargetInARotatedSortedArray.kt │ ├── FirstAndLastOccurrencesOfANumber.kt │ ├── LocalMaximaInArray.kt │ ├── MatrixSearch.kt │ └── WeightRandomSelection.kt ├── Bit Manipulation │ ├── HammingWeightsOfIntegers.kt │ ├── HammingWeightsOfIntegersDp.kt │ ├── LonelyInteger.kt │ └── SwapOddAndEvenBits.kt ├── Dynamic Programming │ ├── ClimbingStairsBottomUp.kt │ ├── ClimbingStairsBottomUpOptimize.kt │ ├── ClimbingStairsTopDown.kt │ ├── Knapsack.kt │ ├── KnapsackOptimized.kt │ ├── LargestSquareInAMatrix.kt │ ├── LargestSquareInAMatrixOptimized.kt │ ├── LongestCommonSubsequence.kt │ ├── LongestCommonSubsequenceOptimized.kt │ ├── LongestPalindromeInAString.kt │ ├── LongestPalindromeInAStringExpanding.kt │ ├── MatrixPathways.kt │ ├── MatrixPathwaysOptimized.kt │ ├── MaximumSubarraySum.kt │ ├── MaximumSubarraySumDP.kt │ ├── MaximumSubarraySumDPOptimized.kt │ ├── MinCoinCombinationBottomUp.kt │ ├── MinCoinCombinationTopDown.kt │ ├── NeighborhoodBurglary.kt │ └── NeighborhoodBurglaryOptimized.kt ├── Fast and Slow Pointers │ ├── HappyNumber.kt │ ├── LinkedListLoop.kt │ ├── LinkedListLoopNaive.kt │ └── LinkedListMidpoint.kt ├── Graphs │ ├── BipartiteGraphValidation.kt │ ├── ConnectTheDots.kt │ ├── CountIslands.kt │ ├── GraphDeepCopy.kt │ ├── LongestIncreasingPath.kt │ ├── MatrixInfection.kt │ ├── MergingCommunities.kt │ ├── Prerequisites.kt │ ├── ShortestPath.kt │ ├── ShortestTransformationSequencOptimized.kt │ └── ShortestTransformationSequence.kt ├── Greedy │ ├── Candies.kt │ ├── GasStations.kt │ └── JumpToTheEnd.kt ├── Hash Maps and Sets │ ├── GeometricSequenceTriplets.kt │ ├── LongestChainOfConsecutiveNumbers.kt │ ├── LongestChainOfConsecutiveNumbersBruteForce.kt │ ├── PairSumUnSortedTwoPass.kt │ ├── PairSumUnsorted.kt │ ├── VerifySudokuBoard.kt │ ├── ZeroStriping.kt │ └── ZeroStripingHashSets.kt ├── Heaps │ ├── CombineSortedLinkedList.kt │ ├── KMostFrequentStringsMaxHeap.kt │ ├── KMostFrequentStringsMinHeap.kt │ ├── MedianOfAnIntegerStream.kt │ └── SortAKSortedArray.kt ├── Intervals │ ├── IdentifyAllIntervalOverlaps.kt │ ├── LargestOverlapOfIntervals.kt │ └── MergeOverlappingIntervals.kt ├── Linked Lists │ ├── FlattenMultiLevelList.kt │ ├── LRUCache.kt │ ├── LinkedListIntersection.kt │ ├── LinkedListReversal.kt │ ├── LinkedListReversalRecursive.kt │ ├── PalindromicLinkedList.kt │ └── RemoveKthLastNode.kt ├── Math and Geometry │ ├── Josephus.kt │ ├── JosephusOptimized.kt │ ├── MaximumCollinearPoints.kt │ ├── Reverse32BitInteger.kt │ ├── SpiralMatrix.kt │ └── TriangleNumbers.kt ├── Prefix Sums │ ├── KSumSubarrays.kt │ ├── KSumSubarraysOptimized.kt │ ├── ProductsArrayWithoutCurrentElement.kt │ └── SumBetweenRange.kt ├── Sliding Windows │ ├── LongestSubstringWithUniqueChars.kt │ ├── LongestSubstringWithUniqueCharsOptimized.kt │ ├── LongestUniformSubstringAfterReplacements.kt │ └── SubstringAnagrams.kt ├── Sort and Search │ ├── DutchNationalFlag.kt │ ├── KthLargestIntegerMinHeap.kt │ ├── KthLargestIntegerQuickselect.kt │ ├── SortArrayCountingSort.kt │ ├── SortArrayQuicksort.kt │ ├── SortArrayQuicksortOptimized.kt │ └── SortLinkedList.kt ├── Stacks │ ├── EvaluateExpression.kt │ ├── ImplementAQueueUsingAStack.kt │ ├── MaximumsOfSlidingWindow.kt │ ├── NextLargestNumberToTheRight.kt │ ├── RepeatedRemovalOfAdjacentDuplicates.kt │ └── ValidParenthesisExpression.kt ├── Trees │ ├── BalancedBinaryTreeValidation.kt │ ├── BinarySearchTreeValidation.kt │ ├── BinaryTreeColumns.kt │ ├── BinaryTreeSymmetry.kt │ ├── BuildBinaryTree.kt │ ├── InvertBinaryTreeIteretive.kt │ ├── InvertBinaryTreeRecursive.kt │ ├── KthSmallestNumberInBSTIterative.kt │ ├── KthSmallestNumberInBSTRecursive.kt │ ├── LowestCommonAncestor.kt │ ├── MaximumPathSum.kt │ ├── RightmostNodesOfABinaryTree.kt │ ├── SerializeAndDeserializeABinaryTree.kt │ └── WidestBinaryTreeLevel.kt ├── Tries │ ├── DesignATrie.kt │ ├── FindAllWordsOnABoard.kt │ └── InsertAndSearchWordsWithWildcards.kt └── Two Pointers │ ├── IsPalindromeValid.kt │ ├── LargestContainer.kt │ ├── LargestContainerBruteForce.kt │ ├── NextLexicographicalSequence.kt │ ├── PairSumSorted.kt │ ├── PairSumSortedBruteForce.kt │ ├── ShiftZeroToTheEnd.kt │ ├── ShiftZeroToTheEndNaive.kt │ ├── TripletSum.kt │ └── TripletSumBruteForce.kt ├── python3 ├── Backtracking │ ├── combinations_of_sum_k.py │ ├── find_all_permutations.py │ ├── find_all_subsets.py │ ├── n_queens.py │ └── phone_keypad_combinations.py ├── Binary Search │ ├── cutting_wood.py │ ├── find_the_insertion_index.py │ ├── find_the_median_from_two_sorted_arrays.py │ ├── find_the_target_in_a_rotated_sorted_array.py │ ├── first_and_last_occurrences_of_a_number.py │ ├── local_maxima_in_array.py │ ├── matrix_search.py │ └── weighted_random_selection.py ├── Bit Manipulation │ ├── hamming_weights_of_integers.py │ ├── hamming_weights_of_integers_dp.py │ ├── lonely_integer.py │ └── swap_odd_and_even_bits.py ├── Dynamic Programming │ ├── climbing_stairs_bottom_up.py │ ├── climbing_stairs_bottom_up_optimized.py │ ├── climbing_stairs_top_down.py │ ├── knapsack.py │ ├── knapsack_optimized.py │ ├── largest_square_in_a_matrix.py │ ├── largest_square_in_a_matrix_optimized.py │ ├── longest_common_subsequence.py │ ├── longest_common_subsequence_optimized.py │ ├── longest_palindrome_in_a_string.py │ ├── longest_palindrome_in_a_string_expanding.py │ ├── matrix_pathways.py │ ├── matrix_pathways_optimized.py │ ├── maximum_subarray_sum.py │ ├── maximum_subarray_sum_dp.py │ ├── maximum_subarray_sum_dp_optimized.py │ ├── min_coin_combination_bottom_up.py │ ├── min_coin_combination_top_down.py │ ├── neighborhood_burglary.py │ └── neighborhood_burglary_optimized.py ├── Fast and Slow Pointers │ ├── happy_number.py │ ├── linked_list_loop.py │ ├── linked_list_loop_naive.py │ └── linked_list_midpoint.py ├── Graphs │ ├── bipartite_graph_validation.py │ ├── connect_the_dots.py │ ├── count_islands.py │ ├── graph_deep_copy.py │ ├── longest_increasing_path.py │ ├── matrix_infection.py │ ├── merging_communities.py │ ├── prerequisites.py │ ├── shortest_path.py │ ├── shortest_transformation_sequence.py │ └── shortest_transformation_sequence_optimized.py ├── Greedy │ ├── candies.py │ ├── gas_stations.py │ └── jump_to_the_end.py ├── Hash Maps and Sets │ ├── geometric_sequence_triplets.py │ ├── longest_chain_of_consecutive_numbers.py │ ├── longest_chain_of_consecutive_numbers_brute_force.py │ ├── pair_sum_unsorted.py │ ├── pair_sum_unsorted_two_pass.py │ ├── verify_sudoku_board.py │ ├── zero_striping.py │ └── zero_striping_hash_sets.py ├── Heaps │ ├── combine_sorted_linked_lists.py │ ├── k_most_frequent_strings_max_heap.py │ ├── k_most_frequent_strings_min_heap.py │ ├── median_of_an_integer_stream.py │ └── sort_a_k_sorted_array.py ├── Intervals │ ├── identify_all_interval_overlaps.py │ ├── largest_overlap_of_intervals.py │ └── merge_overlapping_intervals.py ├── Linked Lists │ ├── flatten_multi_level_list.py │ ├── linked_list_intersection.py │ ├── linked_list_reversal.py │ ├── linked_list_reversal_recursive.py │ ├── lru_cache.py │ ├── palindromic_linked_list.py │ └── remove_kth_last_node.py ├── Math and Geometry │ ├── josephus.py │ ├── josephus_optimized.py │ ├── maximum_collinear_points.py │ ├── reverse_32_bit_integer.py │ ├── spiral_matrix.py │ └── triangle_numbers.py ├── Prefix Sums │ ├── k_sum_subarrays.py │ ├── k_sum_subarrays_optimized.py │ ├── product_array_without_current_element.py │ └── sum_between_range.py ├── Sliding Windows │ ├── longest_substring_with_unique_chars.py │ ├── longest_substring_with_unique_chars_optimized.py │ ├── longest_uniform_substring_after_replacements.py │ └── substring_anagrams.py ├── Sort and Search │ ├── dutch_national_flag.py │ ├── kth_largest_integer_min_heap.py │ ├── kth_largest_integer_quickselect.py │ ├── sort_array_counting_sort.py │ ├── sort_array_quicksort.py │ ├── sort_array_quicksort_optimized.py │ └── sort_linked_list.py ├── Stacks │ ├── evaluate_expression.py │ ├── implement_a_queue_using_a_stack.py │ ├── maximums_of_sliding_window.py │ ├── next_largest_number_to_the_right.py │ ├── repeated_removal_of_adjacent_duplicates.py │ └── valid_parenthesis_expression.py ├── Trees │ ├── balanced_binary_tree_validation.py │ ├── binary_search_tree_validation.py │ ├── binary_tree_columns.py │ ├── binary_tree_symmetry.py │ ├── build_binary_tree.py │ ├── invert_binary_tree_iterative.py │ ├── invert_binary_tree_recursive.py │ ├── kth_smallest_number_in_BST_iterative.py │ ├── kth_smallest_number_in_BST_recursive.py │ ├── lowest_common_ancestor.py │ ├── maximum_path_sum.py │ ├── rightmost_nodes_of_a_binary_tree.py │ ├── serialize_and_deserialize_a_binary_tree.py │ └── widest_binary_tree_level.py ├── Tries │ ├── design_a_trie.py │ ├── find_all_words_on_a_board.py │ └── insert_and_search_words_with_wildcards.py └── Two Pointers │ ├── is_palindrome_valid.py │ ├── largest_container.py │ ├── largest_container_brute_force.py │ ├── next_lexicographical_sequence.py │ ├── pair_sum_sorted.py │ ├── pair_sum_sorted_brute_force.py │ ├── shift_zeros_to_the_end.py │ ├── shift_zeros_to_the_end_naive.py │ ├── triplet_sum.py │ └── triplet_sum_brute_force.py ├── rust ├── Hash Maps and Sets │ ├── geometric_sequence_triplets.rs │ ├── longest_chain_of_consecutive_numbers.rs │ ├── longest_chain_of_consecutive_numbers_brute_force.rs │ ├── pair_sum_unsorted.rs │ ├── pair_sum_unsorted_two_pass.rs │ ├── verify_sudoku_board.rs │ ├── zero_striping.rs │ └── zero_striping_hash_sets.rs ├── Sliding Windows │ ├── longest_substring_with_unique_chars.rs │ ├── longest_substring_with_unique_chars_optimized.rs │ ├── longest_uniform_substring_after_replacements.rs │ └── substring_anagrams.rs └── Two Pointers │ ├── is_palindrome_valid.rs │ ├── largest_container.rs │ ├── largest_container_brute_force.rs │ ├── next_lexicographical_sequence.rs │ ├── pair_sum_sorted.rs │ ├── pair_sum_sorted_brute_force.rs │ ├── shift_zeros_to_the_end.rs │ ├── shift_zeros_to_the_end_naive.rs │ ├── triplet_sum.rs │ └── triplet_sum_brute_force.rs ├── swift └── Two Pointers │ ├── LargestContainer.swift │ ├── LargestContainerBruteForce.swift │ ├── NextLexicographicalSequence.swift │ ├── PairSumSorted.swift │ ├── PairSumSortedBruteForce.swift │ ├── ShiftZerosToTheEnd.swift │ ├── ShiftZerosToTheEndNaive.swift │ ├── TripletSum.swift │ ├── TripletSumBruteForce.swift │ └── isPalindromeValid.swift └── typescript ├── Fast and Slow Pointers ├── happy_number.ts ├── linked_list_loop.ts ├── linked_list_loop_naive.ts └── linked_list_midpoint.ts ├── Hash Maps and Sets ├── geometric_sequence_triplets.ts ├── longest_chain_of_consecutive_numbers.ts ├── longest_chain_of_consecutive_numbers_brute_force.ts ├── pair_sum_unsorted.ts ├── pair_sum_unsorted_two_pass.ts ├── verify_sudoku_board.ts ├── zero_striping.ts └── zero_striping_hash_sets.ts ├── Linked Lists ├── flatten_multi_level_list.ts ├── linked_list_intersection.ts ├── linked_list_reversal.ts ├── linked_list_reversal_recursive.ts ├── lru_cache.ts ├── palindromic_linked_list.ts └── remove_kth_last_node.ts ├── Sliding Windows ├── longest_substring_with_unique_chars.ts ├── longest_substring_with_unique_chars_optimized.ts ├── longest_uniform_substring_after_replacements.ts └── substring_anagrams.ts └── Two Pointers ├── is_palindrome_valid.ts ├── largest_container.ts ├── largest_container_brute_force.ts ├── next_lexicographical_sequence.ts ├── pair_sum_sorted.ts ├── pair_sum_sorted_brute_force.ts ├── shift_zeros_to_the_end.ts ├── shift_zeros_to_the_end_naive.ts ├── triplet_sum.ts └── triplet_sum_brute_force.ts /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/README.md -------------------------------------------------------------------------------- /cpp/Backtracking/combinations_of_sum_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Backtracking/combinations_of_sum_k.cpp -------------------------------------------------------------------------------- /cpp/Backtracking/find_all_permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Backtracking/find_all_permutations.cpp -------------------------------------------------------------------------------- /cpp/Backtracking/find_all_subsets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Backtracking/find_all_subsets.cpp -------------------------------------------------------------------------------- /cpp/Backtracking/n_queens.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Backtracking/n_queens.cpp -------------------------------------------------------------------------------- /cpp/Backtracking/phone_keypad_combinations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Backtracking/phone_keypad_combinations.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/cutting_wood.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/cutting_wood.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/find_the_insertion_index.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/find_the_insertion_index.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/find_the_median_from_two_sorted_arrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/find_the_median_from_two_sorted_arrays.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/find_the_target_in_a_rotated_sorted_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/find_the_target_in_a_rotated_sorted_array.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/first_and_last_occurrences_of_a_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/first_and_last_occurrences_of_a_number.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/local_maxima_in_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/local_maxima_in_array.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/matrix_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/matrix_search.cpp -------------------------------------------------------------------------------- /cpp/Binary Search/weighted_random_selection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Binary Search/weighted_random_selection.cpp -------------------------------------------------------------------------------- /cpp/Bit Manipulation/hamming_weights_of_integers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Bit Manipulation/hamming_weights_of_integers.cpp -------------------------------------------------------------------------------- /cpp/Bit Manipulation/hamming_weights_of_integers_dp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Bit Manipulation/hamming_weights_of_integers_dp.cpp -------------------------------------------------------------------------------- /cpp/Bit Manipulation/lonely_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Bit Manipulation/lonely_integer.cpp -------------------------------------------------------------------------------- /cpp/Bit Manipulation/swap_odd_and_even_bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Bit Manipulation/swap_odd_and_even_bits.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/climbing_stairs_bottom_up.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/climbing_stairs_bottom_up.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/climbing_stairs_bottom_up_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/climbing_stairs_bottom_up_optimized.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/climbing_stairs_top_down.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/climbing_stairs_top_down.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/knapsack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/knapsack.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/knapsack_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/knapsack_optimized.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/largest_square_in_a_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/largest_square_in_a_matrix.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/largest_square_in_a_matrix_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/largest_square_in_a_matrix_optimized.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/longest_common_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/longest_common_subsequence.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/longest_common_subsequence_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/longest_common_subsequence_optimized.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/longest_palindrome_in_a_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/longest_palindrome_in_a_string.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/longest_palindrome_in_a_string_expanding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/longest_palindrome_in_a_string_expanding.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/matrix_pathways.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/matrix_pathways.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/matrix_pathways_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/matrix_pathways_optimized.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/maximum_subarray_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/maximum_subarray_sum.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/maximum_subarray_sum_dp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/maximum_subarray_sum_dp.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/maximum_subarray_sum_dp_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/maximum_subarray_sum_dp_optimized.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/min_coin_combination_bottom_up.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/min_coin_combination_bottom_up.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/min_coin_combination_top_down.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/min_coin_combination_top_down.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/neighborhood_burglary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/neighborhood_burglary.cpp -------------------------------------------------------------------------------- /cpp/Dynamic Programming/neighborhood_burglary_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Dynamic Programming/neighborhood_burglary_optimized.cpp -------------------------------------------------------------------------------- /cpp/Fast and Slow Pointers/happy_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Fast and Slow Pointers/happy_number.cpp -------------------------------------------------------------------------------- /cpp/Fast and Slow Pointers/linked_list_loop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Fast and Slow Pointers/linked_list_loop.cpp -------------------------------------------------------------------------------- /cpp/Fast and Slow Pointers/linked_list_loop_naive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Fast and Slow Pointers/linked_list_loop_naive.cpp -------------------------------------------------------------------------------- /cpp/Fast and Slow Pointers/linked_list_midpoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Fast and Slow Pointers/linked_list_midpoint.cpp -------------------------------------------------------------------------------- /cpp/Graphs/bipartite_graph_validation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/bipartite_graph_validation.cpp -------------------------------------------------------------------------------- /cpp/Graphs/connect_the_dots.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/connect_the_dots.cpp -------------------------------------------------------------------------------- /cpp/Graphs/count_islands.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/count_islands.cpp -------------------------------------------------------------------------------- /cpp/Graphs/graph_deep_copy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/graph_deep_copy.cpp -------------------------------------------------------------------------------- /cpp/Graphs/longest_increasing_path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/longest_increasing_path.cpp -------------------------------------------------------------------------------- /cpp/Graphs/matrix_infection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/matrix_infection.cpp -------------------------------------------------------------------------------- /cpp/Graphs/merging_communities.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/merging_communities.cpp -------------------------------------------------------------------------------- /cpp/Graphs/prerequisites.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/prerequisites.cpp -------------------------------------------------------------------------------- /cpp/Graphs/shortest_path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/shortest_path.cpp -------------------------------------------------------------------------------- /cpp/Graphs/shortest_transformation_sequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/shortest_transformation_sequence.cpp -------------------------------------------------------------------------------- /cpp/Graphs/shortest_transformation_sequence_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Graphs/shortest_transformation_sequence_optimized.cpp -------------------------------------------------------------------------------- /cpp/Greedy/candies.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Greedy/candies.cpp -------------------------------------------------------------------------------- /cpp/Greedy/gas_stations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Greedy/gas_stations.cpp -------------------------------------------------------------------------------- /cpp/Greedy/jump_to_the_end.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Greedy/jump_to_the_end.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/geometric_sequence_triplets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/geometric_sequence_triplets.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/pair_sum_unsorted.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/pair_sum_unsorted.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/pair_sum_unsorted_two_pass.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/pair_sum_unsorted_two_pass.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/verify_sudoku_board.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/verify_sudoku_board.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/zero_striping.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/zero_striping.cpp -------------------------------------------------------------------------------- /cpp/Hash Maps and Sets/zero_striping_hash_sets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Hash Maps and Sets/zero_striping_hash_sets.cpp -------------------------------------------------------------------------------- /cpp/Heaps/combine_sorted_linked_lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Heaps/combine_sorted_linked_lists.cpp -------------------------------------------------------------------------------- /cpp/Heaps/k_most_frequent_strings_max_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Heaps/k_most_frequent_strings_max_heap.cpp -------------------------------------------------------------------------------- /cpp/Heaps/k_most_frequent_strings_min_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Heaps/k_most_frequent_strings_min_heap.cpp -------------------------------------------------------------------------------- /cpp/Heaps/median_of_an_integer_stream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Heaps/median_of_an_integer_stream.cpp -------------------------------------------------------------------------------- /cpp/Heaps/sort_a_k_sorted_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Heaps/sort_a_k_sorted_array.cpp -------------------------------------------------------------------------------- /cpp/Intervals/identify_all_interval_overlaps.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Intervals/identify_all_interval_overlaps.cpp -------------------------------------------------------------------------------- /cpp/Intervals/largest_overlap_of_intervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Intervals/largest_overlap_of_intervals.cpp -------------------------------------------------------------------------------- /cpp/Intervals/merge_overlapping_intervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Intervals/merge_overlapping_intervals.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/flatten_multi_level_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/flatten_multi_level_list.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/linked_list_intersection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/linked_list_intersection.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/linked_list_reversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/linked_list_reversal.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/linked_list_reversal_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/linked_list_reversal_recursive.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/lru_cache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/lru_cache.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/palindromic_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/palindromic_linked_list.cpp -------------------------------------------------------------------------------- /cpp/Linked Lists/remove_kth_last_node.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Linked Lists/remove_kth_last_node.cpp -------------------------------------------------------------------------------- /cpp/Math and Geometry/josephus.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Math and Geometry/josephus.cpp -------------------------------------------------------------------------------- /cpp/Math and Geometry/josephus_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Math and Geometry/josephus_optimized.cpp -------------------------------------------------------------------------------- /cpp/Math and Geometry/maximum_collinear_points.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Math and Geometry/maximum_collinear_points.cpp -------------------------------------------------------------------------------- /cpp/Math and Geometry/reverse_32_bit_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Math and Geometry/reverse_32_bit_integer.cpp -------------------------------------------------------------------------------- /cpp/Math and Geometry/spiral_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Math and Geometry/spiral_matrix.cpp -------------------------------------------------------------------------------- /cpp/Math and Geometry/triangle_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Math and Geometry/triangle_numbers.cpp -------------------------------------------------------------------------------- /cpp/Prefix Sums/k_sum_subarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Prefix Sums/k_sum_subarrays.cpp -------------------------------------------------------------------------------- /cpp/Prefix Sums/k_sum_subarrays_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Prefix Sums/k_sum_subarrays_optimized.cpp -------------------------------------------------------------------------------- /cpp/Prefix Sums/product_array_without_current_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Prefix Sums/product_array_without_current_element.cpp -------------------------------------------------------------------------------- /cpp/Prefix Sums/sum_between_range.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Prefix Sums/sum_between_range.cpp -------------------------------------------------------------------------------- /cpp/Sliding Windows/longest_substring_with_unique_chars.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sliding Windows/longest_substring_with_unique_chars.cpp -------------------------------------------------------------------------------- /cpp/Sliding Windows/longest_substring_with_unique_chars_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sliding Windows/longest_substring_with_unique_chars_optimized.cpp -------------------------------------------------------------------------------- /cpp/Sliding Windows/longest_uniform_substring_after_replacements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sliding Windows/longest_uniform_substring_after_replacements.cpp -------------------------------------------------------------------------------- /cpp/Sliding Windows/substring_anagrams.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sliding Windows/substring_anagrams.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/dutch_national_flag.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/dutch_national_flag.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/kth_largest_integer_min_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/kth_largest_integer_min_heap.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/kth_largest_integer_quickselect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/kth_largest_integer_quickselect.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/sort_array_counting_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/sort_array_counting_sort.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/sort_array_quicksort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/sort_array_quicksort.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/sort_array_quicksort_optimized.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/sort_array_quicksort_optimized.cpp -------------------------------------------------------------------------------- /cpp/Sort and Search/sort_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Sort and Search/sort_linked_list.cpp -------------------------------------------------------------------------------- /cpp/Stacks/evaluate_expression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Stacks/evaluate_expression.cpp -------------------------------------------------------------------------------- /cpp/Stacks/implement_a_queue_using_a_stack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Stacks/implement_a_queue_using_a_stack.cpp -------------------------------------------------------------------------------- /cpp/Stacks/maximums_of_sliding_window.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Stacks/maximums_of_sliding_window.cpp -------------------------------------------------------------------------------- /cpp/Stacks/next_largest_number_to_the_right.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Stacks/next_largest_number_to_the_right.cpp -------------------------------------------------------------------------------- /cpp/Stacks/repeated_removal_of_adjacent_duplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Stacks/repeated_removal_of_adjacent_duplicates.cpp -------------------------------------------------------------------------------- /cpp/Stacks/valid_parenthesis_expression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Stacks/valid_parenthesis_expression.cpp -------------------------------------------------------------------------------- /cpp/Trees/balanced_binary_tree_validation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/balanced_binary_tree_validation.cpp -------------------------------------------------------------------------------- /cpp/Trees/binary_search_tree_validation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/binary_search_tree_validation.cpp -------------------------------------------------------------------------------- /cpp/Trees/binary_tree_columns.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/binary_tree_columns.cpp -------------------------------------------------------------------------------- /cpp/Trees/binary_tree_symmetry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/binary_tree_symmetry.cpp -------------------------------------------------------------------------------- /cpp/Trees/build_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/build_binary_tree.cpp -------------------------------------------------------------------------------- /cpp/Trees/invert_binary_tree_iterative.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/invert_binary_tree_iterative.cpp -------------------------------------------------------------------------------- /cpp/Trees/invert_binary_tree_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/invert_binary_tree_recursive.cpp -------------------------------------------------------------------------------- /cpp/Trees/kth_smallest_number_in_BST_iterative.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/kth_smallest_number_in_BST_iterative.cpp -------------------------------------------------------------------------------- /cpp/Trees/kth_smallest_number_in_BST_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/kth_smallest_number_in_BST_recursive.cpp -------------------------------------------------------------------------------- /cpp/Trees/lowest_common_ancestor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/lowest_common_ancestor.cpp -------------------------------------------------------------------------------- /cpp/Trees/maximum_path_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/maximum_path_sum.cpp -------------------------------------------------------------------------------- /cpp/Trees/rightmost_nodes_of_a_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/rightmost_nodes_of_a_binary_tree.cpp -------------------------------------------------------------------------------- /cpp/Trees/serialize_and_deserialize_a_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/serialize_and_deserialize_a_binary_tree.cpp -------------------------------------------------------------------------------- /cpp/Trees/widest_binary_tree_level.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Trees/widest_binary_tree_level.cpp -------------------------------------------------------------------------------- /cpp/Tries/design_a_trie.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Tries/design_a_trie.cpp -------------------------------------------------------------------------------- /cpp/Tries/find_all_words_on_a_board.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Tries/find_all_words_on_a_board.cpp -------------------------------------------------------------------------------- /cpp/Tries/insert_and_search_words_with_wildcards.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Tries/insert_and_search_words_with_wildcards.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/is_palindrome_valid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/is_palindrome_valid.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/largest_container.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/largest_container.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/largest_container_brute_force.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/largest_container_brute_force.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/next_lexicographical_sequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/next_lexicographical_sequence.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/pair_sum_sorted.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/pair_sum_sorted.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/pair_sum_sorted_brute_force.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/pair_sum_sorted_brute_force.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/shift_zeros_to_the_end.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/shift_zeros_to_the_end.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/shift_zeros_to_the_end_naive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/shift_zeros_to_the_end_naive.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/triplet_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/triplet_sum.cpp -------------------------------------------------------------------------------- /cpp/Two Pointers/triplet_sum_brute_force.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/cpp/Two Pointers/triplet_sum_brute_force.cpp -------------------------------------------------------------------------------- /csharp/Backtracking/CombinationsOfSumK.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Backtracking/CombinationsOfSumK.cs -------------------------------------------------------------------------------- /csharp/Backtracking/FindAllPermutations.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Backtracking/FindAllPermutations.cs -------------------------------------------------------------------------------- /csharp/Backtracking/FindAllSubsets.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Backtracking/FindAllSubsets.cs -------------------------------------------------------------------------------- /csharp/Backtracking/NQueens.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Backtracking/NQueens.cs -------------------------------------------------------------------------------- /csharp/Backtracking/PhoneKeypadCombinations.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Backtracking/PhoneKeypadCombinations.cs -------------------------------------------------------------------------------- /csharp/Binary Search/CuttingWood.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/CuttingWood.cs -------------------------------------------------------------------------------- /csharp/Binary Search/FindTheInsertionIndex.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/FindTheInsertionIndex.cs -------------------------------------------------------------------------------- /csharp/Binary Search/FindTheMedianFromTwoSortedArrays.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/FindTheMedianFromTwoSortedArrays.cs -------------------------------------------------------------------------------- /csharp/Binary Search/FindTheTargetInARotatedSortedArray.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/FindTheTargetInARotatedSortedArray.cs -------------------------------------------------------------------------------- /csharp/Binary Search/FirstAndLastOccurrencesOfANumber.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/FirstAndLastOccurrencesOfANumber.cs -------------------------------------------------------------------------------- /csharp/Binary Search/LocalMaximaInArray.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/LocalMaximaInArray.cs -------------------------------------------------------------------------------- /csharp/Binary Search/MatrixSearch.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/MatrixSearch.cs -------------------------------------------------------------------------------- /csharp/Binary Search/WeightedRandomSelection.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Binary Search/WeightedRandomSelection.cs -------------------------------------------------------------------------------- /csharp/Fast and Slow Pointers/HappyNumber.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Fast and Slow Pointers/HappyNumber.cs -------------------------------------------------------------------------------- /csharp/Fast and Slow Pointers/LinkedListLoop.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Fast and Slow Pointers/LinkedListLoop.cs -------------------------------------------------------------------------------- /csharp/Fast and Slow Pointers/LinkedListLoopNaive.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Fast and Slow Pointers/LinkedListLoopNaive.cs -------------------------------------------------------------------------------- /csharp/Fast and Slow Pointers/LinkedListMidPoint.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Fast and Slow Pointers/LinkedListMidPoint.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/GeometricSequenceTriplets.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/GeometricSequenceTriplets.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/PairSumUnsorted.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/PairSumUnsorted.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/PairSumUnsortedTwoPass.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/PairSumUnsortedTwoPass.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/VerifySudokuBoard.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/VerifySudokuBoard.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/ZeroStriping.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/ZeroStriping.cs -------------------------------------------------------------------------------- /csharp/Hash Maps and Sets/ZeroStripingHashSets.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Hash Maps and Sets/ZeroStripingHashSets.cs -------------------------------------------------------------------------------- /csharp/Heaps/CombineSortedLinkedLists.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Heaps/CombineSortedLinkedLists.cs -------------------------------------------------------------------------------- /csharp/Heaps/KMostFrequentStringsMaxHeap.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Heaps/KMostFrequentStringsMaxHeap.cs -------------------------------------------------------------------------------- /csharp/Heaps/KMostFrequentStringsMinHeap.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Heaps/KMostFrequentStringsMinHeap.cs -------------------------------------------------------------------------------- /csharp/Heaps/MedianOfAnIntegerStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Heaps/MedianOfAnIntegerStream.cs -------------------------------------------------------------------------------- /csharp/Heaps/SortAKSortedArray.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Heaps/SortAKSortedArray.cs -------------------------------------------------------------------------------- /csharp/Intervals/IdentifyAllIntervalOverlaps.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Intervals/IdentifyAllIntervalOverlaps.cs -------------------------------------------------------------------------------- /csharp/Intervals/LargestOverlapOfIntervals.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Intervals/LargestOverlapOfIntervals.cs -------------------------------------------------------------------------------- /csharp/Intervals/MergeOverlappingIntervals.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Intervals/MergeOverlappingIntervals.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/FlattenMultiLevelList.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/FlattenMultiLevelList.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/LRUCache.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/LRUCache.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/LinkedListIntersection.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/LinkedListIntersection.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/LinkedListReversal.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/LinkedListReversal.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/LinkedListReversalRecursive.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/LinkedListReversalRecursive.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/PalindromicLinkedList.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/PalindromicLinkedList.cs -------------------------------------------------------------------------------- /csharp/Linked Lists/RemoveKthLastNode.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Linked Lists/RemoveKthLastNode.cs -------------------------------------------------------------------------------- /csharp/Prefix Sums/KSumSubArrays.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Prefix Sums/KSumSubArrays.cs -------------------------------------------------------------------------------- /csharp/Prefix Sums/KSumSubArraysOptimized.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Prefix Sums/KSumSubArraysOptimized.cs -------------------------------------------------------------------------------- /csharp/Prefix Sums/ProductArrayWithoutCurrentElement.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Prefix Sums/ProductArrayWithoutCurrentElement.cs -------------------------------------------------------------------------------- /csharp/Prefix Sums/SumBetweenRange.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Prefix Sums/SumBetweenRange.cs -------------------------------------------------------------------------------- /csharp/Sliding Windows/LongestSubstringWithUniqueChars.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Sliding Windows/LongestSubstringWithUniqueChars.cs -------------------------------------------------------------------------------- /csharp/Sliding Windows/LongestSubstringWithUniqueCharsOptimized.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Sliding Windows/LongestSubstringWithUniqueCharsOptimized.cs -------------------------------------------------------------------------------- /csharp/Sliding Windows/LongestUniformSubstringAfterReplacements.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Sliding Windows/LongestUniformSubstringAfterReplacements.cs -------------------------------------------------------------------------------- /csharp/Sliding Windows/SubstringAnagrams.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Sliding Windows/SubstringAnagrams.cs -------------------------------------------------------------------------------- /csharp/Stacks/EvaluateExpression.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Stacks/EvaluateExpression.cs -------------------------------------------------------------------------------- /csharp/Stacks/ImplementAQueueUsingAStack.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Stacks/ImplementAQueueUsingAStack.cs -------------------------------------------------------------------------------- /csharp/Stacks/MaximumsOfSlidingWindow.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Stacks/MaximumsOfSlidingWindow.cs -------------------------------------------------------------------------------- /csharp/Stacks/NextLargestNumberToTheRight.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Stacks/NextLargestNumberToTheRight.cs -------------------------------------------------------------------------------- /csharp/Stacks/RepeatedRemovalOfAdjacentDuplicates.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Stacks/RepeatedRemovalOfAdjacentDuplicates.cs -------------------------------------------------------------------------------- /csharp/Stacks/ValidParenthesisExpression.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Stacks/ValidParenthesisExpression.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/IsPalindromeValid.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/IsPalindromeValid.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/LargestContainer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/LargestContainer.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/LargestContainerBruteForce.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/LargestContainerBruteForce.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/NextLexicographicalSequence.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/NextLexicographicalSequence.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/PairSumSorted.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/PairSumSorted.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/PairSumSortedBruteForce.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/PairSumSortedBruteForce.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/ShiftZerosToTheEnd.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/ShiftZerosToTheEnd.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/ShiftZerosToTheEndNaive.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/ShiftZerosToTheEndNaive.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/TripletSum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/TripletSum.cs -------------------------------------------------------------------------------- /csharp/Two Pointers/TripletSumBruteForce.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/csharp/Two Pointers/TripletSumBruteForce.cs -------------------------------------------------------------------------------- /go/Hash Maps and Sets/geometric_sequence_triplets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/geometric_sequence_triplets.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/longest_chain_of_consecutive_numbers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/longest_chain_of_consecutive_numbers.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/pair_sum_unsorted.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/pair_sum_unsorted.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/pair_sum_unsorted_two_pass.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/pair_sum_unsorted_two_pass.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/verify_sudoku_board.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/verify_sudoku_board.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/zero_striping.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/zero_striping.go -------------------------------------------------------------------------------- /go/Hash Maps and Sets/zero_striping_hash_sets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Hash Maps and Sets/zero_striping_hash_sets.go -------------------------------------------------------------------------------- /go/Two Pointers/is_palindrome_valid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Two Pointers/is_palindrome_valid.go -------------------------------------------------------------------------------- /go/Two Pointers/largest_container.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Two Pointers/largest_container.go -------------------------------------------------------------------------------- /go/Two Pointers/next_lexicographical_sequence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Two Pointers/next_lexicographical_sequence.go -------------------------------------------------------------------------------- /go/Two Pointers/pair_sum_sorted.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Two Pointers/pair_sum_sorted.go -------------------------------------------------------------------------------- /go/Two Pointers/shift_zeros_to_the_end.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Two Pointers/shift_zeros_to_the_end.go -------------------------------------------------------------------------------- /go/Two Pointers/triplet_sum.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/go/Two Pointers/triplet_sum.go -------------------------------------------------------------------------------- /java/Backtracking/CombinationsOfSumK.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Backtracking/CombinationsOfSumK.java -------------------------------------------------------------------------------- /java/Backtracking/FindAllPermutations.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Backtracking/FindAllPermutations.java -------------------------------------------------------------------------------- /java/Backtracking/FindAllSubsets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Backtracking/FindAllSubsets.java -------------------------------------------------------------------------------- /java/Backtracking/NQueens.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Backtracking/NQueens.java -------------------------------------------------------------------------------- /java/Backtracking/PhoneKeypadCombinations.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Backtracking/PhoneKeypadCombinations.java -------------------------------------------------------------------------------- /java/Binary Search/CuttingWood.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/CuttingWood.java -------------------------------------------------------------------------------- /java/Binary Search/FindTheInsertionIndex.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/FindTheInsertionIndex.java -------------------------------------------------------------------------------- /java/Binary Search/FindTheMedianFromTwoSortedArrays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/FindTheMedianFromTwoSortedArrays.java -------------------------------------------------------------------------------- /java/Binary Search/FindTheTargetInARotatedSortedArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/FindTheTargetInARotatedSortedArray.java -------------------------------------------------------------------------------- /java/Binary Search/FirstAndLastOccurrencesOfANumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/FirstAndLastOccurrencesOfANumber.java -------------------------------------------------------------------------------- /java/Binary Search/LocalMaximaInArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/LocalMaximaInArray.java -------------------------------------------------------------------------------- /java/Binary Search/MatrixSearch.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/MatrixSearch.java -------------------------------------------------------------------------------- /java/Binary Search/WeightedRandomSelection.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Binary Search/WeightedRandomSelection.java -------------------------------------------------------------------------------- /java/Bit Manipulation/HammingWeightsOfIntegers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Bit Manipulation/HammingWeightsOfIntegers.java -------------------------------------------------------------------------------- /java/Bit Manipulation/HammingWeightsOfIntegersDp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Bit Manipulation/HammingWeightsOfIntegersDp.java -------------------------------------------------------------------------------- /java/Bit Manipulation/LonelyInteger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Bit Manipulation/LonelyInteger.java -------------------------------------------------------------------------------- /java/Bit Manipulation/SwapOddAndEvenBits.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Bit Manipulation/SwapOddAndEvenBits.java -------------------------------------------------------------------------------- /java/Dynamic Programming/ClimbingStairsBottomUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/ClimbingStairsBottomUp.java -------------------------------------------------------------------------------- /java/Dynamic Programming/ClimbingStairsBottomUpOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/ClimbingStairsBottomUpOptimized.java -------------------------------------------------------------------------------- /java/Dynamic Programming/ClimbingStairsTopDown.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/ClimbingStairsTopDown.java -------------------------------------------------------------------------------- /java/Dynamic Programming/Knapsack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/Knapsack.java -------------------------------------------------------------------------------- /java/Dynamic Programming/KnapsackOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/KnapsackOptimized.java -------------------------------------------------------------------------------- /java/Dynamic Programming/LargestSquareInAMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/LargestSquareInAMatrix.java -------------------------------------------------------------------------------- /java/Dynamic Programming/LargestSquareInAMatrixOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/LargestSquareInAMatrixOptimized.java -------------------------------------------------------------------------------- /java/Dynamic Programming/LongestCommonSubsequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/LongestCommonSubsequence.java -------------------------------------------------------------------------------- /java/Dynamic Programming/LongestCommonSubsequenceOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/LongestCommonSubsequenceOptimized.java -------------------------------------------------------------------------------- /java/Dynamic Programming/LongestPalindromeInAString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/LongestPalindromeInAString.java -------------------------------------------------------------------------------- /java/Dynamic Programming/LongestPalindromeInAStringExpanding.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/LongestPalindromeInAStringExpanding.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MatrixPathways.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MatrixPathways.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MatrixPathwaysOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MatrixPathwaysOptimized.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MaximumSubarraySum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MaximumSubarraySum.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MaximumSubarraySumDp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MaximumSubarraySumDp.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MaximumSubarraySumDpOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MaximumSubarraySumDpOptimized.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MinCoinCombinationBottomUp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MinCoinCombinationBottomUp.java -------------------------------------------------------------------------------- /java/Dynamic Programming/MinCoinCombinationTopDown.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/MinCoinCombinationTopDown.java -------------------------------------------------------------------------------- /java/Dynamic Programming/NeighborhoodBurglary.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/NeighborhoodBurglary.java -------------------------------------------------------------------------------- /java/Dynamic Programming/NeighborhoodBurglaryOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Dynamic Programming/NeighborhoodBurglaryOptimized.java -------------------------------------------------------------------------------- /java/Fast and Slow Pointers/HappyNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Fast and Slow Pointers/HappyNumber.java -------------------------------------------------------------------------------- /java/Fast and Slow Pointers/LinkedListLoop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Fast and Slow Pointers/LinkedListLoop.java -------------------------------------------------------------------------------- /java/Fast and Slow Pointers/LinkedListLoopNaive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Fast and Slow Pointers/LinkedListLoopNaive.java -------------------------------------------------------------------------------- /java/Fast and Slow Pointers/LinkedListMidpoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Fast and Slow Pointers/LinkedListMidpoint.java -------------------------------------------------------------------------------- /java/Graphs/BipartiteGraphValidation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/BipartiteGraphValidation.java -------------------------------------------------------------------------------- /java/Graphs/ConnectTheDots.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/ConnectTheDots.java -------------------------------------------------------------------------------- /java/Graphs/CountIslands.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/CountIslands.java -------------------------------------------------------------------------------- /java/Graphs/GraphDeepCopy.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/GraphDeepCopy.java -------------------------------------------------------------------------------- /java/Graphs/LongestIncreasingPath.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/LongestIncreasingPath.java -------------------------------------------------------------------------------- /java/Graphs/MatrixInfection.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/MatrixInfection.java -------------------------------------------------------------------------------- /java/Graphs/MergingCommunities.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/MergingCommunities.java -------------------------------------------------------------------------------- /java/Graphs/Prerequisites.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/Prerequisites.java -------------------------------------------------------------------------------- /java/Graphs/ShortestPath.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/ShortestPath.java -------------------------------------------------------------------------------- /java/Graphs/ShortestTransformationSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/ShortestTransformationSequence.java -------------------------------------------------------------------------------- /java/Graphs/ShortestTransformationSequenceOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Graphs/ShortestTransformationSequenceOptimized.java -------------------------------------------------------------------------------- /java/Greedy/Candies.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Greedy/Candies.java -------------------------------------------------------------------------------- /java/Greedy/GasStations.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Greedy/GasStations.java -------------------------------------------------------------------------------- /java/Greedy/JumpToTheEnd.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Greedy/JumpToTheEnd.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/GeometricSequenceTriplets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/GeometricSequenceTriplets.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/PairSumUnsorted.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/PairSumUnsorted.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/PairSumUnsortedTwoPass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/PairSumUnsortedTwoPass.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/VerifySudokuBoard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/VerifySudokuBoard.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/ZeroStriping.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/ZeroStriping.java -------------------------------------------------------------------------------- /java/Hash Maps and Sets/ZeroStripingHashSets.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Hash Maps and Sets/ZeroStripingHashSets.java -------------------------------------------------------------------------------- /java/Heaps/CombineSortedLinkedLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Heaps/CombineSortedLinkedLists.java -------------------------------------------------------------------------------- /java/Heaps/KMostFrequentStringsMaxHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Heaps/KMostFrequentStringsMaxHeap.java -------------------------------------------------------------------------------- /java/Heaps/KMostFrequentStringsMinHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Heaps/KMostFrequentStringsMinHeap.java -------------------------------------------------------------------------------- /java/Heaps/MedianOfAnIntegerStream.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Heaps/MedianOfAnIntegerStream.java -------------------------------------------------------------------------------- /java/Heaps/SortAKSortedArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Heaps/SortAKSortedArray.java -------------------------------------------------------------------------------- /java/Intervals/IdentifyAllIntervalOverlaps.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Intervals/IdentifyAllIntervalOverlaps.java -------------------------------------------------------------------------------- /java/Intervals/LargestOverlapOfIntervals.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Intervals/LargestOverlapOfIntervals.java -------------------------------------------------------------------------------- /java/Intervals/MergeOverlappingIntervals.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Intervals/MergeOverlappingIntervals.java -------------------------------------------------------------------------------- /java/Linked Lists/FlattenMultiLevelList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/FlattenMultiLevelList.java -------------------------------------------------------------------------------- /java/Linked Lists/LRUCache.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/LRUCache.java -------------------------------------------------------------------------------- /java/Linked Lists/LinkedListIntersection.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/LinkedListIntersection.java -------------------------------------------------------------------------------- /java/Linked Lists/LinkedListReversal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/LinkedListReversal.java -------------------------------------------------------------------------------- /java/Linked Lists/LinkedListReversalRecursive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/LinkedListReversalRecursive.java -------------------------------------------------------------------------------- /java/Linked Lists/PalindromicLinkedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/PalindromicLinkedList.java -------------------------------------------------------------------------------- /java/Linked Lists/RemoveKthLastNode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Linked Lists/RemoveKthLastNode.java -------------------------------------------------------------------------------- /java/Prefix Sums/KSumSubarrays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Prefix Sums/KSumSubarrays.java -------------------------------------------------------------------------------- /java/Prefix Sums/KSumSubarraysOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Prefix Sums/KSumSubarraysOptimized.java -------------------------------------------------------------------------------- /java/Prefix Sums/ProductArrayWithoutCurrentElement.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Prefix Sums/ProductArrayWithoutCurrentElement.java -------------------------------------------------------------------------------- /java/Prefix Sums/SumBetweenRange.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Prefix Sums/SumBetweenRange.java -------------------------------------------------------------------------------- /java/Sliding Windows/LongestSubstringWithUniqueChars.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sliding Windows/LongestSubstringWithUniqueChars.java -------------------------------------------------------------------------------- /java/Sliding Windows/LongestSubstringWithUniqueCharsOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sliding Windows/LongestSubstringWithUniqueCharsOptimized.java -------------------------------------------------------------------------------- /java/Sliding Windows/LongestUniformSubstringAfterReplacements.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sliding Windows/LongestUniformSubstringAfterReplacements.java -------------------------------------------------------------------------------- /java/Sliding Windows/SubstringAnagrams.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sliding Windows/SubstringAnagrams.java -------------------------------------------------------------------------------- /java/Sort and Search/DutchNationalFlag.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/DutchNationalFlag.java -------------------------------------------------------------------------------- /java/Sort and Search/KthLargestIntegerMinHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/KthLargestIntegerMinHeap.java -------------------------------------------------------------------------------- /java/Sort and Search/KthLargestIntegerQuickselect.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/KthLargestIntegerQuickselect.java -------------------------------------------------------------------------------- /java/Sort and Search/SortArrayCountingSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/SortArrayCountingSort.java -------------------------------------------------------------------------------- /java/Sort and Search/SortArrayQuicksort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/SortArrayQuicksort.java -------------------------------------------------------------------------------- /java/Sort and Search/SortArrayQuicksortOptimized.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/SortArrayQuicksortOptimized.java -------------------------------------------------------------------------------- /java/Sort and Search/SortLinkedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Sort and Search/SortLinkedList.java -------------------------------------------------------------------------------- /java/Stacks/EvaluateExpression.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Stacks/EvaluateExpression.java -------------------------------------------------------------------------------- /java/Stacks/ImplementAQueueUsingAStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Stacks/ImplementAQueueUsingAStack.java -------------------------------------------------------------------------------- /java/Stacks/MaximumsOfSlidingWindow.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Stacks/MaximumsOfSlidingWindow.java -------------------------------------------------------------------------------- /java/Stacks/NextLargestNumberToTheRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Stacks/NextLargestNumberToTheRight.java -------------------------------------------------------------------------------- /java/Stacks/RepeatedRemovalOfAdjacentDuplicates.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Stacks/RepeatedRemovalOfAdjacentDuplicates.java -------------------------------------------------------------------------------- /java/Stacks/ValidParenthesisExpression.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Stacks/ValidParenthesisExpression.java -------------------------------------------------------------------------------- /java/Trees/BalancedBinaryTreeValidation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/BalancedBinaryTreeValidation.java -------------------------------------------------------------------------------- /java/Trees/BinarySearchTreeValidation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/BinarySearchTreeValidation.java -------------------------------------------------------------------------------- /java/Trees/BinaryTreeColumns.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/BinaryTreeColumns.java -------------------------------------------------------------------------------- /java/Trees/BinaryTreeSymmetry.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/BinaryTreeSymmetry.java -------------------------------------------------------------------------------- /java/Trees/BuildBinaryTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/BuildBinaryTree.java -------------------------------------------------------------------------------- /java/Trees/InvertBinaryTreeIterative.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/InvertBinaryTreeIterative.java -------------------------------------------------------------------------------- /java/Trees/InvertBinaryTreeRecursive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/InvertBinaryTreeRecursive.java -------------------------------------------------------------------------------- /java/Trees/KthSmallestNumberInBSTIterative.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/KthSmallestNumberInBSTIterative.java -------------------------------------------------------------------------------- /java/Trees/KthSmallestNumberInBSTRecursive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/KthSmallestNumberInBSTRecursive.java -------------------------------------------------------------------------------- /java/Trees/LowestCommonAncestor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/LowestCommonAncestor.java -------------------------------------------------------------------------------- /java/Trees/MaximumPathSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/MaximumPathSum.java -------------------------------------------------------------------------------- /java/Trees/RightmostNodesOfABinaryTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/RightmostNodesOfABinaryTree.java -------------------------------------------------------------------------------- /java/Trees/SerializeAndDeserializeABinaryTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/SerializeAndDeserializeABinaryTree.java -------------------------------------------------------------------------------- /java/Trees/WidestBinaryTreeLevel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Trees/WidestBinaryTreeLevel.java -------------------------------------------------------------------------------- /java/Tries/DesignATrie.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Tries/DesignATrie.java -------------------------------------------------------------------------------- /java/Tries/FindAllWordsOnABoard.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Tries/FindAllWordsOnABoard.java -------------------------------------------------------------------------------- /java/Tries/InsertAndSearchWordsWithWildcards.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Tries/InsertAndSearchWordsWithWildcards.java -------------------------------------------------------------------------------- /java/Two Pointers/IsPalindromeValid.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/IsPalindromeValid.java -------------------------------------------------------------------------------- /java/Two Pointers/LargestContainer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/LargestContainer.java -------------------------------------------------------------------------------- /java/Two Pointers/LargestContainerBruteForce.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/LargestContainerBruteForce.java -------------------------------------------------------------------------------- /java/Two Pointers/NextLexicographicalSequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/NextLexicographicalSequence.java -------------------------------------------------------------------------------- /java/Two Pointers/PairSumSorted.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/PairSumSorted.java -------------------------------------------------------------------------------- /java/Two Pointers/PairSumSortedBruteForce.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/PairSumSortedBruteForce.java -------------------------------------------------------------------------------- /java/Two Pointers/ShiftZerosToTheEnd.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/ShiftZerosToTheEnd.java -------------------------------------------------------------------------------- /java/Two Pointers/ShiftZerosToTheEndNaive.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/ShiftZerosToTheEndNaive.java -------------------------------------------------------------------------------- /java/Two Pointers/TripletSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/TripletSum.java -------------------------------------------------------------------------------- /java/Two Pointers/TripletSumBruteForce.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/java/Two Pointers/TripletSumBruteForce.java -------------------------------------------------------------------------------- /kotlin/Backtracking/CombinationsOfSumK.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Backtracking/CombinationsOfSumK.kt -------------------------------------------------------------------------------- /kotlin/Backtracking/FindAllPermutations.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Backtracking/FindAllPermutations.kt -------------------------------------------------------------------------------- /kotlin/Backtracking/FindAllSubsets.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Backtracking/FindAllSubsets.kt -------------------------------------------------------------------------------- /kotlin/Backtracking/NQueens.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Backtracking/NQueens.kt -------------------------------------------------------------------------------- /kotlin/Backtracking/PhoneKeypadCombinations.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Backtracking/PhoneKeypadCombinations.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/CuttingWood.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/CuttingWood.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/FindTheInsertionIndex.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/FindTheInsertionIndex.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/FindTheMedianFromTwoSortedArray.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/FindTheMedianFromTwoSortedArray.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/FindTheTargetInARotatedSortedArray.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/FindTheTargetInARotatedSortedArray.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/FirstAndLastOccurrencesOfANumber.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/FirstAndLastOccurrencesOfANumber.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/LocalMaximaInArray.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/LocalMaximaInArray.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/MatrixSearch.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/MatrixSearch.kt -------------------------------------------------------------------------------- /kotlin/Binary Search/WeightRandomSelection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Binary Search/WeightRandomSelection.kt -------------------------------------------------------------------------------- /kotlin/Bit Manipulation/HammingWeightsOfIntegers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Bit Manipulation/HammingWeightsOfIntegers.kt -------------------------------------------------------------------------------- /kotlin/Bit Manipulation/HammingWeightsOfIntegersDp.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Bit Manipulation/HammingWeightsOfIntegersDp.kt -------------------------------------------------------------------------------- /kotlin/Bit Manipulation/LonelyInteger.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Bit Manipulation/LonelyInteger.kt -------------------------------------------------------------------------------- /kotlin/Bit Manipulation/SwapOddAndEvenBits.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Bit Manipulation/SwapOddAndEvenBits.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/ClimbingStairsBottomUp.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/ClimbingStairsBottomUp.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/ClimbingStairsBottomUpOptimize.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/ClimbingStairsBottomUpOptimize.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/ClimbingStairsTopDown.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/ClimbingStairsTopDown.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/Knapsack.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/Knapsack.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/KnapsackOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/KnapsackOptimized.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/LargestSquareInAMatrix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/LargestSquareInAMatrix.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/LargestSquareInAMatrixOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/LargestSquareInAMatrixOptimized.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/LongestCommonSubsequence.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/LongestCommonSubsequence.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/LongestCommonSubsequenceOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/LongestCommonSubsequenceOptimized.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/LongestPalindromeInAString.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/LongestPalindromeInAString.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/LongestPalindromeInAStringExpanding.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/LongestPalindromeInAStringExpanding.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MatrixPathways.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MatrixPathways.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MatrixPathwaysOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MatrixPathwaysOptimized.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MaximumSubarraySum.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MaximumSubarraySum.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MaximumSubarraySumDP.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MaximumSubarraySumDP.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MaximumSubarraySumDPOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MaximumSubarraySumDPOptimized.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MinCoinCombinationBottomUp.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MinCoinCombinationBottomUp.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/MinCoinCombinationTopDown.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/MinCoinCombinationTopDown.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/NeighborhoodBurglary.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/NeighborhoodBurglary.kt -------------------------------------------------------------------------------- /kotlin/Dynamic Programming/NeighborhoodBurglaryOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Dynamic Programming/NeighborhoodBurglaryOptimized.kt -------------------------------------------------------------------------------- /kotlin/Fast and Slow Pointers/HappyNumber.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Fast and Slow Pointers/HappyNumber.kt -------------------------------------------------------------------------------- /kotlin/Fast and Slow Pointers/LinkedListLoop.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Fast and Slow Pointers/LinkedListLoop.kt -------------------------------------------------------------------------------- /kotlin/Fast and Slow Pointers/LinkedListLoopNaive.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Fast and Slow Pointers/LinkedListLoopNaive.kt -------------------------------------------------------------------------------- /kotlin/Fast and Slow Pointers/LinkedListMidpoint.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Fast and Slow Pointers/LinkedListMidpoint.kt -------------------------------------------------------------------------------- /kotlin/Graphs/BipartiteGraphValidation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/BipartiteGraphValidation.kt -------------------------------------------------------------------------------- /kotlin/Graphs/ConnectTheDots.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/ConnectTheDots.kt -------------------------------------------------------------------------------- /kotlin/Graphs/CountIslands.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/CountIslands.kt -------------------------------------------------------------------------------- /kotlin/Graphs/GraphDeepCopy.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/GraphDeepCopy.kt -------------------------------------------------------------------------------- /kotlin/Graphs/LongestIncreasingPath.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/LongestIncreasingPath.kt -------------------------------------------------------------------------------- /kotlin/Graphs/MatrixInfection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/MatrixInfection.kt -------------------------------------------------------------------------------- /kotlin/Graphs/MergingCommunities.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/MergingCommunities.kt -------------------------------------------------------------------------------- /kotlin/Graphs/Prerequisites.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/Prerequisites.kt -------------------------------------------------------------------------------- /kotlin/Graphs/ShortestPath.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/ShortestPath.kt -------------------------------------------------------------------------------- /kotlin/Graphs/ShortestTransformationSequencOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/ShortestTransformationSequencOptimized.kt -------------------------------------------------------------------------------- /kotlin/Graphs/ShortestTransformationSequence.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Graphs/ShortestTransformationSequence.kt -------------------------------------------------------------------------------- /kotlin/Greedy/Candies.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Greedy/Candies.kt -------------------------------------------------------------------------------- /kotlin/Greedy/GasStations.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Greedy/GasStations.kt -------------------------------------------------------------------------------- /kotlin/Greedy/JumpToTheEnd.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Greedy/JumpToTheEnd.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/GeometricSequenceTriplets.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/GeometricSequenceTriplets.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/PairSumUnSortedTwoPass.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/PairSumUnSortedTwoPass.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/PairSumUnsorted.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/PairSumUnsorted.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/VerifySudokuBoard.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/VerifySudokuBoard.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/ZeroStriping.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/ZeroStriping.kt -------------------------------------------------------------------------------- /kotlin/Hash Maps and Sets/ZeroStripingHashSets.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Hash Maps and Sets/ZeroStripingHashSets.kt -------------------------------------------------------------------------------- /kotlin/Heaps/CombineSortedLinkedList.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Heaps/CombineSortedLinkedList.kt -------------------------------------------------------------------------------- /kotlin/Heaps/KMostFrequentStringsMaxHeap.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Heaps/KMostFrequentStringsMaxHeap.kt -------------------------------------------------------------------------------- /kotlin/Heaps/KMostFrequentStringsMinHeap.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Heaps/KMostFrequentStringsMinHeap.kt -------------------------------------------------------------------------------- /kotlin/Heaps/MedianOfAnIntegerStream.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Heaps/MedianOfAnIntegerStream.kt -------------------------------------------------------------------------------- /kotlin/Heaps/SortAKSortedArray.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Heaps/SortAKSortedArray.kt -------------------------------------------------------------------------------- /kotlin/Intervals/IdentifyAllIntervalOverlaps.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Intervals/IdentifyAllIntervalOverlaps.kt -------------------------------------------------------------------------------- /kotlin/Intervals/LargestOverlapOfIntervals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Intervals/LargestOverlapOfIntervals.kt -------------------------------------------------------------------------------- /kotlin/Intervals/MergeOverlappingIntervals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Intervals/MergeOverlappingIntervals.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/FlattenMultiLevelList.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/FlattenMultiLevelList.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/LRUCache.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/LRUCache.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/LinkedListIntersection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/LinkedListIntersection.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/LinkedListReversal.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/LinkedListReversal.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/LinkedListReversalRecursive.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/LinkedListReversalRecursive.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/PalindromicLinkedList.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/PalindromicLinkedList.kt -------------------------------------------------------------------------------- /kotlin/Linked Lists/RemoveKthLastNode.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Linked Lists/RemoveKthLastNode.kt -------------------------------------------------------------------------------- /kotlin/Math and Geometry/Josephus.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Math and Geometry/Josephus.kt -------------------------------------------------------------------------------- /kotlin/Math and Geometry/JosephusOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Math and Geometry/JosephusOptimized.kt -------------------------------------------------------------------------------- /kotlin/Math and Geometry/MaximumCollinearPoints.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Math and Geometry/MaximumCollinearPoints.kt -------------------------------------------------------------------------------- /kotlin/Math and Geometry/Reverse32BitInteger.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Math and Geometry/Reverse32BitInteger.kt -------------------------------------------------------------------------------- /kotlin/Math and Geometry/SpiralMatrix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Math and Geometry/SpiralMatrix.kt -------------------------------------------------------------------------------- /kotlin/Math and Geometry/TriangleNumbers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Math and Geometry/TriangleNumbers.kt -------------------------------------------------------------------------------- /kotlin/Prefix Sums/KSumSubarrays.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Prefix Sums/KSumSubarrays.kt -------------------------------------------------------------------------------- /kotlin/Prefix Sums/KSumSubarraysOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Prefix Sums/KSumSubarraysOptimized.kt -------------------------------------------------------------------------------- /kotlin/Prefix Sums/ProductsArrayWithoutCurrentElement.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Prefix Sums/ProductsArrayWithoutCurrentElement.kt -------------------------------------------------------------------------------- /kotlin/Prefix Sums/SumBetweenRange.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Prefix Sums/SumBetweenRange.kt -------------------------------------------------------------------------------- /kotlin/Sliding Windows/LongestSubstringWithUniqueChars.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sliding Windows/LongestSubstringWithUniqueChars.kt -------------------------------------------------------------------------------- /kotlin/Sliding Windows/LongestSubstringWithUniqueCharsOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sliding Windows/LongestSubstringWithUniqueCharsOptimized.kt -------------------------------------------------------------------------------- /kotlin/Sliding Windows/LongestUniformSubstringAfterReplacements.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sliding Windows/LongestUniformSubstringAfterReplacements.kt -------------------------------------------------------------------------------- /kotlin/Sliding Windows/SubstringAnagrams.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sliding Windows/SubstringAnagrams.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/DutchNationalFlag.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/DutchNationalFlag.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/KthLargestIntegerMinHeap.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/KthLargestIntegerMinHeap.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/KthLargestIntegerQuickselect.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/KthLargestIntegerQuickselect.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/SortArrayCountingSort.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/SortArrayCountingSort.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/SortArrayQuicksort.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/SortArrayQuicksort.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/SortArrayQuicksortOptimized.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/SortArrayQuicksortOptimized.kt -------------------------------------------------------------------------------- /kotlin/Sort and Search/SortLinkedList.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Sort and Search/SortLinkedList.kt -------------------------------------------------------------------------------- /kotlin/Stacks/EvaluateExpression.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Stacks/EvaluateExpression.kt -------------------------------------------------------------------------------- /kotlin/Stacks/ImplementAQueueUsingAStack.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Stacks/ImplementAQueueUsingAStack.kt -------------------------------------------------------------------------------- /kotlin/Stacks/MaximumsOfSlidingWindow.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Stacks/MaximumsOfSlidingWindow.kt -------------------------------------------------------------------------------- /kotlin/Stacks/NextLargestNumberToTheRight.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Stacks/NextLargestNumberToTheRight.kt -------------------------------------------------------------------------------- /kotlin/Stacks/RepeatedRemovalOfAdjacentDuplicates.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Stacks/RepeatedRemovalOfAdjacentDuplicates.kt -------------------------------------------------------------------------------- /kotlin/Stacks/ValidParenthesisExpression.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Stacks/ValidParenthesisExpression.kt -------------------------------------------------------------------------------- /kotlin/Trees/BalancedBinaryTreeValidation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/BalancedBinaryTreeValidation.kt -------------------------------------------------------------------------------- /kotlin/Trees/BinarySearchTreeValidation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/BinarySearchTreeValidation.kt -------------------------------------------------------------------------------- /kotlin/Trees/BinaryTreeColumns.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/BinaryTreeColumns.kt -------------------------------------------------------------------------------- /kotlin/Trees/BinaryTreeSymmetry.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/BinaryTreeSymmetry.kt -------------------------------------------------------------------------------- /kotlin/Trees/BuildBinaryTree.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/BuildBinaryTree.kt -------------------------------------------------------------------------------- /kotlin/Trees/InvertBinaryTreeIteretive.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/InvertBinaryTreeIteretive.kt -------------------------------------------------------------------------------- /kotlin/Trees/InvertBinaryTreeRecursive.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/InvertBinaryTreeRecursive.kt -------------------------------------------------------------------------------- /kotlin/Trees/KthSmallestNumberInBSTIterative.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/KthSmallestNumberInBSTIterative.kt -------------------------------------------------------------------------------- /kotlin/Trees/KthSmallestNumberInBSTRecursive.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/KthSmallestNumberInBSTRecursive.kt -------------------------------------------------------------------------------- /kotlin/Trees/LowestCommonAncestor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/LowestCommonAncestor.kt -------------------------------------------------------------------------------- /kotlin/Trees/MaximumPathSum.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/MaximumPathSum.kt -------------------------------------------------------------------------------- /kotlin/Trees/RightmostNodesOfABinaryTree.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/RightmostNodesOfABinaryTree.kt -------------------------------------------------------------------------------- /kotlin/Trees/SerializeAndDeserializeABinaryTree.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/SerializeAndDeserializeABinaryTree.kt -------------------------------------------------------------------------------- /kotlin/Trees/WidestBinaryTreeLevel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Trees/WidestBinaryTreeLevel.kt -------------------------------------------------------------------------------- /kotlin/Tries/DesignATrie.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Tries/DesignATrie.kt -------------------------------------------------------------------------------- /kotlin/Tries/FindAllWordsOnABoard.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Tries/FindAllWordsOnABoard.kt -------------------------------------------------------------------------------- /kotlin/Tries/InsertAndSearchWordsWithWildcards.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Tries/InsertAndSearchWordsWithWildcards.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/IsPalindromeValid.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/IsPalindromeValid.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/LargestContainer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/LargestContainer.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/LargestContainerBruteForce.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/LargestContainerBruteForce.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/NextLexicographicalSequence.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/NextLexicographicalSequence.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/PairSumSorted.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/PairSumSorted.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/PairSumSortedBruteForce.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/PairSumSortedBruteForce.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/ShiftZeroToTheEnd.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/ShiftZeroToTheEnd.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/ShiftZeroToTheEndNaive.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/ShiftZeroToTheEndNaive.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/TripletSum.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/TripletSum.kt -------------------------------------------------------------------------------- /kotlin/Two Pointers/TripletSumBruteForce.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/kotlin/Two Pointers/TripletSumBruteForce.kt -------------------------------------------------------------------------------- /python3/Backtracking/combinations_of_sum_k.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Backtracking/combinations_of_sum_k.py -------------------------------------------------------------------------------- /python3/Backtracking/find_all_permutations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Backtracking/find_all_permutations.py -------------------------------------------------------------------------------- /python3/Backtracking/find_all_subsets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Backtracking/find_all_subsets.py -------------------------------------------------------------------------------- /python3/Backtracking/n_queens.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Backtracking/n_queens.py -------------------------------------------------------------------------------- /python3/Backtracking/phone_keypad_combinations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Backtracking/phone_keypad_combinations.py -------------------------------------------------------------------------------- /python3/Binary Search/cutting_wood.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/cutting_wood.py -------------------------------------------------------------------------------- /python3/Binary Search/find_the_insertion_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/find_the_insertion_index.py -------------------------------------------------------------------------------- /python3/Binary Search/find_the_median_from_two_sorted_arrays.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/find_the_median_from_two_sorted_arrays.py -------------------------------------------------------------------------------- /python3/Binary Search/find_the_target_in_a_rotated_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/find_the_target_in_a_rotated_sorted_array.py -------------------------------------------------------------------------------- /python3/Binary Search/first_and_last_occurrences_of_a_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/first_and_last_occurrences_of_a_number.py -------------------------------------------------------------------------------- /python3/Binary Search/local_maxima_in_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/local_maxima_in_array.py -------------------------------------------------------------------------------- /python3/Binary Search/matrix_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/matrix_search.py -------------------------------------------------------------------------------- /python3/Binary Search/weighted_random_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Binary Search/weighted_random_selection.py -------------------------------------------------------------------------------- /python3/Bit Manipulation/hamming_weights_of_integers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Bit Manipulation/hamming_weights_of_integers.py -------------------------------------------------------------------------------- /python3/Bit Manipulation/hamming_weights_of_integers_dp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Bit Manipulation/hamming_weights_of_integers_dp.py -------------------------------------------------------------------------------- /python3/Bit Manipulation/lonely_integer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Bit Manipulation/lonely_integer.py -------------------------------------------------------------------------------- /python3/Bit Manipulation/swap_odd_and_even_bits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Bit Manipulation/swap_odd_and_even_bits.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/climbing_stairs_bottom_up.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/climbing_stairs_bottom_up.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/climbing_stairs_bottom_up_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/climbing_stairs_bottom_up_optimized.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/climbing_stairs_top_down.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/climbing_stairs_top_down.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/knapsack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/knapsack.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/knapsack_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/knapsack_optimized.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/largest_square_in_a_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/largest_square_in_a_matrix.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/largest_square_in_a_matrix_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/largest_square_in_a_matrix_optimized.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/longest_common_subsequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/longest_common_subsequence.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/longest_common_subsequence_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/longest_common_subsequence_optimized.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/longest_palindrome_in_a_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/longest_palindrome_in_a_string.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/longest_palindrome_in_a_string_expanding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/longest_palindrome_in_a_string_expanding.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/matrix_pathways.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/matrix_pathways.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/matrix_pathways_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/matrix_pathways_optimized.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/maximum_subarray_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/maximum_subarray_sum.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/maximum_subarray_sum_dp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/maximum_subarray_sum_dp.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/maximum_subarray_sum_dp_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/maximum_subarray_sum_dp_optimized.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/min_coin_combination_bottom_up.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/min_coin_combination_bottom_up.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/min_coin_combination_top_down.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/min_coin_combination_top_down.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/neighborhood_burglary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/neighborhood_burglary.py -------------------------------------------------------------------------------- /python3/Dynamic Programming/neighborhood_burglary_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Dynamic Programming/neighborhood_burglary_optimized.py -------------------------------------------------------------------------------- /python3/Fast and Slow Pointers/happy_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Fast and Slow Pointers/happy_number.py -------------------------------------------------------------------------------- /python3/Fast and Slow Pointers/linked_list_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Fast and Slow Pointers/linked_list_loop.py -------------------------------------------------------------------------------- /python3/Fast and Slow Pointers/linked_list_loop_naive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Fast and Slow Pointers/linked_list_loop_naive.py -------------------------------------------------------------------------------- /python3/Fast and Slow Pointers/linked_list_midpoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Fast and Slow Pointers/linked_list_midpoint.py -------------------------------------------------------------------------------- /python3/Graphs/bipartite_graph_validation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/bipartite_graph_validation.py -------------------------------------------------------------------------------- /python3/Graphs/connect_the_dots.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/connect_the_dots.py -------------------------------------------------------------------------------- /python3/Graphs/count_islands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/count_islands.py -------------------------------------------------------------------------------- /python3/Graphs/graph_deep_copy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/graph_deep_copy.py -------------------------------------------------------------------------------- /python3/Graphs/longest_increasing_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/longest_increasing_path.py -------------------------------------------------------------------------------- /python3/Graphs/matrix_infection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/matrix_infection.py -------------------------------------------------------------------------------- /python3/Graphs/merging_communities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/merging_communities.py -------------------------------------------------------------------------------- /python3/Graphs/prerequisites.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/prerequisites.py -------------------------------------------------------------------------------- /python3/Graphs/shortest_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/shortest_path.py -------------------------------------------------------------------------------- /python3/Graphs/shortest_transformation_sequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/shortest_transformation_sequence.py -------------------------------------------------------------------------------- /python3/Graphs/shortest_transformation_sequence_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Graphs/shortest_transformation_sequence_optimized.py -------------------------------------------------------------------------------- /python3/Greedy/candies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Greedy/candies.py -------------------------------------------------------------------------------- /python3/Greedy/gas_stations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Greedy/gas_stations.py -------------------------------------------------------------------------------- /python3/Greedy/jump_to_the_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Greedy/jump_to_the_end.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/geometric_sequence_triplets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/geometric_sequence_triplets.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/longest_chain_of_consecutive_numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/longest_chain_of_consecutive_numbers.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/pair_sum_unsorted.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/pair_sum_unsorted.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/pair_sum_unsorted_two_pass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/pair_sum_unsorted_two_pass.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/verify_sudoku_board.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/verify_sudoku_board.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/zero_striping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/zero_striping.py -------------------------------------------------------------------------------- /python3/Hash Maps and Sets/zero_striping_hash_sets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Hash Maps and Sets/zero_striping_hash_sets.py -------------------------------------------------------------------------------- /python3/Heaps/combine_sorted_linked_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Heaps/combine_sorted_linked_lists.py -------------------------------------------------------------------------------- /python3/Heaps/k_most_frequent_strings_max_heap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Heaps/k_most_frequent_strings_max_heap.py -------------------------------------------------------------------------------- /python3/Heaps/k_most_frequent_strings_min_heap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Heaps/k_most_frequent_strings_min_heap.py -------------------------------------------------------------------------------- /python3/Heaps/median_of_an_integer_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Heaps/median_of_an_integer_stream.py -------------------------------------------------------------------------------- /python3/Heaps/sort_a_k_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Heaps/sort_a_k_sorted_array.py -------------------------------------------------------------------------------- /python3/Intervals/identify_all_interval_overlaps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Intervals/identify_all_interval_overlaps.py -------------------------------------------------------------------------------- /python3/Intervals/largest_overlap_of_intervals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Intervals/largest_overlap_of_intervals.py -------------------------------------------------------------------------------- /python3/Intervals/merge_overlapping_intervals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Intervals/merge_overlapping_intervals.py -------------------------------------------------------------------------------- /python3/Linked Lists/flatten_multi_level_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/flatten_multi_level_list.py -------------------------------------------------------------------------------- /python3/Linked Lists/linked_list_intersection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/linked_list_intersection.py -------------------------------------------------------------------------------- /python3/Linked Lists/linked_list_reversal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/linked_list_reversal.py -------------------------------------------------------------------------------- /python3/Linked Lists/linked_list_reversal_recursive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/linked_list_reversal_recursive.py -------------------------------------------------------------------------------- /python3/Linked Lists/lru_cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/lru_cache.py -------------------------------------------------------------------------------- /python3/Linked Lists/palindromic_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/palindromic_linked_list.py -------------------------------------------------------------------------------- /python3/Linked Lists/remove_kth_last_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Linked Lists/remove_kth_last_node.py -------------------------------------------------------------------------------- /python3/Math and Geometry/josephus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Math and Geometry/josephus.py -------------------------------------------------------------------------------- /python3/Math and Geometry/josephus_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Math and Geometry/josephus_optimized.py -------------------------------------------------------------------------------- /python3/Math and Geometry/maximum_collinear_points.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Math and Geometry/maximum_collinear_points.py -------------------------------------------------------------------------------- /python3/Math and Geometry/reverse_32_bit_integer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Math and Geometry/reverse_32_bit_integer.py -------------------------------------------------------------------------------- /python3/Math and Geometry/spiral_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Math and Geometry/spiral_matrix.py -------------------------------------------------------------------------------- /python3/Math and Geometry/triangle_numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Math and Geometry/triangle_numbers.py -------------------------------------------------------------------------------- /python3/Prefix Sums/k_sum_subarrays.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Prefix Sums/k_sum_subarrays.py -------------------------------------------------------------------------------- /python3/Prefix Sums/k_sum_subarrays_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Prefix Sums/k_sum_subarrays_optimized.py -------------------------------------------------------------------------------- /python3/Prefix Sums/product_array_without_current_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Prefix Sums/product_array_without_current_element.py -------------------------------------------------------------------------------- /python3/Prefix Sums/sum_between_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Prefix Sums/sum_between_range.py -------------------------------------------------------------------------------- /python3/Sliding Windows/longest_substring_with_unique_chars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sliding Windows/longest_substring_with_unique_chars.py -------------------------------------------------------------------------------- /python3/Sliding Windows/longest_substring_with_unique_chars_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sliding Windows/longest_substring_with_unique_chars_optimized.py -------------------------------------------------------------------------------- /python3/Sliding Windows/longest_uniform_substring_after_replacements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sliding Windows/longest_uniform_substring_after_replacements.py -------------------------------------------------------------------------------- /python3/Sliding Windows/substring_anagrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sliding Windows/substring_anagrams.py -------------------------------------------------------------------------------- /python3/Sort and Search/dutch_national_flag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/dutch_national_flag.py -------------------------------------------------------------------------------- /python3/Sort and Search/kth_largest_integer_min_heap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/kth_largest_integer_min_heap.py -------------------------------------------------------------------------------- /python3/Sort and Search/kth_largest_integer_quickselect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/kth_largest_integer_quickselect.py -------------------------------------------------------------------------------- /python3/Sort and Search/sort_array_counting_sort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/sort_array_counting_sort.py -------------------------------------------------------------------------------- /python3/Sort and Search/sort_array_quicksort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/sort_array_quicksort.py -------------------------------------------------------------------------------- /python3/Sort and Search/sort_array_quicksort_optimized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/sort_array_quicksort_optimized.py -------------------------------------------------------------------------------- /python3/Sort and Search/sort_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Sort and Search/sort_linked_list.py -------------------------------------------------------------------------------- /python3/Stacks/evaluate_expression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Stacks/evaluate_expression.py -------------------------------------------------------------------------------- /python3/Stacks/implement_a_queue_using_a_stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Stacks/implement_a_queue_using_a_stack.py -------------------------------------------------------------------------------- /python3/Stacks/maximums_of_sliding_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Stacks/maximums_of_sliding_window.py -------------------------------------------------------------------------------- /python3/Stacks/next_largest_number_to_the_right.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Stacks/next_largest_number_to_the_right.py -------------------------------------------------------------------------------- /python3/Stacks/repeated_removal_of_adjacent_duplicates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Stacks/repeated_removal_of_adjacent_duplicates.py -------------------------------------------------------------------------------- /python3/Stacks/valid_parenthesis_expression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Stacks/valid_parenthesis_expression.py -------------------------------------------------------------------------------- /python3/Trees/balanced_binary_tree_validation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/balanced_binary_tree_validation.py -------------------------------------------------------------------------------- /python3/Trees/binary_search_tree_validation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/binary_search_tree_validation.py -------------------------------------------------------------------------------- /python3/Trees/binary_tree_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/binary_tree_columns.py -------------------------------------------------------------------------------- /python3/Trees/binary_tree_symmetry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/binary_tree_symmetry.py -------------------------------------------------------------------------------- /python3/Trees/build_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/build_binary_tree.py -------------------------------------------------------------------------------- /python3/Trees/invert_binary_tree_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/invert_binary_tree_iterative.py -------------------------------------------------------------------------------- /python3/Trees/invert_binary_tree_recursive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/invert_binary_tree_recursive.py -------------------------------------------------------------------------------- /python3/Trees/kth_smallest_number_in_BST_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/kth_smallest_number_in_BST_iterative.py -------------------------------------------------------------------------------- /python3/Trees/kth_smallest_number_in_BST_recursive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/kth_smallest_number_in_BST_recursive.py -------------------------------------------------------------------------------- /python3/Trees/lowest_common_ancestor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/lowest_common_ancestor.py -------------------------------------------------------------------------------- /python3/Trees/maximum_path_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/maximum_path_sum.py -------------------------------------------------------------------------------- /python3/Trees/rightmost_nodes_of_a_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/rightmost_nodes_of_a_binary_tree.py -------------------------------------------------------------------------------- /python3/Trees/serialize_and_deserialize_a_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/serialize_and_deserialize_a_binary_tree.py -------------------------------------------------------------------------------- /python3/Trees/widest_binary_tree_level.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Trees/widest_binary_tree_level.py -------------------------------------------------------------------------------- /python3/Tries/design_a_trie.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Tries/design_a_trie.py -------------------------------------------------------------------------------- /python3/Tries/find_all_words_on_a_board.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Tries/find_all_words_on_a_board.py -------------------------------------------------------------------------------- /python3/Tries/insert_and_search_words_with_wildcards.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Tries/insert_and_search_words_with_wildcards.py -------------------------------------------------------------------------------- /python3/Two Pointers/is_palindrome_valid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/is_palindrome_valid.py -------------------------------------------------------------------------------- /python3/Two Pointers/largest_container.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/largest_container.py -------------------------------------------------------------------------------- /python3/Two Pointers/largest_container_brute_force.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/largest_container_brute_force.py -------------------------------------------------------------------------------- /python3/Two Pointers/next_lexicographical_sequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/next_lexicographical_sequence.py -------------------------------------------------------------------------------- /python3/Two Pointers/pair_sum_sorted.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/pair_sum_sorted.py -------------------------------------------------------------------------------- /python3/Two Pointers/pair_sum_sorted_brute_force.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/pair_sum_sorted_brute_force.py -------------------------------------------------------------------------------- /python3/Two Pointers/shift_zeros_to_the_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/shift_zeros_to_the_end.py -------------------------------------------------------------------------------- /python3/Two Pointers/shift_zeros_to_the_end_naive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/shift_zeros_to_the_end_naive.py -------------------------------------------------------------------------------- /python3/Two Pointers/triplet_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/triplet_sum.py -------------------------------------------------------------------------------- /python3/Two Pointers/triplet_sum_brute_force.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/python3/Two Pointers/triplet_sum_brute_force.py -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/geometric_sequence_triplets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/geometric_sequence_triplets.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/longest_chain_of_consecutive_numbers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/longest_chain_of_consecutive_numbers.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/pair_sum_unsorted.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/pair_sum_unsorted.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/pair_sum_unsorted_two_pass.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/pair_sum_unsorted_two_pass.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/verify_sudoku_board.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/verify_sudoku_board.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/zero_striping.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/zero_striping.rs -------------------------------------------------------------------------------- /rust/Hash Maps and Sets/zero_striping_hash_sets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Hash Maps and Sets/zero_striping_hash_sets.rs -------------------------------------------------------------------------------- /rust/Sliding Windows/longest_substring_with_unique_chars.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Sliding Windows/longest_substring_with_unique_chars.rs -------------------------------------------------------------------------------- /rust/Sliding Windows/longest_substring_with_unique_chars_optimized.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Sliding Windows/longest_substring_with_unique_chars_optimized.rs -------------------------------------------------------------------------------- /rust/Sliding Windows/longest_uniform_substring_after_replacements.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Sliding Windows/longest_uniform_substring_after_replacements.rs -------------------------------------------------------------------------------- /rust/Sliding Windows/substring_anagrams.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Sliding Windows/substring_anagrams.rs -------------------------------------------------------------------------------- /rust/Two Pointers/is_palindrome_valid.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/is_palindrome_valid.rs -------------------------------------------------------------------------------- /rust/Two Pointers/largest_container.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/largest_container.rs -------------------------------------------------------------------------------- /rust/Two Pointers/largest_container_brute_force.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/largest_container_brute_force.rs -------------------------------------------------------------------------------- /rust/Two Pointers/next_lexicographical_sequence.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/next_lexicographical_sequence.rs -------------------------------------------------------------------------------- /rust/Two Pointers/pair_sum_sorted.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/pair_sum_sorted.rs -------------------------------------------------------------------------------- /rust/Two Pointers/pair_sum_sorted_brute_force.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/pair_sum_sorted_brute_force.rs -------------------------------------------------------------------------------- /rust/Two Pointers/shift_zeros_to_the_end.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/shift_zeros_to_the_end.rs -------------------------------------------------------------------------------- /rust/Two Pointers/shift_zeros_to_the_end_naive.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/shift_zeros_to_the_end_naive.rs -------------------------------------------------------------------------------- /rust/Two Pointers/triplet_sum.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/triplet_sum.rs -------------------------------------------------------------------------------- /rust/Two Pointers/triplet_sum_brute_force.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/rust/Two Pointers/triplet_sum_brute_force.rs -------------------------------------------------------------------------------- /swift/Two Pointers/LargestContainer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/LargestContainer.swift -------------------------------------------------------------------------------- /swift/Two Pointers/LargestContainerBruteForce.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/LargestContainerBruteForce.swift -------------------------------------------------------------------------------- /swift/Two Pointers/NextLexicographicalSequence.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/NextLexicographicalSequence.swift -------------------------------------------------------------------------------- /swift/Two Pointers/PairSumSorted.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/PairSumSorted.swift -------------------------------------------------------------------------------- /swift/Two Pointers/PairSumSortedBruteForce.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/PairSumSortedBruteForce.swift -------------------------------------------------------------------------------- /swift/Two Pointers/ShiftZerosToTheEnd.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/ShiftZerosToTheEnd.swift -------------------------------------------------------------------------------- /swift/Two Pointers/ShiftZerosToTheEndNaive.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/ShiftZerosToTheEndNaive.swift -------------------------------------------------------------------------------- /swift/Two Pointers/TripletSum.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/TripletSum.swift -------------------------------------------------------------------------------- /swift/Two Pointers/TripletSumBruteForce.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/TripletSumBruteForce.swift -------------------------------------------------------------------------------- /swift/Two Pointers/isPalindromeValid.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/swift/Two Pointers/isPalindromeValid.swift -------------------------------------------------------------------------------- /typescript/Fast and Slow Pointers/happy_number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Fast and Slow Pointers/happy_number.ts -------------------------------------------------------------------------------- /typescript/Fast and Slow Pointers/linked_list_loop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Fast and Slow Pointers/linked_list_loop.ts -------------------------------------------------------------------------------- /typescript/Fast and Slow Pointers/linked_list_loop_naive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Fast and Slow Pointers/linked_list_loop_naive.ts -------------------------------------------------------------------------------- /typescript/Fast and Slow Pointers/linked_list_midpoint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Fast and Slow Pointers/linked_list_midpoint.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/geometric_sequence_triplets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/geometric_sequence_triplets.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/pair_sum_unsorted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/pair_sum_unsorted.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/pair_sum_unsorted_two_pass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/pair_sum_unsorted_two_pass.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/verify_sudoku_board.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/verify_sudoku_board.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/zero_striping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/zero_striping.ts -------------------------------------------------------------------------------- /typescript/Hash Maps and Sets/zero_striping_hash_sets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Hash Maps and Sets/zero_striping_hash_sets.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/flatten_multi_level_list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/flatten_multi_level_list.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/linked_list_intersection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/linked_list_intersection.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/linked_list_reversal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/linked_list_reversal.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/linked_list_reversal_recursive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/linked_list_reversal_recursive.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/lru_cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/lru_cache.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/palindromic_linked_list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/palindromic_linked_list.ts -------------------------------------------------------------------------------- /typescript/Linked Lists/remove_kth_last_node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Linked Lists/remove_kth_last_node.ts -------------------------------------------------------------------------------- /typescript/Sliding Windows/longest_substring_with_unique_chars.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Sliding Windows/longest_substring_with_unique_chars.ts -------------------------------------------------------------------------------- /typescript/Sliding Windows/longest_substring_with_unique_chars_optimized.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Sliding Windows/longest_substring_with_unique_chars_optimized.ts -------------------------------------------------------------------------------- /typescript/Sliding Windows/longest_uniform_substring_after_replacements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Sliding Windows/longest_uniform_substring_after_replacements.ts -------------------------------------------------------------------------------- /typescript/Sliding Windows/substring_anagrams.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Sliding Windows/substring_anagrams.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/is_palindrome_valid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/is_palindrome_valid.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/largest_container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/largest_container.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/largest_container_brute_force.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/largest_container_brute_force.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/next_lexicographical_sequence.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/next_lexicographical_sequence.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/pair_sum_sorted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/pair_sum_sorted.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/pair_sum_sorted_brute_force.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/pair_sum_sorted_brute_force.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/shift_zeros_to_the_end.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/shift_zeros_to_the_end.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/shift_zeros_to_the_end_naive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/shift_zeros_to_the_end_naive.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/triplet_sum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/triplet_sum.ts -------------------------------------------------------------------------------- /typescript/Two Pointers/triplet_sum_brute_force.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteByteGoHq/coding-interview-patterns/HEAD/typescript/Two Pointers/triplet_sum_brute_force.ts --------------------------------------------------------------------------------