Directories ¶ Show internal Expand all Path Synopsis datetime datetime2 set try example51_longest_substring_without_repetition example52_fruits_in_basket example53_3sum example54_power_of_n example55_permutation example56_find_substring example57_fibonacci example58_shortestpath_backtracking example59_find_items_in_list_to_make_sum example60_coins_count example61_all_path_in_matrix example62_joseph_problem example63_bitwise_operation example64_knapsack_problem example65_delete_all_nodes example66_prime_number.go example67_gcd example68_greater_than_n_by_2 example69_max_size_subsequent_items_in_array example70_max_profit_stock example71_rainwater_trapping_problem example72_bubblesort example73_insertion_sort example74_selection_sort example75_quick_sort example76_search_circular_sorted example77_book_allocation_min_of_max example78_subarray_of_given_sum example79_unique_in_window example80_path_exist_in_graph example81_graph_print_all_paths example82_heap_insert example84_DP1_fibonacci example85_DP2_stairs_path example86_min_rope_weight example87_graph_connected_graph example88_spiral_matrix example89_look_and_say_problem example90_minimum_edit_distance example91_rotational_cipher game/main try2 example100_heap_insert_delete example101_knight_move_25_fields_display_board example103_check_overlap_meeting_times example104_reverse_only_vowels example105_shortest_path_matrix example106_tree_sum_of_left_leaves example107_kth_largest_element_unsorted_array example108_heapify_heap_sort_order_of_n example109_tree_max_in_each_row_dfs example10Palindrome example110_hamming_distance example111_binary_tree_all_paths_upto_left_right_null example112_surrouded_regions_convert_from_O_to_X example113_binary_search_tree_from_preorder example114_closest_points_origin example115_1_complement example116_tabulation_fibonacci example117_minimum_cost_rope example118_find_median_of_running_streams example119_hand_of_straights_group_number_in_order_234_from_list example11PowerOfN example121_course_schedule_II example122_sum_leaf_nodes_binary_node example123_longest_increasing_sequence_len example124_merge_overlaps_intervals example125_max_sub_array_no_adjacent_house_robber_no_adjacent_house_rob example126_linked_list_make_duplicate_with_random_pointer example127_linked_list_swap_two_nodes example128_flip_game_list_of_two_consequitvie_plus_turned_to_minus example129_max_common_beginning_letters example12_stock_buy_sell_profit example130_binary_tree_ancestor_of_child example131_dijkstra_algorithm_sortest_path_graph example132_combination_sum__all_array_to_make_target example134_binary_number_with_alternate_bits example135_palindrome2 example136_target_subarrays_all_anyone_and_count example137_combination_sum-II_pick_unique_combination_sub_array example138_unique_subset_all example139_max_area_in_histogram example13_reverse_linkedList example140_univalued_binary_tree example141_shortest_flight example142_palindrome_only_alphanumeric example143_remove_duplicate_from_sorted_array example144_monotonic_either_increasing_or_decreasing_array example145_container_with_most_water example146_combination_sum3_all_unique_sub_array_of_window_3_total_of_9 example147_flipping_an_image_matrix_reverse_row_flip_bit example148_add_binary_string example149_product_of_array_excpet_one example14_1st_unique_char_index example150_coin_change_all_combination example151_flood_fill_flip_color example152_nqueen_all_solution_board example153_binary_tree_distribute_coins_in_all_leaf_min_steps example154_max_size_rectangle_in_binary_matrix example155_reconstruct_itinerary_flight_from_origin example156_fruits_in_basket example157_battleships_in_a_board_same_to_islands_but_do_it_in_1_pass example158_decoding_ways_count example159_binary_tree_tilt_delta_left_and_right_node example15_is_anagram example160_happy_number_square_each_digit_sum_it example161_most_common_word_except_banned_word example162_unique_emails example163_even_first_then_odd_in_array example164_is_tree_same example165_license_key_formatting_divide_string_with_k_size_and_put_hyphen example166_01_knapsack_grab_items_of_max_value_within_bag_capacity example167_generate_paranthesis example168_fill_sudoku example169_infix_postfix_prefix example16_prime_numbers example170_completeness_of_binary_tree example171_word_search_two_dimensional_array example172_frequency_sort example173_meeting_room2_total_meeting_rooms example174_word_ladder_1 example175_frog_jump example176_m_coloring_problem example177_circular_queue_using_array example178_queue_using_array example179_stack_using_array example17_gcd_lcm example180_flatten_queue example181_sliding_window_max_in_each_window example182_max_width_of_binary_tree example183_can_frog_jump_reach_to_end_of_river example184_largest_number_after_prepending_or_appending example185_clone_graph example186_palindrome_partitioning example187_house_robbe2_circular example188_create_binary_tree example189_convert_binary_tree_to_linked_list example18_tower_of_henoi example190_merge_muliptle_linkedList_in_sorted_order example191_sum_range_query_sum_of_given_indices example192_range_sum_query_2d example193_stack_min example194_rat_in_maze example195_ninja_training_max_points example196_binary_tree_all_nodes_count_max_node example197_right_view_binary_tree example198_task_scheduler_not_same_task_for_next_n_times example199_binary_tree_from_preorder_inorder example19_reverse_string example200_diameter_of_binary_tree example201_find_kth_permutation_for_n example202_top_bottom_view_binary_tree example203_jewels_stone example204_sort_linked_list example205_next_closet_time example206_sort_3_colors_0_1_2 example207_longest_subarray_with_equal_0_and_1_sub_contiguous_array example208_convert_binary_tree_dll_inorder example209_spiral_matrix_print example20_anagram_group example210_search_in_binary_search_tree example211_path_sum2_return_all_paths_to_leaf example212_find_all_missing_numbers example213_string_shifts example214_triangle_min_path example215_spiral_matrix2_generate_matrix example216_unique_morse_code example217_self_dividing_number example218_boats_to_save_people example219_Shortest_unsorted_contiguous_subarray example21_2sum_3sum example220_validate_paranthesis_asterics_will_be_paranthesis_empty example221_rod_cutting_problem_maximize_profit example222_burn_tree_total_time example223_array_partition_for_maximum_sum example224_walls_and_gates example225_leftmost_column_with_at_least_one_1_ladder_approach example226_3sum_all_unique_set example227_longest_common_sub_sequence_between_two_strings example228_bst_insert example229_find_common_characters example22_total_path_matrix example230_partition_labels example231_subarray_sum_equals_k example232_longest_common_subsequence_bottom_up_approach example233_shortest_superset_sequence example234_delete_node_from_binary_search_tree example235_sum_of_event_after_queries example236_min_domino_ratations example237_lru_cache example238_convert_int_to_roman example239_distinct_subsequences example23_joseph_problem example240_check_if_bst example241_floor_ceil_of_binary_search_tree example242_two_sum_BST example243_vertical_order_tree_traversal example244_start_print_pattern_example example245_error_recovery_channel_select example246_leader_in_array example247_longest_string_without_repeating_characters example248_add_two_numbers_linked_list_problem example249_restore_ip_address example24_palindrome_linkedlist example250_encode_decode_string example251_max_consecutive_number_count example252_max_repeated_subsequence_replacement example253_reorder_linked_list_one_begin_item_one_end_item example254_remove_nth_node_from_linkedlist_from_end example255_find_minimum_in_rotated_sorted_array example256_minimum_window_substring example257_merge_k_lists example258_inverse_binary_tree example259_validate_binary_search_tree example25_peak_number example260_kth_smallest_bst example261_binary_tree_maximum_pathsum example262_serialize_and_deserialize_binary_tree example263_trie_prefix_insert_search example26_subsets example27_permutation example28_nqueen_problem example2_recursion_ascending_order example30_display_array_in_reverse example31_tree_post_order example32_isSubtreeInTree example33_n_by_2_times_repeated_item example34_max_in_array_recursion example35backspace_delete example36_replace_dot_with_two_other_characters example37_kadens_algorithm_max_sub_array example38_item_index_first example39_tree_add example3_find_island example40_move_zero_to_end example41_alian_language_order example43_swap_tree example44_index_from_last example46_graph_print example47_greedy_assignment example48_trapped_rain_water example49_find_all_item_index_recurssion example4_power_of_2_check example50_max_depth_tree example51_find_first_bad_version example52_reverse_only_letters example53_graph_dfs example54_bubblesort.go example55_keypad_combination example56_symmetric_tree example57_paint_home_min_cost example58_graph_pre_post_numbers example59_insertion_sort example5Bitwise_numberOf1 example60_stairs_path example61_tree_path_sum example62_game_move_return_to_0 example63_balanced_str_count example64_graph_has_cycle example65_selection_sort example66_maze_beg_end_path_matrix example67_quick_sort example68_binary_search example69_maze_jump_problem example6ParanthesisOrder example71_convert_lower_case_no_library example72_has_cycle_indirected_graph example73_merge_sort example74_odd_first_then_even_linklist_nodes example75_collide_2_max_stones_show_remaining example76_balanced_binary_tree_from_array example77_graph_topological_order example78_search_infinite_sorted_arr example79_print_encoding example7_pascal_triangle example80_check_linklist_has_cycle example81_find_celebrety example82_coin_count_problem example83_fibonacci example84_sort_struct example85_graph_kosaraju_algorithm example86_search_circular_array example87_flood_fill_matrix_all_paths example88_merge_two_linked_list_sorted_order example89_intersection example8Fizzbuzz example90_tree_sum_between_left_right example91_book_pages_allocation_min_of_max example92_sub_arrays_of_target_sum example93_look_say_count_and_digit example94_window_slide_distinct_element example95_room_key example96_tree_traversal_BFS_row_level example97_target_sub_array_index example98_square_of_sorted_array example99_find_missing_numbers_between_0_N example9_factorial_trailing_zero Click to show internal directories. Click to hide internal directories.