codes

View on GitHub

All commonly asked and good codes.

.


..


static_int_cannot_be_used__for_structure.cpp

HackerRank_Funny_String_done_by_me_learn_the_trick.cpp

GFG_Implement_Queue_using_array.cpp

GFG_Leaders_in_an_array.cpp

hacker_rank_detection_of_cycle_in_linked_list.cpp

class_template.cpp

contructor_correct_concept.cpp

add_binary_numbers.cpp

student.sql

gfg_leaders_in_array_2.cpp

swapping_linked_list.cpp

activity_selection.cpp

hacker_rank_save_the_prisoner_correct_but_timeout_by_me.cpp

gfg_2_binarytodecimal.cpp

hackerrank_linked_list_question_best_solution_by_me_entry_at_end.cpp

hacker_rank_day_16_exception_handling_good.cpp

array_manupilation.cpp

GFG_Multiply_two_strings.cpp

GFG_Reverse_words_in_a_given_string.cpp

GFG_Finding_middle_element_in_a_linked_list.cpp

HackerRank_stack_maximum_element_good_concept_done_by_me.cpp

gfg_file_count.c

template.cpp

hacker_rank_save_the_prisoner_correct_by_me.cpp

sorting_of_string_length_wise.cpp

HackerRank_Queries_with_Fixed_Length_done_by_me_better_can_be_done.cpp

GFG_Print_the_Kth_Digit.cpp

hackerrank_linked_list_question_best_solution_by_me_merge_2_linked_list_in_ascending_order.cpp

operator_overloading_post_increment.cpp

imp_c++_concepts_part1.cpp

GFG_Second_Largest.cpp

edit.cpp

hackerrank_linked_list_question_best_solution_by_me_entry_at_beginning.cpp

static_int.cpp

Acccurate_DFS_graph_traversal_completely_done_by_me.cpp

hacker_rank_Minimum_Time_Required_Interview_Preparation_Kit_done_but_better_can_be_done_algorithm_not_good_mine.cpp

operator_overloading_pre_increment.cpp

BST_by_me_completetly_with_insert.cpp

hacker_rank_Sherlock_and_Squares_done_by_me.cpp

GFG_bfs_completely_done_by_me.cpp

GFG_perfect_DFS.cpp

lcs.cpp

GFG_Print_BST_elements_in_given_range.cpp

hacker_rank_day_18_palindrome_using_stack_and_queue_both_correct.cpp

GFG_Merge_two_strings_alternatively.cpp

hackerrank_linked_list_question_best_solution_by_me_delete_at_any_position.cpp

gfg_facing_sun.cpp

ascending_queue_min_element_is_popped_out.cpp

day_of_date_of_given_year(not working).cpp

GFG_duplicates_in_an_array.cpp

GFG_Inorder_Traversal_and_BST.cpp

hacker_rank_hoffman_only_decoding_done_me_as_asked_by_question.cpp

hacker_rank_Minimum_Distances_done_by_me.cpp

operator_in_derieved_class.cpp

linked_list_using_class.cpp

passing_objects_as_arguments.cpp

BST_degree_counter_completely_done_by_me.cpp

GFG_Check_for_subsequence.cpp

GFG_Implement_Queue_using_Linked_List.cpp

HackerRank_CamelCase_done_by_me.cpp

hacker_rank_Encryption_done_by_me.cpp

good_string_code_monk.cpp

hacker_rank_preorder_traversal_done_by_me_completely.cpp

Monk_Takes_a_Walk_Strings_code_monk.cpp

GFG_Height_of_Binary_Tree.cpp

function_in_proteced_part.cpp

GFG_check_if_tree_is_height_ba;anced_or_not.cpp

copy_constructor.cpp

GFG_Reverse_First_K_elements_of_Queue.cpp

GFG_min_max_in_array.cpp

Monk_being_monitor_code_monk.cpp

GFG_in_first_but_not_in_first.cpp

hacker_rank_insertion_of_node_in_double_linked_list.cpp

concept_of_static_and_constructor.cpp

gfg_armstrong.cpp

GFG_simplified_Delete_a_node_from_BST.cpp

hacker_rank_Angry_professsor_by_me.cpp

hacker_rank_luck_balance.cpp

bubble_sort_increasing.txt

GFG_URLify_a_given_string.cpp

hacker_rank_interface_day_19.cpp

GFG_first_non_repeating_element.cpp

playing_wid_operator.cpp

GFG_no_of_occurences_in_a_array.cpp

gfg_first_number_to_repeat_exactlyK_times.cpp

GFG_Print_Matrix_in_snake_Pattern.cpp

Monk_and_Suffix_Sort_code_monk.cpp

c++_core_concept.cpp

diamond_inheritance_function_ambiquity.cpp

hacker_rank_mysql.sql

hacker_rank_Non-Divisible_Subset.cpp

hacker_rank_height_of_binary_search_tree_correct_done_by_me.cpp

GFG_Find_length_of_Loop.cpp

class_template_wid_2_template_type.cpp

hacker_rank_Strong_Password_done_by_me.cpp

hacker_rank_height_of_binary_tree_correct_done_by_me.cpp

hacker_rank_day_18_palindrome_using_stack_and_queue_both.cpp

function_overloading.cpp

HackerRank_Alternating_Characters_done_by_me.cpp

done_by__me_completely_stl_pair.cpp

ruckals.cpp

BST_by_me_completetly.cpp

hacker_rank_service_road_done_by_me.cpp

multilevel_wid_same_name_function_without_virtual.cpp

HackerRank_Truck_Tour_done_by_me_completely.cpp

search_in_BST.cpp

DFS_graph_traversal_completely_done_by_me_with_addtional_check.cpp

some_concept_of_diamond_inheritance.cpp

constructor_concept.cpp

HackerRank_Matrix_Layer_Rotation_done_by_me_completely.cpp

Acccurate_DFS_graph_traversal_completely_done_by_me_with_udemy_given_test_case.cpp

GFG__Reverse_a_linked_list.cpp

HackerRank_in_a_String!_done_by_me.cpp

template_fact.cpp

GFG_Remove_duplicate_element_from_sorted_Linked_List.cpp

heigheight_BST_completely_done_by_me.cpp

GFG_alternatively_merge_2_string.cpp

djkstra.cpp

strassen_matrix.cpp

complex_inhheritance-concepts.cpp

file_handling.cpp

gfg_pair_cbe.cpp

pq.cpp

hackerrank_linked_list_question_best_solution_by_me_entry_at_any_position.cpp

GFG_Max_length_palindrome_in_linked_list.cpp

imploop3.cpp

HackerRank_Almost_Sorted_done_by_me_completely.cpp

GFG_Nearest_multiple_of_10_strings.cpp

constructor_ambiquity.cpp

destructor.cpp

constructor_of_base_class_gets_intialised_before_constructor_of_derieved_class.cpp

hacker_rank_Viral_Advertising_by_me.cpp

diamond_inheritance_ambiquity_WITHOUT_VIRTUAL_BASE_CLASS.cpp

hacker_rank_Beautiful_Days_at_the_Movies_done_by_me.cpp

GFG_balanced_parenthesis.cpp

hacker_rank_Bigger_is_Greater.cpp

HackerRank_Pangrams_done_by_me.cpp

GFG_Equilibrium_point.cpp

total_no_of_nodes_in_a_BST.cpp

GFG_delete_n_node_after_m_nodes.cpp

bfs.cpp

GFG_done_by_me_Detect_cycle_in_an_undirected_graph.cpp

BST_with_delete_function_completely_done_by_me.cpp

GFG_one_array_subset_of_other_array.cpp

volume_lab4.cpp

hacker_rank_Modified_Lisa_s_Workbook_done_by_me.cpp

imploop2.cpp

Frequencies_of_Limited_Range_Array_Elements.cpp

GFG_Closest_Number.cpp

operator_overloading_2.cpp

hacker_rank_abstract_class.cpp

set.cpp

hacker_rank_Designer_PDF_Viewer_by_me.cpp

GFG_group_anagram_together.cpp

decimal_to_binary_shorter_code_and_more_correct.cpp

hacker_rank_climbingLeaderboard_done_by_me_but_can_be_better.cpp

contructor_input_concept.cpp

ic.cpp

FINAL_EDITING.cpp

dd.cpp

last.cpp

GFG_Activity_Selection_completely_done_by_me.cpp

GFG_intersection_of_2_linked_list.cpp

GFG_Check_if_Linked_List_is_Palindrome.cpp

simple_hierarchial_inheritance_with_different_function_name.cpp

namespace_with_in_namespace.cpp

build_heap_and_heapify_completely_done_by_me.cpp

GFG2_Search_a_node_in_BST.cpp

gfg_2nd_max_in_array.cpp

template_sort_function.cpp

addition_of_classes.cpp

GFG_Fractional_Knapsack.cpp

ran.cpp

picking_a_number.cpp

gfg armstrong.cpp

GFG_floor_in_a_sorted_array.cpp

GFG_connect_nodes_in_same_level.cpp

FINAL_cpp_project.cpp

GFG_Count_BST_nodes_that_lie_in_a_given_range.cpp

GFG_Nth_node_from_end_of_linked_list.cpp

hackerrank_linked_list_question_best_solution_by_me_delte_at_a_index_given_from_last_node.cpp

binary.cpp

GFG_zig_zag_traversal.cpp

gfg_jumping.cpp

namespace.cpp

sort.cpp

GFG c++.cpp

operator_overloading.cpp

GFG_Anagram_Palindrome.cpp

GFG_factorial_using_recursion_comletely_done_by_me.cpp

GFG_Closest_Neighbor_in_BST.cpp

operator_overloading_using_friend__function.cpp

bellmanford.cpp

operator_lab.txt

inheritance_1.cpp

hacker_rank_Jumping_on_the_Clouds_Revisited.cpp

hacker_rank_Cavity_Map_done_best_by_me.cpp

hacker_rank_Cut_the_sticks_done_by_me.cpp

hacker_rank_Taum_and_B_day_done_by_me.cpp

different_class_objects_using_friend_function.cpp

grid_not_solved.cpp

search_a_element_in_tree.cpp

GFG_sum_parent_child.cpp

GFG__Binary_Heap_Operations.cpp

GFG_intersection_in_linked_list.cpp

GFG_Circular_Linked_List_Traversal.cpp

hacker_rank_linked_list.cpp

GFG_grouping_of_odd_indexed_and_even_indexed_nodes.cpp

GFG_Extract_Maximum.cpp

GFG_square_root.cpp

DFS_graph_traversal_completely_done_by_me.cpp

Gfg_Majority_Element.cpp

unary_operator_overloading.cpp

recur_practice.cpp

count_distinct_pair.cpp

HackerRank_Beautiful_Binary_String_done_by_me_completely.cpp

GFG_Insert_a_node_in_a_BST.cpp

alt.cpp

dfs.cpp

hacker_rank_The_Hurdl_Race_by_me.cpp

prasql1.sql

looptofindinalinked_list_double_linked_list_circularlinkedlist.cpp

LAST_2.cpp

file_list.cpp

file_list .cpp

hacker_rank_postorder_traversal_done_by_me_completely.cpp

README.md

GFG_Sum_of_Digit_is_Pallindrome_or_not.cpp

GFG_Stack_using_two_queues.cpp

node_counter_completely_done_by_me.cpp

merge_sort.cpp

multilevel_wid_same_name_function_with_virtual.cpp

GFG_Search_a_node_in_BST.cpp

namespace_header.cpp

overloading_[]_operator.cpp

GFG_level_order_traversal_each_level_separated_by_special_character.cpp

github.cpp

decimal_to_binary.cpp

GFG_c++.cpp

forming_magic_square.cpp

hacker_rank_interview_Jumping_on_the_Clouds.cpp

hacker_rank_day_14_scope.cpp

LAST_3.cpp

HackerRank_Gemstones_done_by_me_completely.cpp

hacker_rank_Equalize_the_Array_done_by_me.cpp

hacker_rank_anagrams_strings.cpp

unary_operator_overloading_using_it_as_member_function.cpp

GFG_union_of_2_linked_list.cpp

2D_Array_hour_glass.cpp

tree_leaf_count.cpp

GFG_Binary_number_to_decimal_number.cpp

Acccurate_dijkstra_s_algorithm_completely_done_by_me_with_udemy_given_test_case.cpp

hacker_rank_Halloween_Sale_done_by_me.cpp

balance_tree_1.cpp

lexographical_sorting_of_string.cpp

adding_of_2_objects_of_same_class.cpp

operator_overloading_using_friend_function.cpp

diamond_inheritance_function_ambiquity_wid_virtual_func.cpp

max_no_of_coins.cpp

GFG_my_dfs.cpp

GFG_add_node_to_a_double_linked_list.cpp

GFG_min_distnace_between_2_nos.cpp

HackerRank_Weighted_Uniform_Strings!_done_by_me_but_do_using_hashing.cpp

adjacency_list.cpp

bubble.cpp

hacker_rank_Pairs_find_no_of_pairs_with_given_sum_from_a_given_array_Interview_Preparation_Kit.cpp

GFG_Delete_node_in_Doubly_Linked_List.cpp

operator_overloadinng.cpp

fil_rename_prog.c

virtual_base_class.cpp

binary_to_decimal.cpp

dynamic_memory_allocation.cpp

hacker_rank_lowest_common_node_done_by_me.cpp

descending_queue_largest_element_is_popped_out.cpp

GFG_Perfect_Numbers.cpp

hacker_rank_detect_cycle_in_a_linked_list.cpp

0-1_knapsack.cpp

circular_queue.cpp

c++_good_concepts.cpp

GFG_Minimum_distance_between_two_numbers.cpp

copy_constructor_user_defined_copy_constructor.cpp

GFG_Delete_a_node_from_BST.cpp

balanced_brackets.cpp

amount_of_water_in_buildings.cpp

exception_halding.cpp

_config.yml

hackerrank_linked_list_question_best_solution_by_me_compare_of_2_linked_list.cpp

diamond_inheritance.cpp

GFG_Save_Ironman.cpp

function_name_same_in_base_and_derieved_class.cpp

hacker_rank_merge_of_2_linked_list.cpp

leaf_counter_BST_completely_done_by_me.cpp

HackerRank_Larry_s_Array_done_by_me_completely.cpp

balanced_brackets_2.cpp

maximum_path_sum_one_leaf_to_other.cpp

addition_of_polynomial_linked_list.cpp

TOH.cpp

virtual_function.cpp

gfg reverse words in a string .cpp

Heap_sort_build_heap_and_heapify_completely_done_by_me_with-delete.cpp

GFG_Remove_duplicates_from_an_unsorted_linked_list.cpp

hacker_rank_day_17_difficult_exception_handling.cpp

maximize_no_of_toys.cpp

ff.cpp

GFG_missing_number.cpp

repre_graph.cpp

GFG_Split_a_Circular_Linked_List_into_two_halves.cpp

hacker_rank_Cavity_Map_done_by_me.cpp

gfg_reverse_words_in_a_string_.cpp

hacker_rank_special_string.cpp

GFG_my_dfs_good_correct.cpp

hacker_rank_height_of_tree_done_by_me_completely.cpp

lexographical_sorting_of_student_data_sorting_from_roll_no_and_roll_no_in_string_format.cpp

template_sort_fun.cpp

reverse_words.cpp

correct_static_int_with_destructor_concept.cpp

this_pointer.cpp

array_as_argument.cpp

GFG_Minimum_Spanning_Tree_compeletely_done_by_me.cpp

dfs_recursive_solution.cpp

virtual_function2.cpp

sparse_arrays.cpp

hacker_rank_array_left_rotation.cpp

finding_substring_in_string.cpp

HackerRank_Ice_Cream_Parlor_done_by_me_completely.cpp

hacker_rank_Circular_Array_Rotation.cpp

Monk_and_Nice_Strings_code_monk.cpp

hacker_rank_Max_Min.cpp

HackerRank_Absolute_Permutation_done_by_me_completely_by_stl.cpp

GFG_Largest_number_with_given_sum.cpp

hackerrank_linked_list_question_best_solution_by_me_delete_duplicate_node_in_a_sorted_linked_list.cpp

final_editing_2.cpp

GFG_correction_needed_bfs.cpp

balanced_forest_hacker_rank_3.cpp

GFG_done_by_me_Detect_cycle_in_a_directed_graph.cpp

hackerrank_linked_list_question_best_solution_by_me_reverse_printing.cpp

hacker_rank_binary_search_tree_insertion.cpp

HackerRank_Big_Sorting_done_by_me_completely.cpp

GFG_Heap_Sort.cpp

trapping_rainwater.cpp

diamond_inheritance_ambiquity.cpp

GFG_equilibrium_point_in_array.cpp

GFG_key_pair_to_check_if_pairs_are_present_that_are_equal_to_given_num.cpp

gfg_anagram.cpp

hacker_rank_Mars_Exploration_done_by_me.cpp

BFS_graph_traversal_compltely_done_by_me.cpp

GFG_Print_adjacency_list.cpp

hacker_rank_check_if_tree_is_BST_done_by_me_working_but_better_can_be_done.cpp

GFG_N_meetings_in_one_room_completely_done_by_me.cpp

huffman.cpp

pre_and_post_operator.cpp

practice.cpp

max_no_of_meetings_and _print_order.cpp

GFG_Facing_the_sun.cpp

hacker_rank_The_Time_in_Words_done_by_me.cpp

codechef_ATM.cpp

hacker_rank_Beautiful_Triplets_done_by_me.cpp

object_on_left_and_operator_on_right.cpp

GFG_bfs.cpp

knapsack_using_dp.cpp

operator_overloading_but_saving_in_another_object_of_same_class.cpp

balanced_forest_hacker_rank_2.cpp

electronics_shop.cpp

GFG_Remove_every_k_th_node.cpp

hacker_rank_factorial_of_large_number_done_by_me.cpp

hacker_rank_Triple_sum_Interview_Preparation_Kit_done_but_better_can_be_done.cpp

largest_number_with_given_sum.cpp

hacker_rank_Modified_Kaprekar_Numbers_done_by_me.cpp

GFG_Extract_Maximum_from_string.cpp

GFG_Implementing_Dijkstra_Set_1_Adjacency_Matrix_done_by_me.cpp

find_digits.cpp

GFG_Job_Sequencing_Problem_completely_done_by_me.cpp

GFG_Sum_of_leaf_nodes_in_BST.cpp

climbing_the_leader_board.cpp

sorting_of_binary_strings.cpp

gfg_rename_file_name.c

HackerRank_Bigger_is_Greater_done_by_me_completely_by_stl.cpp

GFG_completely_done_by_me_Minimum_number_of_Coins.cpp

GFG_Implement_two_stacks_in_an_array.cpp

GFG_winner_of+election_count_number_of_times_a_string_repeated.cpp

hacker_rank_generic_function_day_21.cpp

hacker_rank_levelorder_traversal.cpp

hacker_rank_queue_using_2_stack_done_by_me.cpp

copy_constructor_dynamic.cpp

lift_code_iiit.cpp

hacker_rank_Chocolate_Feast_done_by_me.cpp

hacker_rank_build_heap_and_heapify_completely_done_by_me_with_delete.cpp

news.cpp

sort_array_0s_N_1s.cpp

krushkals_algorithm_completely_done_by_me.cpp

lab6.cpp

height_of_tree.cpp

base_pointer_concept.cpp

build_heap_and_heapify_completely_done_by_me_with-delete.cpp

hacker_rank_day_26_nested_logic_library_fine.cpp

GFG_Height_of_Heap.cpp

operator_lab.cpp

abstractclass.cpp

final_file.c

GFG_Merge_two_BST__s.cpp

hacker_rank_Greedy_Florist.cpp

hacker_rank_reversing_of_double_linked_list_changing_all_next_and_prev-node_adresses.cpp

GFG_remove_loop_from_linked_list.cpp

hacker_rank_Sequence_Equationr_by_me.cpp

hacker_rank_Repeated_String_a_given_string_is_repeated_infinite_time_we_need_to_find_no_of_a_in_a_given_length.cpp

hacker_rank_queue_using_2_stack.cpp

left_shift.cpp

GFG_DFS.cpp

HackerRank_The_Grid_Search_done_by_me.cpp

hacker_rank_Mark_and_Toys_done_by_me.cpp

object_array_dynamic.cpp

GFG_Factorial.cpp

GFG_Insert_in_Sorted_way_in_a_Sorted_DLL.cpp

GFG_Subarray_with_0_sum.cpp

simple_hierarchial_inheritance_with_same_function_name.cpp

balanced_forest_hacker_rank_4.cpp

area_correct_lab4.cpp

namespace_header.h

GFG_____Delete_without_head_pointer.cpp

namespace_header_including_file.cpp

_and_sizeof_operator_cannot_be-used.cpp

GFG_sorting_elements_by_frequency_in_array.cpp

dictionary.cpp

hacker_rank_Utopian_Tree_by_me.cpp

GFG_DFS_LOOP.cpp

imp_c++_concepts_part_string_imp_concept.cpp

reference_varaiable.cpp

hacker_rank_simple_but_modified_bubble_sort_to_count_no._of_swaps.cpp

GFG_leaf_counter.cpp

hacker_rank_inorder_traversal_done_by_me_completely.cpp

dis_joint_set_operations_completely_done_by_me.cpp

hacker_rank_Beautiful_Append_and_Deletes_done_by_me.cpp

gfg_array_clockwise_rotation.cpp

hacker_rank_height_of_binary_search_tree_correct_done_by_me_day_day_22.cpp

destructor_call__by_user.cpp

Hacker_rank_queen.cpp

GFG_k_largest_elements.cpp

balanced_forest_hacker_rank.cpp

bubble_sort.cpp

gfg_factorial2.cpp

print_adjancency_list.cpp

prims_algorithm_completely_done_by_me.cpp

birthdaycake.cpp

find_missing_and_repeating.cpp

GFG_dfs_completely_done_by_me.cpp

GFG_nuts_N_bolts.cpp

GFG_Level_order_traversal_Line_by_Line.cpp

diameter_of_tree.cpp

With ❤️ From BabaYaga