├── .gitignore ├── .gitmodules ├── .travis.yml ├── CMakeLists.txt ├── CMakeSettings.json ├── LICENSE ├── Makefile ├── README.md ├── __init__.py ├── cpp_solutions ├── chapter_01_arrays_and_strings │ ├── chapter_01_includes.h │ ├── problem_01_01_isUnique.cpp │ ├── problem_01_01_isUnique.h │ ├── problem_01_02_arePermutations.cpp │ ├── problem_01_02_arePermutations.h │ ├── problem_01_03_URLify.cpp │ ├── problem_01_03_URLify.h │ ├── problem_01_04_palindromePermutation.cpp │ ├── problem_01_04_palindromePermutation.h │ ├── problem_01_05_oneAway.cpp │ ├── problem_01_05_oneAway.h │ ├── problem_01_06_stringCompression.cpp │ ├── problem_01_06_stringCompression.h │ ├── problem_01_07_rotateMatrix.cpp │ ├── problem_01_07_rotateMatrix.h │ ├── problem_01_08_setZero.cpp │ ├── problem_01_08_setZero.h │ ├── problem_01_09_stringRotation.cpp │ └── problem_01_09_stringRotation.h ├── chapter_02_linked_lists │ ├── Node.h │ ├── chapter_02_includes.h │ ├── problem_02_01_removeDups.h │ ├── problem_02_02_returnKthToLast.h │ ├── problem_02_03_deleteMiddleNode.h │ ├── problem_02_04_partition.h │ ├── problem_02_05_sumLists.h │ ├── problem_02_06_palindrome.h │ ├── problem_02_07_intersection.h │ ├── problem_02_08_explanation.pdf │ └── problem_02_08_findLoop.h ├── chapter_03_stacks_and_queues │ ├── Queue.h │ ├── Stack.h │ ├── chapter_03_includes.h │ ├── problem_03_02_StackMin.h │ ├── problem_03_04_QueueViaStacks.h │ ├── problem_03_05_sortStack.h │ ├── problem_03_06_animalShelter.cpp │ └── problem_03_06_animalShelter.h ├── chapter_04_trees_and_graphs │ ├── chapter_04_includes.h │ ├── problem_04_01_pathExists.h │ ├── problem_04_02_minimalTree.h │ ├── problem_04_03_makeLL.h │ ├── problem_04_04_checkBalanced.h │ ├── problem_04_05_validateBST.h │ ├── problem_04_06_successor.h │ ├── problem_04_07_buildOrder.cpp │ ├── problem_04_07_buildOrder.h │ ├── problem_04_08_firstCommonAncestor.h │ ├── problem_04_10_checkSubtree.h │ ├── problem_04_11_randomBST.h │ └── problem_04_12_pathsWithSum.h ├── chapter_05_bit_manipulation │ ├── chapter_05_includes.h │ ├── problem_05_01_insertion.cpp │ ├── problem_05_01_insertion.h │ ├── problem_05_02_binaryToString.cpp │ ├── problem_05_02_binaryToString.h │ ├── problem_05_03_flipBitToWin.cpp │ ├── problem_05_03_flipBitToWin.h │ ├── problem_05_04_nextNumber.cpp │ ├── problem_05_04_nextNumber.h │ ├── problem_05_06_conversion.cpp │ ├── problem_05_06_conversion.h │ ├── problem_05_07_pairwiseSwap.cpp │ ├── problem_05_07_pairwiseSwap.h │ ├── problem_05_08_drawLine.cpp │ └── problem_05_08_drawLine.h ├── chapter_08_recursion_and_dynamic_programming │ ├── chapter_08_includes.h │ ├── problem_08_01_tripleStep.cpp │ ├── problem_08_01_tripleStep.h │ ├── problem_08_02_robotGrid.cpp │ ├── problem_08_02_robotGrid.h │ ├── problem_08_03_magicIndex.cpp │ ├── problem_08_03_magicIndex.h │ ├── problem_08_04_powerSet.cpp │ ├── problem_08_04_powerSet.h │ ├── problem_08_05_recursiveMultiply.cpp │ ├── problem_08_05_recursiveMultiply.h │ ├── problem_08_07_permutationsNoDups.cpp │ ├── problem_08_07_permutationsNoDups.h │ ├── problem_08_08_permutationsWithDups.cpp │ ├── problem_08_08_permutationsWithDups.h │ ├── problem_08_10_paintFill.cpp │ └── problem_08_10_paintFill.h ├── chapter_10_sorting_and_searching │ ├── binarySearch.h │ ├── chapter_10_dataset_generation │ │ ├── CMakeLists.txt │ │ ├── generate_random_number_file.cpp │ │ ├── random_number_dataset.csv │ │ └── random_number_dataset_32000.csv │ ├── chapter_10_includes.h │ ├── mergeSort.h │ ├── problem_10_01_sortedMerge.h │ ├── problem_10_02_anagramSort.cpp │ ├── problem_10_02_anagramSort.h │ ├── problem_10_03_rotatedSearch.h │ ├── problem_10_04_searchNoSize.cpp │ ├── problem_10_04_searchNoSize.h │ ├── problem_10_05_sparseSearch.cpp │ ├── problem_10_05_sparseSearch.h │ ├── problem_10_07_missingInt.cpp │ ├── problem_10_07_missingInt.h │ ├── problem_10_08_findDuplicates.cpp │ ├── problem_10_08_findDuplicates.h │ ├── problem_10_09_matrixSearch.h │ ├── problem_10_10_rankFromStream.cpp │ ├── problem_10_10_rankFromStream.h │ ├── problem_10_11_peaksAndValleys.h │ └── quickSort.h ├── chapter_12_cpp │ ├── chapter_12_includes.h │ ├── problem_12_01_data_1.txt │ ├── problem_12_01_data_2.txt │ ├── problem_12_01_data_3.txt │ ├── problem_12_01_lastKLines.h │ ├── problem_12_02_reverse.cpp │ ├── problem_12_02_reverse.h │ ├── problem_12_03_hashTable.h │ ├── problem_12_04_virtualFunctions.h │ ├── problem_12_05_shallowVsDeepCopy.h │ ├── problem_12_06_volatile.h │ ├── problem_12_07_virtualBaseClass.h │ ├── problem_12_08_copyNode.h │ ├── problem_12_09_smartPointer.h │ └── problem_12_10_alignedMalloc.h ├── chapter_16_moderate │ ├── chapter_16_includes.h │ ├── problem_16_01_swapNumbers.h │ ├── problem_16_02_wordFrequencies.cpp │ ├── problem_16_02_wordFrequencies.h │ ├── problem_16_03_intersection.cpp │ ├── problem_16_03_intersection.h │ ├── problem_16_04_ticTacWin.cpp │ ├── problem_16_04_ticTacWin.h │ ├── problem_16_05_factorialZeros.cpp │ ├── problem_16_05_factorialZeros.h │ ├── problem_16_06_smallestDifference.h │ ├── problem_16_07_numberMax.cpp │ ├── problem_16_07_numberMax.h │ ├── problem_16_10_livingPeople.cpp │ ├── problem_16_10_livingPeople.h │ ├── problem_16_11_divingBoard.cpp │ ├── problem_16_11_divingBoard.h │ ├── problem_16_17_contiguousSequence.cpp │ ├── problem_16_17_contiguousSequence.h │ ├── problem_16_19_pondSizes.cpp │ └── problem_16_19_pondSizes.h ├── chapter_17_hard │ ├── chapter_17_includes.h │ └── problem_17_21_histogramVolume.h └── misc_exercises │ ├── misc_01_integralImage.cpp │ ├── misc_01_integralImage.h │ ├── misc_02_kernelConvolution.cpp │ ├── misc_02_kernelConvolution.h │ └── misc_includes.h ├── python_solutions ├── __init__.py ├── chapter_01_arrays_and_strings │ ├── __init__.py │ ├── problem_01_01_is_unique.py │ ├── problem_01_02_are_permuations.py │ ├── problem_01_03_URLify.py │ ├── problem_01_04_palindrome_permutation.py │ ├── problem_01_05_one_away.py │ ├── problem_01_06_string_compression.py │ ├── problem_01_07_rotate_matrix.py │ ├── problem_01_08_set_zero.py │ └── problem_01_09_string_rotation.py ├── chapter_02_linked_lists │ ├── SinglyLinkedNode.py │ ├── __init__.py │ ├── problem_02_01_remove_dups.py │ ├── problem_02_02_return_kth_to_last.py │ ├── problem_02_03_delete_middle.py │ ├── problem_02_04_partition.py │ ├── problem_02_05_sum_lists.py │ ├── problem_02_06_palindrome.py │ ├── problem_02_07_intersection.py │ ├── problem_02_08_explanation.pdf │ └── problem_02_08_find_loop.py ├── chapter_03_stacks_queues │ ├── Queue.py │ ├── Stack.py │ ├── __init__.py │ ├── problem_03_01_three_in_one.py │ ├── problem_03_02_stack_min.py │ ├── problem_03_03_stack_of_plates.py │ ├── problem_03_04_queue_via_stacks.py │ ├── problem_03_05_sort_stack.py │ └── problem_03_06_animal_shelter.py ├── chapter_04_trees_and_graphs │ ├── __init__.py │ ├── problem_04_01_path_exists.py │ ├── problem_04_02_make_bst.py │ ├── problem_04_03_make_ll.py │ ├── problem_04_04_check_balanced.py │ ├── problem_04_05_validate_BST.py │ ├── problem_04_06_successor.py │ ├── problem_04_07_build_order.py │ ├── problem_04_08_first_common_ancestor.py │ ├── problem_04_10_check_subtree.py │ ├── problem_04_11_random_BST.py │ ├── problem_04_12_paths_with_sum.py │ └── tree_basics.py ├── chapter_05_bit_manipulation │ ├── __init__.py │ ├── problem_05_00_convert_binary.py │ ├── problem_05_01_insertion.py │ ├── problem_05_02_binary_to_string.py │ ├── problem_05_03_flip_bit_to_win.py │ ├── problem_05_04_next_number.py │ ├── problem_05_06_conversion.py │ ├── problem_05_07_pairwise_swap.py │ └── problem_05_08_draw_line.py ├── chapter_08_recursion_and_dynamic_programming │ ├── __init__.py │ ├── problem_08_01_triple_step.py │ ├── problem_08_02_robot_grid.py │ ├── problem_08_03_magic_index.py │ ├── problem_08_04_power_set.py │ ├── problem_08_05_recursive_multiply.py │ ├── problem_08_06_hanoi_towers.py │ ├── problem_08_07_permutations_no_dups.py │ ├── problem_08_08_permutations_with_dups.py │ ├── problem_08_09_parens.py │ ├── problem_08_10_paint_fill.py │ └── problem_08_11_coins.py ├── chapter_10_sorting_and_searching │ ├── __init__.py │ ├── merge_sort.py │ ├── problem_10_01_sorted_merge.py │ └── quick_sort.py ├── chapter_16_moderate │ ├── __init__.py │ ├── problem_16_01_swap_numbers.py │ └── problem_16_03_intersection.py └── chapter_17_hard │ ├── __init__.py │ ├── problem_17_10_majority_element.py │ ├── problem_17_15_longest_combination.py │ └── problem_17_21_histogram_volume.py ├── tests.cpp └── tests.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/.travis.yml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /CMakeSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/CMakeSettings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/chapter_01_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/chapter_01_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_01_isUnique.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_01_isUnique.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_01_isUnique.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_01_isUnique.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_02_arePermutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_02_arePermutations.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_02_arePermutations.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_02_arePermutations.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_03_URLify.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_03_URLify.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_03_URLify.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_03_URLify.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_04_palindromePermutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_04_palindromePermutation.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_04_palindromePermutation.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_04_palindromePermutation.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_06_stringCompression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_06_stringCompression.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_06_stringCompression.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_06_stringCompression.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_07_rotateMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_07_rotateMatrix.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_07_rotateMatrix.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_07_rotateMatrix.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_08_setZero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_08_setZero.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_08_setZero.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_08_setZero.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_09_stringRotation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_09_stringRotation.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_01_arrays_and_strings/problem_01_09_stringRotation.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_01_arrays_and_strings/problem_01_09_stringRotation.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/Node.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/Node.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/chapter_02_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/chapter_02_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_01_removeDups.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_01_removeDups.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_02_returnKthToLast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_02_returnKthToLast.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_03_deleteMiddleNode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_03_deleteMiddleNode.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_04_partition.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_04_partition.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_05_sumLists.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_05_sumLists.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_06_palindrome.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_06_palindrome.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_07_intersection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_07_intersection.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_08_explanation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_08_explanation.pdf -------------------------------------------------------------------------------- /cpp_solutions/chapter_02_linked_lists/problem_02_08_findLoop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_02_linked_lists/problem_02_08_findLoop.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/Queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/Queue.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/Stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/Stack.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/chapter_03_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/chapter_03_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/problem_03_02_StackMin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/problem_03_02_StackMin.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/problem_03_04_QueueViaStacks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/problem_03_04_QueueViaStacks.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/problem_03_05_sortStack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/problem_03_05_sortStack.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/chapter_04_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/chapter_04_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_01_pathExists.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_01_pathExists.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_02_minimalTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_02_minimalTree.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_03_makeLL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_03_makeLL.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_04_checkBalanced.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_04_checkBalanced.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_05_validateBST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_05_validateBST.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_07_buildOrder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_07_buildOrder.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_07_buildOrder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_07_buildOrder.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_08_firstCommonAncestor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_08_firstCommonAncestor.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_10_checkSubtree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_10_checkSubtree.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_04_trees_and_graphs/problem_04_12_pathsWithSum.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_04_trees_and_graphs/problem_04_12_pathsWithSum.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/chapter_05_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/chapter_05_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_02_binaryToString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_02_binaryToString.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_02_binaryToString.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_02_binaryToString.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_03_flipBitToWin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_03_flipBitToWin.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_03_flipBitToWin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_03_flipBitToWin.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_04_nextNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_04_nextNumber.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_04_nextNumber.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_04_nextNumber.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_07_pairwiseSwap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_07_pairwiseSwap.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_07_pairwiseSwap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_07_pairwiseSwap.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_08_drawLine.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_08_drawLine.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_05_bit_manipulation/problem_05_08_drawLine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_05_bit_manipulation/problem_05_08_drawLine.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/chapter_08_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/chapter_08_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_tripleStep.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_tripleStep.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_tripleStep.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_tripleStep.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magicIndex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magicIndex.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magicIndex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magicIndex.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_powerSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_powerSet.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_powerSet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_powerSet.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursiveMultiply.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursiveMultiply.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursiveMultiply.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursiveMultiply.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutationsNoDups.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutationsNoDups.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutationsNoDups.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutationsNoDups.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutationsWithDups.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutationsWithDups.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutationsWithDups.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutationsWithDups.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paintFill.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paintFill.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paintFill.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paintFill.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/binarySearch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/binarySearch.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/CMakeLists.txt -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/generate_random_number_file.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/generate_random_number_file.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/random_number_dataset.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/random_number_dataset.csv -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/random_number_dataset_32000.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/random_number_dataset_32000.csv -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/chapter_10_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/chapter_10_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/mergeSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/mergeSort.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_01_sortedMerge.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_01_sortedMerge.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_02_anagramSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_02_anagramSort.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_02_anagramSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_02_anagramSort.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_03_rotatedSearch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_03_rotatedSearch.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_05_sparseSearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_05_sparseSearch.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_05_sparseSearch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_05_sparseSearch.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_07_missingInt.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_07_missingInt.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_07_missingInt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_07_missingInt.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_08_findDuplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_08_findDuplicates.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_08_findDuplicates.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_08_findDuplicates.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/problem_10_11_peaksAndValleys.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/problem_10_11_peaksAndValleys.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_10_sorting_and_searching/quickSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_10_sorting_and_searching/quickSort.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/chapter_12_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/chapter_12_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_01_data_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_01_data_1.txt -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_01_data_2.txt: -------------------------------------------------------------------------------- 1 | this is a single line 2 | -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_01_data_3.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_01_lastKLines.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_01_lastKLines.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_02_reverse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_02_reverse.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_02_reverse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_02_reverse.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_03_hashTable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_03_hashTable.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_04_virtualFunctions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_04_virtualFunctions.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_05_shallowVsDeepCopy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_05_shallowVsDeepCopy.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_06_volatile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_06_volatile.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_07_virtualBaseClass.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_07_virtualBaseClass.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_08_copyNode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_08_copyNode.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_09_smartPointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_09_smartPointer.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_12_cpp/problem_12_10_alignedMalloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_12_cpp/problem_12_10_alignedMalloc.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/chapter_16_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/chapter_16_includes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_01_swapNumbers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_01_swapNumbers.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_02_wordFrequencies.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_02_wordFrequencies.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_02_wordFrequencies.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_02_wordFrequencies.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_03_intersection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_03_intersection.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_03_intersection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_03_intersection.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_05_factorialZeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_05_factorialZeros.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_05_factorialZeros.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_05_factorialZeros.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_06_smallestDifference.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_06_smallestDifference.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_07_numberMax.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_07_numberMax.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_07_numberMax.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_07_numberMax.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_10_livingPeople.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_10_livingPeople.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_10_livingPeople.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_10_livingPeople.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_11_divingBoard.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_11_divingBoard.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_11_divingBoard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_11_divingBoard.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_17_contiguousSequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_17_contiguousSequence.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_17_contiguousSequence.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_17_contiguousSequence.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_19_pondSizes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_19_pondSizes.cpp -------------------------------------------------------------------------------- /cpp_solutions/chapter_16_moderate/problem_16_19_pondSizes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_16_moderate/problem_16_19_pondSizes.h -------------------------------------------------------------------------------- /cpp_solutions/chapter_17_hard/chapter_17_includes.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "problem_17_21_histogramVolume.h" 4 | -------------------------------------------------------------------------------- /cpp_solutions/chapter_17_hard/problem_17_21_histogramVolume.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/chapter_17_hard/problem_17_21_histogramVolume.h -------------------------------------------------------------------------------- /cpp_solutions/misc_exercises/misc_01_integralImage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/misc_exercises/misc_01_integralImage.cpp -------------------------------------------------------------------------------- /cpp_solutions/misc_exercises/misc_01_integralImage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/misc_exercises/misc_01_integralImage.h -------------------------------------------------------------------------------- /cpp_solutions/misc_exercises/misc_02_kernelConvolution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/misc_exercises/misc_02_kernelConvolution.cpp -------------------------------------------------------------------------------- /cpp_solutions/misc_exercises/misc_02_kernelConvolution.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/misc_exercises/misc_02_kernelConvolution.h -------------------------------------------------------------------------------- /cpp_solutions/misc_exercises/misc_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/cpp_solutions/misc_exercises/misc_includes.h -------------------------------------------------------------------------------- /python_solutions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_01_is_unique.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_01_is_unique.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_02_are_permuations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_02_are_permuations.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_03_URLify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_03_URLify.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_04_palindrome_permutation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_04_palindrome_permutation.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_05_one_away.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_05_one_away.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_06_string_compression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_06_string_compression.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_07_rotate_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_07_rotate_matrix.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_08_set_zero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_08_set_zero.py -------------------------------------------------------------------------------- /python_solutions/chapter_01_arrays_and_strings/problem_01_09_string_rotation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_01_arrays_and_strings/problem_01_09_string_rotation.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/SinglyLinkedNode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/SinglyLinkedNode.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_01_remove_dups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_01_remove_dups.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_02_return_kth_to_last.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_02_return_kth_to_last.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_03_delete_middle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_03_delete_middle.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_04_partition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_04_partition.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_05_sum_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_05_sum_lists.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_06_palindrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_06_palindrome.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_07_intersection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_07_intersection.py -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_08_explanation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_08_explanation.pdf -------------------------------------------------------------------------------- /python_solutions/chapter_02_linked_lists/problem_02_08_find_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_02_linked_lists/problem_02_08_find_loop.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/Queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/Queue.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/Stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/Stack.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/problem_03_01_three_in_one.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/problem_03_01_three_in_one.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/problem_03_02_stack_min.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/problem_03_02_stack_min.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/problem_03_03_stack_of_plates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/problem_03_03_stack_of_plates.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/problem_03_04_queue_via_stacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/problem_03_04_queue_via_stacks.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/problem_03_05_sort_stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/problem_03_05_sort_stack.py -------------------------------------------------------------------------------- /python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_02_make_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_02_make_bst.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_03_make_ll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_03_make_ll.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_04_check_balanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_04_check_balanced.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_05_validate_BST.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_05_validate_BST.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_07_build_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_07_build_order.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_08_first_common_ancestor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_08_first_common_ancestor.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_10_check_subtree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_10_check_subtree.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/problem_04_12_paths_with_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/problem_04_12_paths_with_sum.py -------------------------------------------------------------------------------- /python_solutions/chapter_04_trees_and_graphs/tree_basics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_04_trees_and_graphs/tree_basics.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_00_convert_binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_00_convert_binary.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_02_binary_to_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_02_binary_to_string.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_03_flip_bit_to_win.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_03_flip_bit_to_win.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_04_next_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_04_next_number.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_07_pairwise_swap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_07_pairwise_swap.py -------------------------------------------------------------------------------- /python_solutions/chapter_05_bit_manipulation/problem_05_08_draw_line.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_05_bit_manipulation/problem_05_08_draw_line.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_triple_step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_triple_step.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robot_grid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robot_grid.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magic_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magic_index.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_power_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_power_set.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursive_multiply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursive_multiply.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_06_hanoi_towers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_06_hanoi_towers.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutations_no_dups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutations_no_dups.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutations_with_dups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutations_with_dups.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_09_parens.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_09_parens.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paint_fill.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paint_fill.py -------------------------------------------------------------------------------- /python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_11_coins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_11_coins.py -------------------------------------------------------------------------------- /python_solutions/chapter_10_sorting_and_searching/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_10_sorting_and_searching/merge_sort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_10_sorting_and_searching/merge_sort.py -------------------------------------------------------------------------------- /python_solutions/chapter_10_sorting_and_searching/problem_10_01_sorted_merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_10_sorting_and_searching/problem_10_01_sorted_merge.py -------------------------------------------------------------------------------- /python_solutions/chapter_10_sorting_and_searching/quick_sort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_10_sorting_and_searching/quick_sort.py -------------------------------------------------------------------------------- /python_solutions/chapter_16_moderate/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_16_moderate/problem_16_01_swap_numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_16_moderate/problem_16_01_swap_numbers.py -------------------------------------------------------------------------------- /python_solutions/chapter_16_moderate/problem_16_03_intersection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_16_moderate/problem_16_03_intersection.py -------------------------------------------------------------------------------- /python_solutions/chapter_17_hard/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_solutions/chapter_17_hard/problem_17_10_majority_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_17_hard/problem_17_10_majority_element.py -------------------------------------------------------------------------------- /python_solutions/chapter_17_hard/problem_17_15_longest_combination.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_17_hard/problem_17_15_longest_combination.py -------------------------------------------------------------------------------- /python_solutions/chapter_17_hard/problem_17_21_histogram_volume.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/python_solutions/chapter_17_hard/problem_17_21_histogram_volume.py -------------------------------------------------------------------------------- /tests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/tests.cpp -------------------------------------------------------------------------------- /tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexhagiopol/cracking-the-coding-interview/HEAD/tests.py --------------------------------------------------------------------------------