├── Arrays ├── Add_one_to_number.cpp ├── Flip.cpp ├── Max_sum_contiguous_subarray.cpp ├── Maximum_absolute_difference.cpp ├── Min_steps_in_infinite_grid.cpp ├── Repeat and Missing Number Array.cpp ├── anti_diagonals.cpp ├── find_permutation.cpp ├── hotel_bookings_possible.cpp ├── kth_row_of_pascal_triangle.cpp ├── largest_number.cpp ├── largest_number_Arrangement.cpp ├── largest_number_Bucketing.cpp ├── max_distance.cpp ├── max_non_negative_subarray.cpp ├── maximum_unsorted_subarray.cpp ├── maxspprod.cpp ├── merge_intervals.cpp ├── merge_overlapping_intervals.cpp ├── next_permutation.cpp ├── noble_integer.cpp ├── pascal_triangle.cpp ├── rotate_matrix.cpp ├── set_matrix_zeros.cpp ├── spiral_order_matrix_ii.cpp ├── wave_array.cpp └── wave_array_.cpp ├── Backtracking ├── combination_sum.cpp ├── combination_sum_ii.cpp ├── combinations.cpp ├── gray_code.cpp ├── letter_phone.cpp ├── modular_expression.cpp ├── nqueens.cpp ├── palindrome_partitioning.cpp ├── permutations.cpp ├── subset.cpp └── subset_ii.cpp ├── Binary Search ├── .Median of Array.cpp.swp ├── Count_element_occurence.cpp ├── MatrixSearch.cpp ├── Matrix_median.cpp ├── Median of Array.cpp ├── Rotated_array.cpp ├── Rotated_array_sorted_search.cpp ├── Search_for_a_range.cpp ├── Sorted_insert_position.cpp ├── Square_root_of_integer.cpp ├── allocate_books.cpp └── implement_power_function.cpp ├── Bit Manipulation ├── different_bits_sum_pairwise.cpp ├── min_xor_value.cpp ├── number_of_1_bits.cpp ├── reverse_bits.cpp ├── single_number.cpp └── single_number_ii.cpp ├── Checkpoint_Level_3 └── Kth_smallest_element_in_the_array.cpp ├── Dynamic Programming ├── Largest area of rectangle with permutations.cpp ├── Max Rectangle in Binary Matrix.cpp ├── Ways to Decode.cpp ├── Word Break.cpp ├── best_time_to_buy_and_sell_stocks_ii.cpp ├── coin_sum_infinite.cpp ├── distinct_subsequences.cpp ├── dungeon_princess.cpp ├── interleaving_strings.cpp ├── jump_game_array.cpp ├── length_of_longest_subsequence.cpp ├── max_product_subarray.cpp ├── min_sum_path_in_triangle.cpp ├── tushar_birthday_party.cpp ├── unique_binary_search_trees_ii.cpp └── unique_paths_in_a_grid.cpp ├── Graph Data Structure & Algorithms ├── Black Shapes.cpp ├── Capture Regions on Board.cpp ├── Clone Graph.cpp ├── Commutable Islands.cpp ├── Knight On Chess Board.cpp ├── Largest Distnace between nodes of a Tree.cpp ├── Smallest sequence with given Primes.cpp ├── Stepping Numbers.cpp ├── Valid path.cpp ├── Word Ladder I.cpp ├── Word Ladder II.cpp ├── Word Search Board.cpp ├── convert_sorted_list_to_binary_search_tree.cpp ├── level_order.cpp ├── possibility_of_finishing_all_courses_given_pre-requisites.cpp └── sum_of_fibonacci_numbers.cpp ├── Greedy Algorithm ├── Assign Mice to Holes.cpp ├── Bulbs.cpp ├── Distribute Candy.cpp ├── Gas Station.cpp ├── Highest Product.cpp └── Majority Element.cpp ├── Hashing ├── 2_sum.cpp ├── 4_sum.cpp ├── Colorful_number.cpp ├── Window String.cpp ├── anagrams.cpp ├── diff_ii.cpp ├── equal.cpp ├── fraction.cpp ├── largest_continuous_sequence_zero_sum.cpp ├── longest_substring_without_repeat.cpp ├── substring_concatenation.cpp └── valid_sudoku.cpp ├── HeapsAndMaps ├── LRUCache.cpp ├── distinct_numbers_in_window.cpp ├── magician_and_chocolates.cpp └── merge_k_sorted_lists.cpp ├── Linked Lists ├── add_two_numbers_as_lists.cpp ├── insertion_sort_list.cpp ├── intersection_of_linked_lists.cpp ├── k_reverse_linked_list.cpp ├── list_cycle.cpp ├── merge_two_sorted_lists.cpp ├── palindrome_list.cpp ├── partition_list.cpp ├── remove_duplicates_from_sorted_list.cpp ├── remove_duplicates_from_sorted_list_II.cpp ├── remove_nth_node_from_list_end.cpp ├── reorder_list.cpp ├── reverse_linked_list.cpp ├── reverse_linked_list_II.cpp ├── rotate_list.cpp ├── sort_list.cpp └── swap_list_nodes_in_pairs.cpp ├── Math ├── Prime_Sum.cpp ├── excel_column_number.cpp ├── excel_column_title.cpp ├── fizzbuzz.cpp ├── greatest_common_divisor.cpp ├── grid_unique_paths.cpp ├── largest_coprime_divisor.cpp ├── palindrome_integer.cpp ├── power_of_two_integers.cpp ├── rearrange_array.cpp ├── reverse_integer.cpp ├── sorted_permutation_rank.cpp └── trailing_zeros_in_factorial.cpp ├── Ninja Test ├── build_identical_trees.cpp ├── get_mode_array_updates.cpp ├── increasing_subarrays.cpp └── maximum_longest_common_subsequence.cpp ├── README.md ├── Stacks And Queues ├── Generate_all_parentheses.cpp ├── Sliding Window Maximum.cpp ├── evaluate_expression.cpp ├── min_stack.cpp ├── nearest_smallest_element.cpp ├── partition_list.cpp ├── rain_water_tapped.cpp ├── redundant_braces.cpp ├── reverse_string.cpp └── simpify_directory_path.cpp ├── Strings ├── Length_of_last_word.cpp ├── Palindrome_string.cpp ├── Reverse_the_string.cpp ├── add_binary_strings.cpp ├── atoi.cpp ├── compare_version_numbers.cpp ├── count_and_say.cpp ├── implement_strstr.cpp ├── integer_to_roman.cpp ├── longest_common_prefix.cpp ├── longest_palindromic_substring.cpp ├── minimum_characters_required_to_make_a_string_palindromic.cpp ├── multiply_strings.cpp ├── power_of_2.cpp ├── pretty_json.cpp ├── roman_to_integer.cpp ├── valid_ip_addresses.cpp ├── valid_number.cpp └── zigzag_string.cpp ├── Trees ├── Inorder Traversal.cpp ├── Least Common Ancestor.cpp ├── Max Depth of Binary Tree.cpp ├── Min Depth of Binary Tree.cpp ├── Postorder Traversal.cpp ├── Preorder Traversal.cpp ├── ZigZag Level Order Traversal BT.cpp ├── binary_tree_from_inorder_and_postorder.cpp ├── construct_binary_tree_from_inorder_and_preorder.cpp ├── flatten_binary_tree_to_linked_list.cpp ├── identical_binary_trees.cpp ├── inorder_traversal_of_cartesian_tree.cpp ├── invert_the_binary_tree.cpp ├── kth_smallest_element_in_tree.cpp ├── path_sum.cpp ├── populate_next_right_pointers_tree.cpp ├── root_to_leaf_paths_with_sum.cpp ├── shortest_unique_prefix.cpp ├── sorted_array_to_balanced_BST.cpp ├── sum_root_to_leaf_numbers.cpp └── symmetric_binary_tree.cpp ├── Two Pointers ├── 3_sum.cpp ├── 3_sum_zero.cpp ├── Counting_triangles.cpp ├── diffk.cpp ├── intersection_of_sorted_arrays.cpp ├── merge_two_sorted_lists_ii.cpp ├── minimize_the_absolute_difference.cpp ├── remoce_duplicates_from_sorted_array_ii.cpp ├── remove_duplicates_from_sorted_array.cpp ├── remove_element_from_array.cpp └── sort_by_color.cpp └── nano.save /Arrays/Add_one_to_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/Add_one_to_number.cpp -------------------------------------------------------------------------------- /Arrays/Flip.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/Flip.cpp -------------------------------------------------------------------------------- /Arrays/Max_sum_contiguous_subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/Max_sum_contiguous_subarray.cpp -------------------------------------------------------------------------------- /Arrays/Maximum_absolute_difference.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/Maximum_absolute_difference.cpp -------------------------------------------------------------------------------- /Arrays/Min_steps_in_infinite_grid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/Min_steps_in_infinite_grid.cpp -------------------------------------------------------------------------------- /Arrays/Repeat and Missing Number Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/Repeat and Missing Number Array.cpp -------------------------------------------------------------------------------- /Arrays/anti_diagonals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/anti_diagonals.cpp -------------------------------------------------------------------------------- /Arrays/find_permutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/find_permutation.cpp -------------------------------------------------------------------------------- /Arrays/hotel_bookings_possible.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/hotel_bookings_possible.cpp -------------------------------------------------------------------------------- /Arrays/kth_row_of_pascal_triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/kth_row_of_pascal_triangle.cpp -------------------------------------------------------------------------------- /Arrays/largest_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/largest_number.cpp -------------------------------------------------------------------------------- /Arrays/largest_number_Arrangement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/largest_number_Arrangement.cpp -------------------------------------------------------------------------------- /Arrays/largest_number_Bucketing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/largest_number_Bucketing.cpp -------------------------------------------------------------------------------- /Arrays/max_distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/max_distance.cpp -------------------------------------------------------------------------------- /Arrays/max_non_negative_subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/max_non_negative_subarray.cpp -------------------------------------------------------------------------------- /Arrays/maximum_unsorted_subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/maximum_unsorted_subarray.cpp -------------------------------------------------------------------------------- /Arrays/maxspprod.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/maxspprod.cpp -------------------------------------------------------------------------------- /Arrays/merge_intervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/merge_intervals.cpp -------------------------------------------------------------------------------- /Arrays/merge_overlapping_intervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/merge_overlapping_intervals.cpp -------------------------------------------------------------------------------- /Arrays/next_permutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/next_permutation.cpp -------------------------------------------------------------------------------- /Arrays/noble_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/noble_integer.cpp -------------------------------------------------------------------------------- /Arrays/pascal_triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/pascal_triangle.cpp -------------------------------------------------------------------------------- /Arrays/rotate_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/rotate_matrix.cpp -------------------------------------------------------------------------------- /Arrays/set_matrix_zeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/set_matrix_zeros.cpp -------------------------------------------------------------------------------- /Arrays/spiral_order_matrix_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/spiral_order_matrix_ii.cpp -------------------------------------------------------------------------------- /Arrays/wave_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/wave_array.cpp -------------------------------------------------------------------------------- /Arrays/wave_array_.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Arrays/wave_array_.cpp -------------------------------------------------------------------------------- /Backtracking/combination_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/combination_sum.cpp -------------------------------------------------------------------------------- /Backtracking/combination_sum_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/combination_sum_ii.cpp -------------------------------------------------------------------------------- /Backtracking/combinations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/combinations.cpp -------------------------------------------------------------------------------- /Backtracking/gray_code.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/gray_code.cpp -------------------------------------------------------------------------------- /Backtracking/letter_phone.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/letter_phone.cpp -------------------------------------------------------------------------------- /Backtracking/modular_expression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/modular_expression.cpp -------------------------------------------------------------------------------- /Backtracking/nqueens.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/nqueens.cpp -------------------------------------------------------------------------------- /Backtracking/palindrome_partitioning.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/palindrome_partitioning.cpp -------------------------------------------------------------------------------- /Backtracking/permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/permutations.cpp -------------------------------------------------------------------------------- /Backtracking/subset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/subset.cpp -------------------------------------------------------------------------------- /Backtracking/subset_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Backtracking/subset_ii.cpp -------------------------------------------------------------------------------- /Binary Search/.Median of Array.cpp.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/.Median of Array.cpp.swp -------------------------------------------------------------------------------- /Binary Search/Count_element_occurence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Count_element_occurence.cpp -------------------------------------------------------------------------------- /Binary Search/MatrixSearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/MatrixSearch.cpp -------------------------------------------------------------------------------- /Binary Search/Matrix_median.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Matrix_median.cpp -------------------------------------------------------------------------------- /Binary Search/Median of Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Median of Array.cpp -------------------------------------------------------------------------------- /Binary Search/Rotated_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Rotated_array.cpp -------------------------------------------------------------------------------- /Binary Search/Rotated_array_sorted_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Rotated_array_sorted_search.cpp -------------------------------------------------------------------------------- /Binary Search/Search_for_a_range.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Search_for_a_range.cpp -------------------------------------------------------------------------------- /Binary Search/Sorted_insert_position.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Sorted_insert_position.cpp -------------------------------------------------------------------------------- /Binary Search/Square_root_of_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/Square_root_of_integer.cpp -------------------------------------------------------------------------------- /Binary Search/allocate_books.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/allocate_books.cpp -------------------------------------------------------------------------------- /Binary Search/implement_power_function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Binary Search/implement_power_function.cpp -------------------------------------------------------------------------------- /Bit Manipulation/different_bits_sum_pairwise.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Bit Manipulation/different_bits_sum_pairwise.cpp -------------------------------------------------------------------------------- /Bit Manipulation/min_xor_value.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Bit Manipulation/min_xor_value.cpp -------------------------------------------------------------------------------- /Bit Manipulation/number_of_1_bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Bit Manipulation/number_of_1_bits.cpp -------------------------------------------------------------------------------- /Bit Manipulation/reverse_bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Bit Manipulation/reverse_bits.cpp -------------------------------------------------------------------------------- /Bit Manipulation/single_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Bit Manipulation/single_number.cpp -------------------------------------------------------------------------------- /Bit Manipulation/single_number_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Bit Manipulation/single_number_ii.cpp -------------------------------------------------------------------------------- /Checkpoint_Level_3/Kth_smallest_element_in_the_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Checkpoint_Level_3/Kth_smallest_element_in_the_array.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Largest area of rectangle with permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/Largest area of rectangle with permutations.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Max Rectangle in Binary Matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/Max Rectangle in Binary Matrix.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Ways to Decode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/Ways to Decode.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Word Break.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/Word Break.cpp -------------------------------------------------------------------------------- /Dynamic Programming/best_time_to_buy_and_sell_stocks_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/best_time_to_buy_and_sell_stocks_ii.cpp -------------------------------------------------------------------------------- /Dynamic Programming/coin_sum_infinite.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/coin_sum_infinite.cpp -------------------------------------------------------------------------------- /Dynamic Programming/distinct_subsequences.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/distinct_subsequences.cpp -------------------------------------------------------------------------------- /Dynamic Programming/dungeon_princess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/dungeon_princess.cpp -------------------------------------------------------------------------------- /Dynamic Programming/interleaving_strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/interleaving_strings.cpp -------------------------------------------------------------------------------- /Dynamic Programming/jump_game_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/jump_game_array.cpp -------------------------------------------------------------------------------- /Dynamic Programming/length_of_longest_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/length_of_longest_subsequence.cpp -------------------------------------------------------------------------------- /Dynamic Programming/max_product_subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/max_product_subarray.cpp -------------------------------------------------------------------------------- /Dynamic Programming/min_sum_path_in_triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/min_sum_path_in_triangle.cpp -------------------------------------------------------------------------------- /Dynamic Programming/tushar_birthday_party.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/tushar_birthday_party.cpp -------------------------------------------------------------------------------- /Dynamic Programming/unique_binary_search_trees_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/unique_binary_search_trees_ii.cpp -------------------------------------------------------------------------------- /Dynamic Programming/unique_paths_in_a_grid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Dynamic Programming/unique_paths_in_a_grid.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Black Shapes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Black Shapes.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Capture Regions on Board.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Capture Regions on Board.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Clone Graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Clone Graph.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Commutable Islands.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Commutable Islands.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Knight On Chess Board.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Knight On Chess Board.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Largest Distnace between nodes of a Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Largest Distnace between nodes of a Tree.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Smallest sequence with given Primes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Smallest sequence with given Primes.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Stepping Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Stepping Numbers.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Valid path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Valid path.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Word Ladder I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Word Ladder I.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Word Ladder II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Word Ladder II.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/Word Search Board.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/Word Search Board.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/convert_sorted_list_to_binary_search_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/convert_sorted_list_to_binary_search_tree.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/level_order.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/level_order.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/possibility_of_finishing_all_courses_given_pre-requisites.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/possibility_of_finishing_all_courses_given_pre-requisites.cpp -------------------------------------------------------------------------------- /Graph Data Structure & Algorithms/sum_of_fibonacci_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Graph Data Structure & Algorithms/sum_of_fibonacci_numbers.cpp -------------------------------------------------------------------------------- /Greedy Algorithm/Assign Mice to Holes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Greedy Algorithm/Assign Mice to Holes.cpp -------------------------------------------------------------------------------- /Greedy Algorithm/Bulbs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Greedy Algorithm/Bulbs.cpp -------------------------------------------------------------------------------- /Greedy Algorithm/Distribute Candy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Greedy Algorithm/Distribute Candy.cpp -------------------------------------------------------------------------------- /Greedy Algorithm/Gas Station.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Greedy Algorithm/Gas Station.cpp -------------------------------------------------------------------------------- /Greedy Algorithm/Highest Product.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Greedy Algorithm/Highest Product.cpp -------------------------------------------------------------------------------- /Greedy Algorithm/Majority Element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Greedy Algorithm/Majority Element.cpp -------------------------------------------------------------------------------- /Hashing/2_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/2_sum.cpp -------------------------------------------------------------------------------- /Hashing/4_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/4_sum.cpp -------------------------------------------------------------------------------- /Hashing/Colorful_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/Colorful_number.cpp -------------------------------------------------------------------------------- /Hashing/Window String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/Window String.cpp -------------------------------------------------------------------------------- /Hashing/anagrams.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/anagrams.cpp -------------------------------------------------------------------------------- /Hashing/diff_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/diff_ii.cpp -------------------------------------------------------------------------------- /Hashing/equal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/equal.cpp -------------------------------------------------------------------------------- /Hashing/fraction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/fraction.cpp -------------------------------------------------------------------------------- /Hashing/largest_continuous_sequence_zero_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/largest_continuous_sequence_zero_sum.cpp -------------------------------------------------------------------------------- /Hashing/longest_substring_without_repeat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/longest_substring_without_repeat.cpp -------------------------------------------------------------------------------- /Hashing/substring_concatenation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/substring_concatenation.cpp -------------------------------------------------------------------------------- /Hashing/valid_sudoku.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Hashing/valid_sudoku.cpp -------------------------------------------------------------------------------- /HeapsAndMaps/LRUCache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/HeapsAndMaps/LRUCache.cpp -------------------------------------------------------------------------------- /HeapsAndMaps/distinct_numbers_in_window.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/HeapsAndMaps/distinct_numbers_in_window.cpp -------------------------------------------------------------------------------- /HeapsAndMaps/magician_and_chocolates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/HeapsAndMaps/magician_and_chocolates.cpp -------------------------------------------------------------------------------- /HeapsAndMaps/merge_k_sorted_lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/HeapsAndMaps/merge_k_sorted_lists.cpp -------------------------------------------------------------------------------- /Linked Lists/add_two_numbers_as_lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/add_two_numbers_as_lists.cpp -------------------------------------------------------------------------------- /Linked Lists/insertion_sort_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/insertion_sort_list.cpp -------------------------------------------------------------------------------- /Linked Lists/intersection_of_linked_lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/intersection_of_linked_lists.cpp -------------------------------------------------------------------------------- /Linked Lists/k_reverse_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/k_reverse_linked_list.cpp -------------------------------------------------------------------------------- /Linked Lists/list_cycle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/list_cycle.cpp -------------------------------------------------------------------------------- /Linked Lists/merge_two_sorted_lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/merge_two_sorted_lists.cpp -------------------------------------------------------------------------------- /Linked Lists/palindrome_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/palindrome_list.cpp -------------------------------------------------------------------------------- /Linked Lists/partition_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/partition_list.cpp -------------------------------------------------------------------------------- /Linked Lists/remove_duplicates_from_sorted_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/remove_duplicates_from_sorted_list.cpp -------------------------------------------------------------------------------- /Linked Lists/remove_duplicates_from_sorted_list_II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/remove_duplicates_from_sorted_list_II.cpp -------------------------------------------------------------------------------- /Linked Lists/remove_nth_node_from_list_end.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/remove_nth_node_from_list_end.cpp -------------------------------------------------------------------------------- /Linked Lists/reorder_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/reorder_list.cpp -------------------------------------------------------------------------------- /Linked Lists/reverse_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/reverse_linked_list.cpp -------------------------------------------------------------------------------- /Linked Lists/reverse_linked_list_II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/reverse_linked_list_II.cpp -------------------------------------------------------------------------------- /Linked Lists/rotate_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/rotate_list.cpp -------------------------------------------------------------------------------- /Linked Lists/sort_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/sort_list.cpp -------------------------------------------------------------------------------- /Linked Lists/swap_list_nodes_in_pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Linked Lists/swap_list_nodes_in_pairs.cpp -------------------------------------------------------------------------------- /Math/Prime_Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/Prime_Sum.cpp -------------------------------------------------------------------------------- /Math/excel_column_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/excel_column_number.cpp -------------------------------------------------------------------------------- /Math/excel_column_title.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/excel_column_title.cpp -------------------------------------------------------------------------------- /Math/fizzbuzz.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/fizzbuzz.cpp -------------------------------------------------------------------------------- /Math/greatest_common_divisor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/greatest_common_divisor.cpp -------------------------------------------------------------------------------- /Math/grid_unique_paths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/grid_unique_paths.cpp -------------------------------------------------------------------------------- /Math/largest_coprime_divisor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/largest_coprime_divisor.cpp -------------------------------------------------------------------------------- /Math/palindrome_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/palindrome_integer.cpp -------------------------------------------------------------------------------- /Math/power_of_two_integers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/power_of_two_integers.cpp -------------------------------------------------------------------------------- /Math/rearrange_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/rearrange_array.cpp -------------------------------------------------------------------------------- /Math/reverse_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/reverse_integer.cpp -------------------------------------------------------------------------------- /Math/sorted_permutation_rank.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/sorted_permutation_rank.cpp -------------------------------------------------------------------------------- /Math/trailing_zeros_in_factorial.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Math/trailing_zeros_in_factorial.cpp -------------------------------------------------------------------------------- /Ninja Test/build_identical_trees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Ninja Test/build_identical_trees.cpp -------------------------------------------------------------------------------- /Ninja Test/get_mode_array_updates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Ninja Test/get_mode_array_updates.cpp -------------------------------------------------------------------------------- /Ninja Test/increasing_subarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Ninja Test/increasing_subarrays.cpp -------------------------------------------------------------------------------- /Ninja Test/maximum_longest_common_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Ninja Test/maximum_longest_common_subsequence.cpp -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/README.md -------------------------------------------------------------------------------- /Stacks And Queues/Generate_all_parentheses.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/Generate_all_parentheses.cpp -------------------------------------------------------------------------------- /Stacks And Queues/Sliding Window Maximum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/Sliding Window Maximum.cpp -------------------------------------------------------------------------------- /Stacks And Queues/evaluate_expression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/evaluate_expression.cpp -------------------------------------------------------------------------------- /Stacks And Queues/min_stack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/min_stack.cpp -------------------------------------------------------------------------------- /Stacks And Queues/nearest_smallest_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/nearest_smallest_element.cpp -------------------------------------------------------------------------------- /Stacks And Queues/partition_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/partition_list.cpp -------------------------------------------------------------------------------- /Stacks And Queues/rain_water_tapped.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/rain_water_tapped.cpp -------------------------------------------------------------------------------- /Stacks And Queues/redundant_braces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/redundant_braces.cpp -------------------------------------------------------------------------------- /Stacks And Queues/reverse_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/reverse_string.cpp -------------------------------------------------------------------------------- /Stacks And Queues/simpify_directory_path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Stacks And Queues/simpify_directory_path.cpp -------------------------------------------------------------------------------- /Strings/Length_of_last_word.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/Length_of_last_word.cpp -------------------------------------------------------------------------------- /Strings/Palindrome_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/Palindrome_string.cpp -------------------------------------------------------------------------------- /Strings/Reverse_the_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/Reverse_the_string.cpp -------------------------------------------------------------------------------- /Strings/add_binary_strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/add_binary_strings.cpp -------------------------------------------------------------------------------- /Strings/atoi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/atoi.cpp -------------------------------------------------------------------------------- /Strings/compare_version_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/compare_version_numbers.cpp -------------------------------------------------------------------------------- /Strings/count_and_say.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/count_and_say.cpp -------------------------------------------------------------------------------- /Strings/implement_strstr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/implement_strstr.cpp -------------------------------------------------------------------------------- /Strings/integer_to_roman.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/integer_to_roman.cpp -------------------------------------------------------------------------------- /Strings/longest_common_prefix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/longest_common_prefix.cpp -------------------------------------------------------------------------------- /Strings/longest_palindromic_substring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/longest_palindromic_substring.cpp -------------------------------------------------------------------------------- /Strings/minimum_characters_required_to_make_a_string_palindromic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/minimum_characters_required_to_make_a_string_palindromic.cpp -------------------------------------------------------------------------------- /Strings/multiply_strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/multiply_strings.cpp -------------------------------------------------------------------------------- /Strings/power_of_2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/power_of_2.cpp -------------------------------------------------------------------------------- /Strings/pretty_json.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/pretty_json.cpp -------------------------------------------------------------------------------- /Strings/roman_to_integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/roman_to_integer.cpp -------------------------------------------------------------------------------- /Strings/valid_ip_addresses.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/valid_ip_addresses.cpp -------------------------------------------------------------------------------- /Strings/valid_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/valid_number.cpp -------------------------------------------------------------------------------- /Strings/zigzag_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Strings/zigzag_string.cpp -------------------------------------------------------------------------------- /Trees/Inorder Traversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/Inorder Traversal.cpp -------------------------------------------------------------------------------- /Trees/Least Common Ancestor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/Least Common Ancestor.cpp -------------------------------------------------------------------------------- /Trees/Max Depth of Binary Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/Max Depth of Binary Tree.cpp -------------------------------------------------------------------------------- /Trees/Min Depth of Binary Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/Min Depth of Binary Tree.cpp -------------------------------------------------------------------------------- /Trees/Postorder Traversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/Postorder Traversal.cpp -------------------------------------------------------------------------------- /Trees/Preorder Traversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/Preorder Traversal.cpp -------------------------------------------------------------------------------- /Trees/ZigZag Level Order Traversal BT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/ZigZag Level Order Traversal BT.cpp -------------------------------------------------------------------------------- /Trees/binary_tree_from_inorder_and_postorder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/binary_tree_from_inorder_and_postorder.cpp -------------------------------------------------------------------------------- /Trees/construct_binary_tree_from_inorder_and_preorder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/construct_binary_tree_from_inorder_and_preorder.cpp -------------------------------------------------------------------------------- /Trees/flatten_binary_tree_to_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/flatten_binary_tree_to_linked_list.cpp -------------------------------------------------------------------------------- /Trees/identical_binary_trees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/identical_binary_trees.cpp -------------------------------------------------------------------------------- /Trees/inorder_traversal_of_cartesian_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/inorder_traversal_of_cartesian_tree.cpp -------------------------------------------------------------------------------- /Trees/invert_the_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/invert_the_binary_tree.cpp -------------------------------------------------------------------------------- /Trees/kth_smallest_element_in_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/kth_smallest_element_in_tree.cpp -------------------------------------------------------------------------------- /Trees/path_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/path_sum.cpp -------------------------------------------------------------------------------- /Trees/populate_next_right_pointers_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/populate_next_right_pointers_tree.cpp -------------------------------------------------------------------------------- /Trees/root_to_leaf_paths_with_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/root_to_leaf_paths_with_sum.cpp -------------------------------------------------------------------------------- /Trees/shortest_unique_prefix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/shortest_unique_prefix.cpp -------------------------------------------------------------------------------- /Trees/sorted_array_to_balanced_BST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/sorted_array_to_balanced_BST.cpp -------------------------------------------------------------------------------- /Trees/sum_root_to_leaf_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/sum_root_to_leaf_numbers.cpp -------------------------------------------------------------------------------- /Trees/symmetric_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Trees/symmetric_binary_tree.cpp -------------------------------------------------------------------------------- /Two Pointers/3_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/3_sum.cpp -------------------------------------------------------------------------------- /Two Pointers/3_sum_zero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/3_sum_zero.cpp -------------------------------------------------------------------------------- /Two Pointers/Counting_triangles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/Counting_triangles.cpp -------------------------------------------------------------------------------- /Two Pointers/diffk.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/diffk.cpp -------------------------------------------------------------------------------- /Two Pointers/intersection_of_sorted_arrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/intersection_of_sorted_arrays.cpp -------------------------------------------------------------------------------- /Two Pointers/merge_two_sorted_lists_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/merge_two_sorted_lists_ii.cpp -------------------------------------------------------------------------------- /Two Pointers/minimize_the_absolute_difference.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/minimize_the_absolute_difference.cpp -------------------------------------------------------------------------------- /Two Pointers/remoce_duplicates_from_sorted_array_ii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/remoce_duplicates_from_sorted_array_ii.cpp -------------------------------------------------------------------------------- /Two Pointers/remove_duplicates_from_sorted_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/remove_duplicates_from_sorted_array.cpp -------------------------------------------------------------------------------- /Two Pointers/remove_element_from_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/remove_element_from_array.cpp -------------------------------------------------------------------------------- /Two Pointers/sort_by_color.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/Two Pointers/sort_by_color.cpp -------------------------------------------------------------------------------- /nano.save: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mnpal/InterviewBit/HEAD/nano.save --------------------------------------------------------------------------------