├── .gitignore ├── CMakeCache.txt ├── CMakeFiles ├── 3.13.4 │ └── CMakeSystem.cmake ├── CMakeOutput.log └── cmake.check_cache ├── CMakeLists.txt ├── LICENSE ├── README.md ├── backtracking_problems ├── dialpad_combinations.cpp ├── wild_card_matching.cpp └── word_search.cpp ├── bit_manipulation ├── addBin.cpp ├── addition_without_operators.cpp ├── check_if_power_of_4.cpp ├── check_opposite_signs.cpp ├── countNumberOfBitFlips.cpp ├── counter_game.cpp ├── find_odd_one_out.cpp ├── find_parity.cpp ├── integerOverflow.cpp ├── multiple_of_3.cpp ├── multiply_by_7.cpp ├── next_power_of_2.cpp ├── power_of_2.cpp ├── reverseBitsOfAnInteger.cpp ├── reverseEndianness.cpp ├── right_most_set_bit.cpp ├── swapBits.cpp └── swapSetOfBits.cpp ├── common_ds_algo_problems ├── array_rotation.cpp ├── caeser_cipher.cpp ├── findDigits.cpp ├── first_non_repeating_int.cpp ├── matrix_spiral_print.cpp ├── n_binary.cpp ├── power_function.cpp ├── rotate_matrix.cpp ├── run ├── save_quantamland.cpp └── vigenere_cipher.cpp ├── cracking_the_coding_interview_problems ├── 1-1-hasUniqueChars.cpp ├── 1-1-hasUniqueChars.py ├── 1-2-edi5-reverseString.cpp ├── 1-2-perm-strings.cpp ├── 1-2-perm-strings.py ├── 1-3-URLify.cpp ├── 1-3-edi5-removeDuplicates.cpp ├── 1-4-pallindrome-permutations.cpp ├── 1-5-one-edit-away.cpp ├── 1-6-string-compression.cpp ├── 1-7-matrix-rotation.cpp ├── 1-8-zero-matrix.cpp ├── 1-9-string-rotation.cpp ├── 2-1-remove-dups.cpp ├── 2-2-kthToLast.cpp ├── 2-3-delete-middle-node.cpp ├── 2-4-partition.cpp ├── 2-5-add-lists.cpp ├── 2-6-palindrome.cpp ├── 2-7-intersection.cpp └── 2-8-loop-detection.cpp ├── dynamic_programming_problems ├── 0_1_knapsack_problem.cpp ├── catalan_number.cpp ├── fibonacci.cpp ├── lcs.cpp ├── longest_common_subsequence.py ├── max_subsequence.cpp └── unique_paths.cpp ├── graph_problems ├── bfsDemo.cpp ├── dfsDemo.cpp ├── dijkstra-shortest-reach.cpp ├── flood_fill.cpp ├── grid_word_search.cpp ├── kruskalMST.cpp ├── primsMST.cpp └── run ├── greedy_problems ├── huffman_coding.cpp ├── orders_order.cpp └── two_arrays.cpp ├── image.jpg ├── include ├── binarySearchTree.h ├── bubbleSort.h ├── catch.hpp ├── double_linked_list.h ├── generic.h ├── graph.h ├── heap_sort.h ├── impl │ └── binarySearchTree.impl.h ├── list.h ├── mergeSort.h ├── notes.txt ├── pUnitTest.cpp ├── pUnitTest.h ├── pstring.cpp ├── pstring.h ├── queue.h ├── quickSort.h ├── selectionSort.h └── stack.h ├── leet_code_problems ├── addDigits.cpp ├── best_time_to_buy_sell.cpp ├── combinationSum3.cpp ├── connectNextPointers.cpp ├── containsDuplicate.cpp ├── countPrimes.cpp ├── count_islands.cpp ├── editDistance.cpp ├── excelColSheetTitle.cpp ├── find_min_rotated.cpp ├── firstMissingPositiveNum.cpp ├── generate_parenthesis.cpp ├── hamming_distance.cpp ├── intersection_of_array.cpp ├── jumpGame.cpp ├── longestConsecutiveSeq.cpp ├── maxArea.cpp ├── maxProfitStock.cpp ├── median_stream.cpp ├── mergeLists.cpp ├── merge_trees.cpp ├── minPath.cpp ├── missing_number.cpp ├── moveZeroes.cpp ├── product_except_self.cpp ├── remove_duplicates.cpp ├── remove_element.cpp ├── remove_invalid_parenthesis.cpp ├── reverse_vowels.cpp ├── reverse_words.cpp ├── rotateList.cpp ├── run ├── search2DII.cpp ├── shortest_path_maze.cpp ├── sortCharByFrequency.cpp ├── sumRootToLeafNumbers.cpp ├── summary_ranges.cpp ├── threeSumClosest.cpp └── word_pattern.cpp ├── linked_list_problems ├── add_two_numbers_lists.cpp ├── add_two_numbers_lists.py ├── cloneListWithRandomPtr.cpp ├── clone_list_with_random_ptr.py ├── deleteLinkedlist.cpp ├── deleteNode.cpp ├── delete_node.py ├── findIntersectionPointOfLists.cpp ├── floyedCycleDetection.cpp ├── insertInASortedLinkedList.cpp ├── intersection_of_lists.py ├── listDemo.cpp ├── listPallindrome.cpp ├── merge_sort.cpp ├── nthToLastNode.cpp ├── nth_to_last_node.py ├── printMiddleNode.cpp ├── rearrange_list.cpp ├── removeDuplicatesFromSortedList.cpp ├── reverseAlternateNodes.cpp ├── reverseLinkedListIterAndRecurse.cpp ├── reverse_linkedlist.py ├── swapNodesWithoutSwappingData.cpp └── swap_nodes_without_swapping_data.py ├── math_problems ├── README.md ├── factorial_of_large_num.cpp ├── gcd.cpp ├── happy_number.cpp ├── lowest_possible_number.cpp ├── phone_digits.cpp ├── pow.cpp └── string_permutations.cpp ├── queue_problems └── queueDemo.cpp ├── sort_search_problems ├── SleepSort.cpp ├── bubbleSortDemo.cpp ├── closestPairSorted.cpp ├── closest_nums.cpp ├── commonIn3Arrays.cpp ├── findClosestPairToZero.cpp ├── findMaximum.cpp ├── find_pairs_with_sum.cpp ├── firstRepeatingElement.cpp ├── first_occurrence_binary_search.cpp ├── fixedPoint.cpp ├── heapSort.cpp ├── heapSortDemo.cpp ├── mergeSortDemo.cpp ├── minLengthUnsortedArray.cpp ├── missingNumber2.cpp ├── missingNumbers.cpp ├── move_zeros.cpp ├── peak_element.cpp ├── quickSortDemo.cpp ├── run ├── selectionSort.cpp ├── smallest_missing.cpp ├── squareSum.cpp ├── testBubble.cpp ├── testClosestNums.cpp ├── testClosestPair.cpp ├── testClosestZero.cpp ├── testCommon.cpp ├── testFOBS.cpp ├── testFRE.cpp ├── testFindMax.cpp └── testFixPoint.cpp ├── stack_problems ├── README.md ├── infix_to_postfix.cpp ├── stackDemo.cpp ├── stock_span_problem.cpp └── valid_parenthesis.cpp ├── string_problems ├── find_difference.cpp ├── length_of_last_word.cpp ├── next_permutation.cpp ├── pstring_test.cpp ├── robinKarpStringMatching.cpp └── z.cpp └── tree_problems ├── binarySearchTreeDemo.cpp ├── closest_bst_value.cpp ├── closest_bst_value.py ├── convert_to_sum_tree.cpp ├── convert_to_sum_tree.py ├── find_target_k.cpp ├── floor_ceil_bst.cpp ├── invert_a_tree.cpp ├── k_sum_paths.cpp ├── kth_smallest.cpp ├── levelOrderTraversalIterative.cpp ├── levelOrderTraversalRecursive.cpp ├── level_of_node.cpp ├── level_order_tree_traversal_iterative.py ├── level_order_tree_traversal_recursive.py ├── lowest-common-ancestor-binary-tree.cpp ├── lowest-common-ancestor.cpp ├── lowest_common_ancestor.py ├── node_ancestors_in_root_path.cpp ├── predecessorSuccessor.cpp ├── printAllRootToLeafPath.cpp ├── reverseLevelOrderTraversal.cpp ├── run ├── sortedArrayToBST.cpp ├── string_from_tree.cpp ├── sumTree.cpp ├── validate_bst.cpp ├── verticalSum.cpp ├── zigZagTraversal.cpp └── zig_zag_traversal.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeCache.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/CMakeCache.txt -------------------------------------------------------------------------------- /CMakeFiles/3.13.4/CMakeSystem.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/CMakeFiles/3.13.4/CMakeSystem.cmake -------------------------------------------------------------------------------- /CMakeFiles/CMakeOutput.log: -------------------------------------------------------------------------------- 1 | The system is: Windows - 10.0.17134 - AMD64 2 | -------------------------------------------------------------------------------- /CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/CMakeFiles/cmake.check_cache -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/README.md -------------------------------------------------------------------------------- /backtracking_problems/dialpad_combinations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/backtracking_problems/dialpad_combinations.cpp -------------------------------------------------------------------------------- /backtracking_problems/wild_card_matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/backtracking_problems/wild_card_matching.cpp -------------------------------------------------------------------------------- /backtracking_problems/word_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/backtracking_problems/word_search.cpp -------------------------------------------------------------------------------- /bit_manipulation/addBin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/addBin.cpp -------------------------------------------------------------------------------- /bit_manipulation/addition_without_operators.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/addition_without_operators.cpp -------------------------------------------------------------------------------- /bit_manipulation/check_if_power_of_4.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/check_if_power_of_4.cpp -------------------------------------------------------------------------------- /bit_manipulation/check_opposite_signs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/check_opposite_signs.cpp -------------------------------------------------------------------------------- /bit_manipulation/countNumberOfBitFlips.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/countNumberOfBitFlips.cpp -------------------------------------------------------------------------------- /bit_manipulation/counter_game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/counter_game.cpp -------------------------------------------------------------------------------- /bit_manipulation/find_odd_one_out.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/find_odd_one_out.cpp -------------------------------------------------------------------------------- /bit_manipulation/find_parity.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/find_parity.cpp -------------------------------------------------------------------------------- /bit_manipulation/integerOverflow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/integerOverflow.cpp -------------------------------------------------------------------------------- /bit_manipulation/multiple_of_3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/multiple_of_3.cpp -------------------------------------------------------------------------------- /bit_manipulation/multiply_by_7.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/multiply_by_7.cpp -------------------------------------------------------------------------------- /bit_manipulation/next_power_of_2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/next_power_of_2.cpp -------------------------------------------------------------------------------- /bit_manipulation/power_of_2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/power_of_2.cpp -------------------------------------------------------------------------------- /bit_manipulation/reverseBitsOfAnInteger.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/reverseBitsOfAnInteger.cpp -------------------------------------------------------------------------------- /bit_manipulation/reverseEndianness.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/reverseEndianness.cpp -------------------------------------------------------------------------------- /bit_manipulation/right_most_set_bit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/right_most_set_bit.cpp -------------------------------------------------------------------------------- /bit_manipulation/swapBits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/swapBits.cpp -------------------------------------------------------------------------------- /bit_manipulation/swapSetOfBits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/bit_manipulation/swapSetOfBits.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/array_rotation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/array_rotation.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/caeser_cipher.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/caeser_cipher.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/findDigits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/findDigits.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/first_non_repeating_int.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/first_non_repeating_int.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/matrix_spiral_print.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/matrix_spiral_print.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/n_binary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/n_binary.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/power_function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/power_function.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/rotate_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/rotate_matrix.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/run -------------------------------------------------------------------------------- /common_ds_algo_problems/save_quantamland.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/save_quantamland.cpp -------------------------------------------------------------------------------- /common_ds_algo_problems/vigenere_cipher.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/common_ds_algo_problems/vigenere_cipher.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-1-hasUniqueChars.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-1-hasUniqueChars.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-1-hasUniqueChars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-1-hasUniqueChars.py -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-2-edi5-reverseString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-2-edi5-reverseString.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-2-perm-strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-2-perm-strings.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-2-perm-strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-2-perm-strings.py -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-3-URLify.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-3-URLify.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-3-edi5-removeDuplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-3-edi5-removeDuplicates.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-4-pallindrome-permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-4-pallindrome-permutations.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-5-one-edit-away.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-5-one-edit-away.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-6-string-compression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-6-string-compression.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-7-matrix-rotation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-7-matrix-rotation.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-8-zero-matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-8-zero-matrix.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/1-9-string-rotation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/1-9-string-rotation.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-1-remove-dups.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-1-remove-dups.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-2-kthToLast.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-2-kthToLast.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-3-delete-middle-node.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-3-delete-middle-node.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-4-partition.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-4-partition.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-5-add-lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-5-add-lists.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-6-palindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-6-palindrome.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-7-intersection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-7-intersection.cpp -------------------------------------------------------------------------------- /cracking_the_coding_interview_problems/2-8-loop-detection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/cracking_the_coding_interview_problems/2-8-loop-detection.cpp -------------------------------------------------------------------------------- /dynamic_programming_problems/0_1_knapsack_problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/0_1_knapsack_problem.cpp -------------------------------------------------------------------------------- /dynamic_programming_problems/catalan_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/catalan_number.cpp -------------------------------------------------------------------------------- /dynamic_programming_problems/fibonacci.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/fibonacci.cpp -------------------------------------------------------------------------------- /dynamic_programming_problems/lcs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/lcs.cpp -------------------------------------------------------------------------------- /dynamic_programming_problems/longest_common_subsequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/longest_common_subsequence.py -------------------------------------------------------------------------------- /dynamic_programming_problems/max_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/max_subsequence.cpp -------------------------------------------------------------------------------- /dynamic_programming_problems/unique_paths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/dynamic_programming_problems/unique_paths.cpp -------------------------------------------------------------------------------- /graph_problems/bfsDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/bfsDemo.cpp -------------------------------------------------------------------------------- /graph_problems/dfsDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/dfsDemo.cpp -------------------------------------------------------------------------------- /graph_problems/dijkstra-shortest-reach.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/dijkstra-shortest-reach.cpp -------------------------------------------------------------------------------- /graph_problems/flood_fill.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/flood_fill.cpp -------------------------------------------------------------------------------- /graph_problems/grid_word_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/grid_word_search.cpp -------------------------------------------------------------------------------- /graph_problems/kruskalMST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/kruskalMST.cpp -------------------------------------------------------------------------------- /graph_problems/primsMST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/primsMST.cpp -------------------------------------------------------------------------------- /graph_problems/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/graph_problems/run -------------------------------------------------------------------------------- /greedy_problems/huffman_coding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/greedy_problems/huffman_coding.cpp -------------------------------------------------------------------------------- /greedy_problems/orders_order.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/greedy_problems/orders_order.cpp -------------------------------------------------------------------------------- /greedy_problems/two_arrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/greedy_problems/two_arrays.cpp -------------------------------------------------------------------------------- /image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/image.jpg -------------------------------------------------------------------------------- /include/binarySearchTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/binarySearchTree.h -------------------------------------------------------------------------------- /include/bubbleSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/bubbleSort.h -------------------------------------------------------------------------------- /include/catch.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/catch.hpp -------------------------------------------------------------------------------- /include/double_linked_list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/double_linked_list.h -------------------------------------------------------------------------------- /include/generic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/generic.h -------------------------------------------------------------------------------- /include/graph.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/graph.h -------------------------------------------------------------------------------- /include/heap_sort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/heap_sort.h -------------------------------------------------------------------------------- /include/impl/binarySearchTree.impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/impl/binarySearchTree.impl.h -------------------------------------------------------------------------------- /include/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/list.h -------------------------------------------------------------------------------- /include/mergeSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/mergeSort.h -------------------------------------------------------------------------------- /include/notes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/notes.txt -------------------------------------------------------------------------------- /include/pUnitTest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/pUnitTest.cpp -------------------------------------------------------------------------------- /include/pUnitTest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/pUnitTest.h -------------------------------------------------------------------------------- /include/pstring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/pstring.cpp -------------------------------------------------------------------------------- /include/pstring.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/pstring.h -------------------------------------------------------------------------------- /include/queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/queue.h -------------------------------------------------------------------------------- /include/quickSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/quickSort.h -------------------------------------------------------------------------------- /include/selectionSort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/selectionSort.h -------------------------------------------------------------------------------- /include/stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/include/stack.h -------------------------------------------------------------------------------- /leet_code_problems/addDigits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/addDigits.cpp -------------------------------------------------------------------------------- /leet_code_problems/best_time_to_buy_sell.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/best_time_to_buy_sell.cpp -------------------------------------------------------------------------------- /leet_code_problems/combinationSum3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/combinationSum3.cpp -------------------------------------------------------------------------------- /leet_code_problems/connectNextPointers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/connectNextPointers.cpp -------------------------------------------------------------------------------- /leet_code_problems/containsDuplicate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/containsDuplicate.cpp -------------------------------------------------------------------------------- /leet_code_problems/countPrimes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/countPrimes.cpp -------------------------------------------------------------------------------- /leet_code_problems/count_islands.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/count_islands.cpp -------------------------------------------------------------------------------- /leet_code_problems/editDistance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/editDistance.cpp -------------------------------------------------------------------------------- /leet_code_problems/excelColSheetTitle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/excelColSheetTitle.cpp -------------------------------------------------------------------------------- /leet_code_problems/find_min_rotated.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/find_min_rotated.cpp -------------------------------------------------------------------------------- /leet_code_problems/firstMissingPositiveNum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/firstMissingPositiveNum.cpp -------------------------------------------------------------------------------- /leet_code_problems/generate_parenthesis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/generate_parenthesis.cpp -------------------------------------------------------------------------------- /leet_code_problems/hamming_distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/hamming_distance.cpp -------------------------------------------------------------------------------- /leet_code_problems/intersection_of_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/intersection_of_array.cpp -------------------------------------------------------------------------------- /leet_code_problems/jumpGame.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/jumpGame.cpp -------------------------------------------------------------------------------- /leet_code_problems/longestConsecutiveSeq.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/longestConsecutiveSeq.cpp -------------------------------------------------------------------------------- /leet_code_problems/maxArea.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/maxArea.cpp -------------------------------------------------------------------------------- /leet_code_problems/maxProfitStock.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/maxProfitStock.cpp -------------------------------------------------------------------------------- /leet_code_problems/median_stream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/median_stream.cpp -------------------------------------------------------------------------------- /leet_code_problems/mergeLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/mergeLists.cpp -------------------------------------------------------------------------------- /leet_code_problems/merge_trees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/merge_trees.cpp -------------------------------------------------------------------------------- /leet_code_problems/minPath.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/minPath.cpp -------------------------------------------------------------------------------- /leet_code_problems/missing_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/missing_number.cpp -------------------------------------------------------------------------------- /leet_code_problems/moveZeroes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/moveZeroes.cpp -------------------------------------------------------------------------------- /leet_code_problems/product_except_self.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/product_except_self.cpp -------------------------------------------------------------------------------- /leet_code_problems/remove_duplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/remove_duplicates.cpp -------------------------------------------------------------------------------- /leet_code_problems/remove_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/remove_element.cpp -------------------------------------------------------------------------------- /leet_code_problems/remove_invalid_parenthesis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/remove_invalid_parenthesis.cpp -------------------------------------------------------------------------------- /leet_code_problems/reverse_vowels.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/reverse_vowels.cpp -------------------------------------------------------------------------------- /leet_code_problems/reverse_words.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/reverse_words.cpp -------------------------------------------------------------------------------- /leet_code_problems/rotateList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/rotateList.cpp -------------------------------------------------------------------------------- /leet_code_problems/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/run -------------------------------------------------------------------------------- /leet_code_problems/search2DII.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/search2DII.cpp -------------------------------------------------------------------------------- /leet_code_problems/shortest_path_maze.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/shortest_path_maze.cpp -------------------------------------------------------------------------------- /leet_code_problems/sortCharByFrequency.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/sortCharByFrequency.cpp -------------------------------------------------------------------------------- /leet_code_problems/sumRootToLeafNumbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/sumRootToLeafNumbers.cpp -------------------------------------------------------------------------------- /leet_code_problems/summary_ranges.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/summary_ranges.cpp -------------------------------------------------------------------------------- /leet_code_problems/threeSumClosest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/threeSumClosest.cpp -------------------------------------------------------------------------------- /leet_code_problems/word_pattern.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/leet_code_problems/word_pattern.cpp -------------------------------------------------------------------------------- /linked_list_problems/add_two_numbers_lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/add_two_numbers_lists.cpp -------------------------------------------------------------------------------- /linked_list_problems/add_two_numbers_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/add_two_numbers_lists.py -------------------------------------------------------------------------------- /linked_list_problems/cloneListWithRandomPtr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/cloneListWithRandomPtr.cpp -------------------------------------------------------------------------------- /linked_list_problems/clone_list_with_random_ptr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/clone_list_with_random_ptr.py -------------------------------------------------------------------------------- /linked_list_problems/deleteLinkedlist.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/deleteLinkedlist.cpp -------------------------------------------------------------------------------- /linked_list_problems/deleteNode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/deleteNode.cpp -------------------------------------------------------------------------------- /linked_list_problems/delete_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/delete_node.py -------------------------------------------------------------------------------- /linked_list_problems/findIntersectionPointOfLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/findIntersectionPointOfLists.cpp -------------------------------------------------------------------------------- /linked_list_problems/floyedCycleDetection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/floyedCycleDetection.cpp -------------------------------------------------------------------------------- /linked_list_problems/insertInASortedLinkedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/insertInASortedLinkedList.cpp -------------------------------------------------------------------------------- /linked_list_problems/intersection_of_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/intersection_of_lists.py -------------------------------------------------------------------------------- /linked_list_problems/listDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/listDemo.cpp -------------------------------------------------------------------------------- /linked_list_problems/listPallindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/listPallindrome.cpp -------------------------------------------------------------------------------- /linked_list_problems/merge_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/merge_sort.cpp -------------------------------------------------------------------------------- /linked_list_problems/nthToLastNode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/nthToLastNode.cpp -------------------------------------------------------------------------------- /linked_list_problems/nth_to_last_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/nth_to_last_node.py -------------------------------------------------------------------------------- /linked_list_problems/printMiddleNode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/printMiddleNode.cpp -------------------------------------------------------------------------------- /linked_list_problems/rearrange_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/rearrange_list.cpp -------------------------------------------------------------------------------- /linked_list_problems/removeDuplicatesFromSortedList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/removeDuplicatesFromSortedList.cpp -------------------------------------------------------------------------------- /linked_list_problems/reverseAlternateNodes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/reverseAlternateNodes.cpp -------------------------------------------------------------------------------- /linked_list_problems/reverseLinkedListIterAndRecurse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/reverseLinkedListIterAndRecurse.cpp -------------------------------------------------------------------------------- /linked_list_problems/reverse_linkedlist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/reverse_linkedlist.py -------------------------------------------------------------------------------- /linked_list_problems/swapNodesWithoutSwappingData.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/swapNodesWithoutSwappingData.cpp -------------------------------------------------------------------------------- /linked_list_problems/swap_nodes_without_swapping_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/linked_list_problems/swap_nodes_without_swapping_data.py -------------------------------------------------------------------------------- /math_problems/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/README.md -------------------------------------------------------------------------------- /math_problems/factorial_of_large_num.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/factorial_of_large_num.cpp -------------------------------------------------------------------------------- /math_problems/gcd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/gcd.cpp -------------------------------------------------------------------------------- /math_problems/happy_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/happy_number.cpp -------------------------------------------------------------------------------- /math_problems/lowest_possible_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/lowest_possible_number.cpp -------------------------------------------------------------------------------- /math_problems/phone_digits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/phone_digits.cpp -------------------------------------------------------------------------------- /math_problems/pow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/pow.cpp -------------------------------------------------------------------------------- /math_problems/string_permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/math_problems/string_permutations.cpp -------------------------------------------------------------------------------- /queue_problems/queueDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/queue_problems/queueDemo.cpp -------------------------------------------------------------------------------- /sort_search_problems/SleepSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/SleepSort.cpp -------------------------------------------------------------------------------- /sort_search_problems/bubbleSortDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/bubbleSortDemo.cpp -------------------------------------------------------------------------------- /sort_search_problems/closestPairSorted.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/closestPairSorted.cpp -------------------------------------------------------------------------------- /sort_search_problems/closest_nums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/closest_nums.cpp -------------------------------------------------------------------------------- /sort_search_problems/commonIn3Arrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/commonIn3Arrays.cpp -------------------------------------------------------------------------------- /sort_search_problems/findClosestPairToZero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/findClosestPairToZero.cpp -------------------------------------------------------------------------------- /sort_search_problems/findMaximum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/findMaximum.cpp -------------------------------------------------------------------------------- /sort_search_problems/find_pairs_with_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/find_pairs_with_sum.cpp -------------------------------------------------------------------------------- /sort_search_problems/firstRepeatingElement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/firstRepeatingElement.cpp -------------------------------------------------------------------------------- /sort_search_problems/first_occurrence_binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/first_occurrence_binary_search.cpp -------------------------------------------------------------------------------- /sort_search_problems/fixedPoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/fixedPoint.cpp -------------------------------------------------------------------------------- /sort_search_problems/heapSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/heapSort.cpp -------------------------------------------------------------------------------- /sort_search_problems/heapSortDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/heapSortDemo.cpp -------------------------------------------------------------------------------- /sort_search_problems/mergeSortDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/mergeSortDemo.cpp -------------------------------------------------------------------------------- /sort_search_problems/minLengthUnsortedArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/minLengthUnsortedArray.cpp -------------------------------------------------------------------------------- /sort_search_problems/missingNumber2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/missingNumber2.cpp -------------------------------------------------------------------------------- /sort_search_problems/missingNumbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/missingNumbers.cpp -------------------------------------------------------------------------------- /sort_search_problems/move_zeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/move_zeros.cpp -------------------------------------------------------------------------------- /sort_search_problems/peak_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/peak_element.cpp -------------------------------------------------------------------------------- /sort_search_problems/quickSortDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/quickSortDemo.cpp -------------------------------------------------------------------------------- /sort_search_problems/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/run -------------------------------------------------------------------------------- /sort_search_problems/selectionSort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/selectionSort.cpp -------------------------------------------------------------------------------- /sort_search_problems/smallest_missing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/smallest_missing.cpp -------------------------------------------------------------------------------- /sort_search_problems/squareSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/squareSum.cpp -------------------------------------------------------------------------------- /sort_search_problems/testBubble.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testBubble.cpp -------------------------------------------------------------------------------- /sort_search_problems/testClosestNums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testClosestNums.cpp -------------------------------------------------------------------------------- /sort_search_problems/testClosestPair.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testClosestPair.cpp -------------------------------------------------------------------------------- /sort_search_problems/testClosestZero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testClosestZero.cpp -------------------------------------------------------------------------------- /sort_search_problems/testCommon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testCommon.cpp -------------------------------------------------------------------------------- /sort_search_problems/testFOBS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testFOBS.cpp -------------------------------------------------------------------------------- /sort_search_problems/testFRE.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testFRE.cpp -------------------------------------------------------------------------------- /sort_search_problems/testFindMax.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testFindMax.cpp -------------------------------------------------------------------------------- /sort_search_problems/testFixPoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/sort_search_problems/testFixPoint.cpp -------------------------------------------------------------------------------- /stack_problems/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/stack_problems/README.md -------------------------------------------------------------------------------- /stack_problems/infix_to_postfix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/stack_problems/infix_to_postfix.cpp -------------------------------------------------------------------------------- /stack_problems/stackDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/stack_problems/stackDemo.cpp -------------------------------------------------------------------------------- /stack_problems/stock_span_problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/stack_problems/stock_span_problem.cpp -------------------------------------------------------------------------------- /stack_problems/valid_parenthesis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/stack_problems/valid_parenthesis.cpp -------------------------------------------------------------------------------- /string_problems/find_difference.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/string_problems/find_difference.cpp -------------------------------------------------------------------------------- /string_problems/length_of_last_word.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/string_problems/length_of_last_word.cpp -------------------------------------------------------------------------------- /string_problems/next_permutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/string_problems/next_permutation.cpp -------------------------------------------------------------------------------- /string_problems/pstring_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/string_problems/pstring_test.cpp -------------------------------------------------------------------------------- /string_problems/robinKarpStringMatching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/string_problems/robinKarpStringMatching.cpp -------------------------------------------------------------------------------- /string_problems/z.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/string_problems/z.cpp -------------------------------------------------------------------------------- /tree_problems/binarySearchTreeDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/binarySearchTreeDemo.cpp -------------------------------------------------------------------------------- /tree_problems/closest_bst_value.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/closest_bst_value.cpp -------------------------------------------------------------------------------- /tree_problems/closest_bst_value.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/closest_bst_value.py -------------------------------------------------------------------------------- /tree_problems/convert_to_sum_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/convert_to_sum_tree.cpp -------------------------------------------------------------------------------- /tree_problems/convert_to_sum_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/convert_to_sum_tree.py -------------------------------------------------------------------------------- /tree_problems/find_target_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/find_target_k.cpp -------------------------------------------------------------------------------- /tree_problems/floor_ceil_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/floor_ceil_bst.cpp -------------------------------------------------------------------------------- /tree_problems/invert_a_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/invert_a_tree.cpp -------------------------------------------------------------------------------- /tree_problems/k_sum_paths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/k_sum_paths.cpp -------------------------------------------------------------------------------- /tree_problems/kth_smallest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/kth_smallest.cpp -------------------------------------------------------------------------------- /tree_problems/levelOrderTraversalIterative.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/levelOrderTraversalIterative.cpp -------------------------------------------------------------------------------- /tree_problems/levelOrderTraversalRecursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/levelOrderTraversalRecursive.cpp -------------------------------------------------------------------------------- /tree_problems/level_of_node.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/level_of_node.cpp -------------------------------------------------------------------------------- /tree_problems/level_order_tree_traversal_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/level_order_tree_traversal_iterative.py -------------------------------------------------------------------------------- /tree_problems/level_order_tree_traversal_recursive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/level_order_tree_traversal_recursive.py -------------------------------------------------------------------------------- /tree_problems/lowest-common-ancestor-binary-tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/lowest-common-ancestor-binary-tree.cpp -------------------------------------------------------------------------------- /tree_problems/lowest-common-ancestor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/lowest-common-ancestor.cpp -------------------------------------------------------------------------------- /tree_problems/lowest_common_ancestor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/lowest_common_ancestor.py -------------------------------------------------------------------------------- /tree_problems/node_ancestors_in_root_path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/node_ancestors_in_root_path.cpp -------------------------------------------------------------------------------- /tree_problems/predecessorSuccessor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/predecessorSuccessor.cpp -------------------------------------------------------------------------------- /tree_problems/printAllRootToLeafPath.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/printAllRootToLeafPath.cpp -------------------------------------------------------------------------------- /tree_problems/reverseLevelOrderTraversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/reverseLevelOrderTraversal.cpp -------------------------------------------------------------------------------- /tree_problems/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/run -------------------------------------------------------------------------------- /tree_problems/sortedArrayToBST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/sortedArrayToBST.cpp -------------------------------------------------------------------------------- /tree_problems/string_from_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/string_from_tree.cpp -------------------------------------------------------------------------------- /tree_problems/sumTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/sumTree.cpp -------------------------------------------------------------------------------- /tree_problems/validate_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/validate_bst.cpp -------------------------------------------------------------------------------- /tree_problems/verticalSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/verticalSum.cpp -------------------------------------------------------------------------------- /tree_problems/zigZagTraversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/zigZagTraversal.cpp -------------------------------------------------------------------------------- /tree_problems/zig_zag_traversal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mandliya/algorithms_and_data_structures/HEAD/tree_problems/zig_zag_traversal.py --------------------------------------------------------------------------------