This repository contains solutions to standard interview questions in C and C++.
- binary_search
- order_agnostic_search
- ceiling_of_number
- floor_of_number
- find_first_last_pos_sorted
- find_in_mountain_array
- peak_index_mountain_array
- find_pos_of_ele_infinite_arr
- search_in_rotated_sorted_arr
- cyclic_sort_implementation
- find_single_duplicate_ele
- find_all_duplicate_ele
- find_single_missing_ele
- find_all_missing_elements
- count_number_of_zeros_in_num
- factorial
- generate_all_subsets_subsequences
- letter_combination_phone_number
- maze_problem_counting_paths
- palindrome_number
- reverse_number
- skip_a_char_string
- sum_of_digits
- pair_sum_in_sorted_arr
- square_ele_sorted_arr
- dutch_national_flag
- remove_all_duplicates
- remove_all_elements_of_key
- triplet_sum_close_to_target
- unique_triplets_sum_equal_0
- find_all_subarray_avg
- find_max_sum_subarray_of_size_k
- largest_substr_with_k_distinct_chars
- smallest_subarray_with_given_sum
- substring_problems
- template_for_substring_problems
- find_middle_of_linkedlist
- find_cycle_in_linkedlist
- find_cycle_length_in_linkedlist
- find_start_of_cycle_linkedlist
- check_linkedlist_palindrome
- happy_number
- reverse_linkedlist
- reverse_sub_list
- reverse_every_k_element_sub_list
- reverse_first_k_ele
- reverse_list_based_on_size
- reverse_every_alternate_k_element_sublist
- rotate_linkedlist_k_size
- 2d_array_declaration
- 2d_array_string_dma
- array_products
- count_increasing_subarrays
- direction_array
- find_smallest_second_smallest_arr
- get_max_value_last_occurance_2d_arr
- greedy_robot
- grid_unique_paths
- highest_mountain
- largest_subarray_sum
- left_rotate_arr_by_1
- length_longest_substring
- longest_band_whose_reordering_makes_longest_subarray
- maximumSumSubarray
- merge_two_sorted_arr_into_third_sorted_arr
- merge_two_sorted_arrays
- most_frequent_num_arr
- move_zeros_to_end_of_arr
- rains_compute_amt_of_water_trapped
- read_print_2d_arr
- remove_even_ele_arr
- replace_min_max_arr
- rotate_array
- search_ele_array
- smallest_num_rearranging_digit_num
- sort_0_1_2s_arr_75
- sort_array_of_0s_1s
- swap_two_columns_2d_arr
- housing
- insert_element_array
- is_array_sorted
- largest_element_arr
- convertTheLinkList
- insert_singly_linkedlist
- reverse_singly_linklist
- mergeTwoSortedList
- pairwise_swap_linkedlist
- swap_two_nodes_linkedlist
- delete_node_linkedlist_without_head
- stack_using_array
- stack_using_array_simple
- stack_using_linkedlist
- check_balanced_parantheses
- two_stacks_using_single_array
- basicTreeImplementation
- create_bst
- count_nodes_bst
- count_leaf_various_degree_nodes_bst
- height_bst
- leftAndRightViewOfBinaryTree
- search_bst
- delete_node_bst
- second_largest_element_in_bst
- base_b_to_decimal_conversion
- bit_operations
- bit_swapping
- check_ith_bit_set
- clear_2_bits
- clear_all_even_bits
- count_set_bits_num
- decimal_to_base_b_conversion
- decimal_to_binary
- endian_conversion
- find_largest_power_of_2
- find_position_of_rightmost_set_bit
- find_unique_ele_in_arr_of_duplicates_with_single_unique_ele
- is_power_of_2
- nth_magic_num
- odd_even
- set_2_bits
- allTypeOfConstructor
- longestSubstringWithoutRepeat
- singletoneClass
- vectorMapSetList
- implementStringClass
- stackImplementationToConvertNumIntoBinary
- smartPointer
- mutex
- minOperation
- rotateLinkList
- To compile whole project
make all
- To compile examples present in single folder
make folder_name
For example,
make I_algorithms_1_maths
- To remove executables
make clean