From da29ed03b17fc1691e8275ee3917ffa8183d261a Mon Sep 17 00:00:00 2001 From: ff Date: Sat, 22 Jan 2022 13:27:08 +0800 Subject: [PATCH] refactor --- README.md | 146 +----------------- bak.README.md | 145 +++++++++++++++++ {src => solutions}/0001_two_sum/twosum.go | 0 .../0001_two_sum/twosum_test.go | 0 .../0002_add_two_numbers/add_two_numbers.go | 0 .../add_two_numbers_test.go | 0 ..._substring_without_repeating_characters.go | 0 ...tring_without_repeating_characters_test.go | 0 .../0004_median_of_two_sorted_arrays/motsa.go | 0 .../motsa_test.go | 0 .../0007_reverse_integer/reverse_integer.go | 0 .../reverse_integer_test.go | 0 .../palindrome_number.go | 0 .../palindrome_number_test.go | 0 .../container_with_most_water.go | 0 .../container_with_most_water_test.go | 0 .../0013_roman_to_integer/roman_to_integer.go | 0 .../roman_to_integer_test.go | 0 .../0014_longest_common_prefix/lcp.go | 0 .../0014_longest_common_prefix/lcp_test.go | 0 {src => solutions}/0015_3Sum/3sum.go | 0 {src => solutions}/0015_3Sum/3sum_test.go | 0 .../letter_combination_of_phone_number.go | 0 ...letter_combination_of_phone_number_test.go | 0 .../remove_nth_node_from_end_of_list.go | 0 .../remove_nth_node_from_end_of_list_test.go | 0 .../valid_parentheses.go | 0 .../valid_parentheses_test.go | 0 .../mergeTwoLists.go | 0 .../mergeTwoLists_test.go | 0 .../0023_merge_k_sorted_lists/mksl.go | 0 .../0023_merge_k_sorted_lists/mksl_test.go | 0 .../swap_nodes_in_pairs.go | 0 .../swap_nodes_in_pairs_test.go | 0 .../reverse_node_k_group.go | 0 .../reverse_node_k_group_test.go | 0 .../rdfsa.go | 0 .../rdfsa_test.go | 0 .../0027_remove_element/remove_element.go | 0 .../remove_element_test.go | 0 .../0028_implement_strstr/implement_strstr.go | 0 .../implement_strstr_test.go | 0 .../search_in_rotated_sorted_array.go | 0 .../search_in_rotated_sorted_array_test.go | 0 ...ast_position_of_element_in_sorted_array.go | 0 ...osition_of_element_in_sorted_array_test.go | 0 .../search_insert_position.go | 0 .../search_insert_position_test.go | 0 .../0048_rotate_image/rotate_image.go | 0 .../0048_rotate_image/rotate_image_test.go | 0 .../0053_maximum_subarray/maximum_subarray.go | 0 .../maximum_subarray_test.go | 0 .../len_of_last_word.go | 0 .../len_of_last_word_test.go | 0 .../0061_rotate_list/rotate_list.go | 0 .../0061_rotate_list/rotate_list_test.go | 0 .../0062_unique_paths/unique_paths.go | 0 .../0062_unique_paths/unique_paths_test.go | 0 .../0063_unique_paths_2/unique_paths2.go | 0 .../0063_unique_paths_2/unique_paths2_test.go | 0 .../0064_minimum_path_sum/minimum_path_sum.go | 0 .../minimum_path_sum_test.go | 0 {src => solutions}/0066_plus_one/plus_one.go | 0 .../0066_plus_one/plus_one_test.go | 0 .../0067_add_binary/add_binary.go | 0 .../0067_add_binary/add_binary_test.go | 0 {src => solutions}/0069_sqrtx/sqrtx.go | 0 {src => solutions}/0069_sqrtx/sqrtx_test.go | 0 .../0070_climbing_stairs/climbing_stairs.go | 0 .../climbing_stairs_test.go | 0 .../0075_sort_colors/sort_colors.go | 0 .../0075_sort_colors/sort_colors_test.go | 0 .../minimum_window_substring.go | 0 .../minimum_window_substring_test.go | 0 .../0077_combinations/combinations.go | 0 .../0077_combinations/combinations_test.go | 0 .../0079_word_search/word_search.go | 0 .../0079_word_search/word_search_test.go | 0 .../rdfsa2.go | 0 .../rdfsa2_test.go | 0 .../rdfsl.go | 0 .../rdfsl_test.go | 0 .../rdfsl.go | 0 .../rdfsl_test.go | 0 .../0086_partition_list/partition_list.go | 0 .../partition_list_test.go | 0 .../0088_merge_sorted_array/msa.go | 0 .../0088_merge_sorted_array/msa_test.go | 0 .../reverse_linked_list2.go | 0 .../reverse_linked_list2_test.go | 0 .../binary_tree_inorder_traversal.go | 0 .../binary_tree_inorder_traversal_test.go | 0 .../0100_same_tree/same_tree.go | 0 .../0100_same_tree/same_tree_test.go | 0 .../0101_symmetric_tree/symmetric_tree.go | 0 .../symmetric_tree_test.go | 0 .../binary_tree_level_order_traversal.go | 0 .../binary_tree_level_order_traversal_test.go | 0 .../maxdobt.go | 0 .../maxdobt_test.go | 0 .../binary_tree_level_order_traversal2.go | 0 ...binary_tree_level_order_traversal2_test.go | 0 .../minimum_depth_of_binary_tree.go | 0 .../minimum_depth_of_binary_tree_test.go | 0 {src => solutions}/0112_path_sum/path_sum.go | 0 .../0112_path_sum/path_sum_test.go | 0 {src => solutions}/0120_triangle/triangle.go | 0 .../0120_triangle/triangle_test.go | 0 .../maxprofit.go | 0 .../maxprofit_test.go | 0 .../maxprofit.go | 0 .../maxprofit_test.go | 0 .../0125_valid_palindrome/valid_palindrome.go | 0 .../valid_palindrome_test.go | 0 .../0136_single_number/single_number.go | 0 .../0136_single_number/single_number_test.go | 0 .../binary_tree_preorder_traversal.go | 0 .../binary_tree_preorder_traversal_test.go | 0 .../evaluate_reverse_polish_notation.go | 0 .../evaluate_reverse_polish_notation_test.go | 0 .../fmirsa.go | 0 .../fmirsa_test.go | 0 .../0155_min_stack/min_stack.go | 0 .../0155_min_stack/min_stack_test.go | 0 .../compare_version_numbers.go | 0 .../compare_version_numbers_test.go | 0 {src => solutions}/0167_two_sum2/two_sum2.go | 0 .../0167_two_sum2/two_sum2_test.go | 0 {src => solutions}/0179_largest_number/ln.go | 0 .../0179_largest_number/ln_test.go | 0 .../0198_house_robber/house_robber.go | 0 .../0198_house_robber/house_robber_test.go | 0 .../0200_number_of_island/number_of_island.go | 0 .../number_of_island_test.go | 0 .../remove_linked_list_elements.go | 0 .../remove_linked_list_elements_test.go | 0 .../reverse_linked_list.go | 0 .../reverse_linked_list_test.go | 0 .../impltrie.go | 0 .../impltrie_test.go | 0 .../minimum_size_subarray_sum.go | 0 .../minimum_size_subarray_sum_test.go | 0 .../add_and_search_word.go | 0 .../add_and_search_word_test.go | 0 .../kthleiaa.go | 0 .../kthleiaa_test.go | 0 .../contains_duplicate.go | 0 .../contains_duplicate_test.go | 0 .../contains_duplicate_2.go | 0 .../contains_duplicate_2_test.go | 0 .../invert_binary_tree.go | 0 .../invert_binary_tree_test.go | 0 .../lcaoabst.go | 0 .../lcaoabst_test.go | 0 .../lca.go | 0 .../lca_test.go | 0 .../dniall.go | 2 +- .../dniall_test.go | 0 .../binary_tree_paths.go | 0 .../binary_tree_paths_test.go | 0 .../0258_add_digits/add_digits.go | 0 .../0258_add_digits/add_digits_test.go | 0 .../0283_move_zeroes/move_zeroes.go | 0 .../0283_move_zeroes/move_zeroes2.go | 0 .../0283_move_zeroes/move_zeroes2_test.go | 0 .../0283_move_zeroes/move_zeroes_test.go | 0 .../lis.go | 0 .../lis_test.go | 0 .../0303_range_sum_query/rsqim.go | 0 .../0303_range_sum_query/rsqim_test.go | 0 .../range_sum_query_mut.go | 0 .../range_sum_query_mut_test.go | 0 .../odd_even_linked_list.go | 0 .../odd_even_linked_list_test.go | 0 .../0343_integer_break/integer_break.go | 0 .../0343_integer_break/integer_break_test.go | 0 .../0344_reverse_string/reverse_string.go | 0 .../reverse_string_test.go | 0 .../reverse_vowels.go | 0 .../reverse_vowels_test.go | 0 .../0347_top_k_frequent_elements/topkfe.go | 0 .../topkfe_test.go | 0 .../intersection_of_two_arrays.go | 0 .../intersection_of_two_arrays_test.go | 0 .../intersection_of_two_arrays2.go | 0 .../intersection_of_two_arrays2_test.go | 0 .../wiggle_subsequence.go | 0 .../wiggle_subsequence_test.go | 0 .../0392_is_subsequence/is_subsequence.go | 0 .../is_subsequence_test.go | 0 .../sum_of_left_leaves.go | 0 .../sum_of_left_leaves_test.go | 0 .../partition_equal_subset_sum.go | 0 .../partition_equal_subset_sum_test.go | 0 .../dp_solution.go | 0 .../greedy_solution.go | 0 .../interval.go | 0 .../solution_test.go | 0 .../0437_path_sum_3/path_sum_3.go | 0 .../0437_path_sum_3/path_sum_3_test.go | 0 .../all_anagrams_in_a_string.go | 0 .../all_anagrams_in_a_string_test.go | 0 .../number_of_boomerangs.go | 0 .../number_of_boomerangs_test.go | 0 {src => solutions}/0454_4sum2/4sum2.go | 0 {src => solutions}/0454_4sum2/4sum2_test.go | 0 .../0455_assign_cookies/assign_cookies.go | 0 .../assign_cookies_test.go | 0 .../reverse_words_in_a_string_3.go | 0 .../reverse_words_in_a_string_3_test.go | 0 .../lcis.go | 0 .../lcis_test.go | 0 .../0677_map_sum_pairs/map_sum_pairs.go | 0 .../0677_map_sum_pairs/map_sum_pairs_test.go | 0 .../0704_binary_search/binary_search.go | 0 .../0704_binary_search/binary_search_test.go | 0 .../spltk.go | 0 .../spltk_test.go | 0 .../1bitand2bitc.go | 0 .../1bitand2bitc_test.go | 0 .../self_dividing_numbers.go | 0 .../self_dividing_numbers_test.go | 0 .../0735_asteroid_collision/ac.go | 0 .../0735_asteroid_collision/ac_test.go | 0 ...largest_number_at_least_twice_of_others.go | 0 ...st_number_at_least_twice_of_others_test.go | 0 .../leaf_similar_trees.go | 0 .../leaf_similar_trees_test.go | 0 .../remove_outmost_parentheses.go | 0 .../remove_outmost_parentheses_test.go | 0 {src => solutions}/148_Sort_List/sortlist.go | 0 .../148_Sort_List/sortlist_test.go | 0 .../304_Range_Sum_Query_2D/rsq.go | 0 .../304_Range_Sum_Query_2D/rsq_test.go | 0 {src => solutions}/README.md | 4 +- utils/maxint_test.go | 7 + 236 files changed, 156 insertions(+), 148 deletions(-) mode change 100644 => 120000 README.md create mode 100644 bak.README.md rename {src => solutions}/0001_two_sum/twosum.go (100%) rename {src => solutions}/0001_two_sum/twosum_test.go (100%) rename {src => solutions}/0002_add_two_numbers/add_two_numbers.go (100%) rename {src => solutions}/0002_add_two_numbers/add_two_numbers_test.go (100%) rename {src => solutions}/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go (100%) rename {src => solutions}/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go (100%) rename {src => solutions}/0004_median_of_two_sorted_arrays/motsa.go (100%) rename {src => solutions}/0004_median_of_two_sorted_arrays/motsa_test.go (100%) rename {src => solutions}/0007_reverse_integer/reverse_integer.go (100%) rename {src => solutions}/0007_reverse_integer/reverse_integer_test.go (100%) rename {src => solutions}/0009_palindrome_number/palindrome_number.go (100%) rename {src => solutions}/0009_palindrome_number/palindrome_number_test.go (100%) rename {src => solutions}/0011_container_with_most_water/container_with_most_water.go (100%) rename {src => solutions}/0011_container_with_most_water/container_with_most_water_test.go (100%) rename {src => solutions}/0013_roman_to_integer/roman_to_integer.go (100%) rename {src => solutions}/0013_roman_to_integer/roman_to_integer_test.go (100%) rename {src => solutions}/0014_longest_common_prefix/lcp.go (100%) rename {src => solutions}/0014_longest_common_prefix/lcp_test.go (100%) rename {src => solutions}/0015_3Sum/3sum.go (100%) rename {src => solutions}/0015_3Sum/3sum_test.go (100%) rename {src => solutions}/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go (100%) rename {src => solutions}/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go (100%) rename {src => solutions}/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go (100%) rename {src => solutions}/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go (100%) rename {src => solutions}/0020_valid_parentheses/valid_parentheses.go (100%) rename {src => solutions}/0020_valid_parentheses/valid_parentheses_test.go (100%) rename {src => solutions}/0021_merge_two_sorted_lists/mergeTwoLists.go (100%) rename {src => solutions}/0021_merge_two_sorted_lists/mergeTwoLists_test.go (100%) rename {src => solutions}/0023_merge_k_sorted_lists/mksl.go (100%) rename {src => solutions}/0023_merge_k_sorted_lists/mksl_test.go (100%) rename {src => solutions}/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go (100%) rename {src => solutions}/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go (100%) rename {src => solutions}/0025_reverse_nodes_in_k_group/reverse_node_k_group.go (100%) rename {src => solutions}/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go (100%) rename {src => solutions}/0026_remove_duplicates_from_sorted_array/rdfsa.go (100%) rename {src => solutions}/0026_remove_duplicates_from_sorted_array/rdfsa_test.go (100%) rename {src => solutions}/0027_remove_element/remove_element.go (100%) rename {src => solutions}/0027_remove_element/remove_element_test.go (100%) rename {src => solutions}/0028_implement_strstr/implement_strstr.go (100%) rename {src => solutions}/0028_implement_strstr/implement_strstr_test.go (100%) rename {src => solutions}/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go (100%) rename {src => solutions}/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go (100%) rename {src => solutions}/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go (100%) rename {src => solutions}/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array_test.go (100%) rename {src => solutions}/0035_search_insert_position/search_insert_position.go (100%) rename {src => solutions}/0035_search_insert_position/search_insert_position_test.go (100%) rename {src => solutions}/0048_rotate_image/rotate_image.go (100%) rename {src => solutions}/0048_rotate_image/rotate_image_test.go (100%) rename {src => solutions}/0053_maximum_subarray/maximum_subarray.go (100%) rename {src => solutions}/0053_maximum_subarray/maximum_subarray_test.go (100%) rename {src => solutions}/0058_length_of_last_word/len_of_last_word.go (100%) rename {src => solutions}/0058_length_of_last_word/len_of_last_word_test.go (100%) rename {src => solutions}/0061_rotate_list/rotate_list.go (100%) rename {src => solutions}/0061_rotate_list/rotate_list_test.go (100%) rename {src => solutions}/0062_unique_paths/unique_paths.go (100%) rename {src => solutions}/0062_unique_paths/unique_paths_test.go (100%) rename {src => solutions}/0063_unique_paths_2/unique_paths2.go (100%) rename {src => solutions}/0063_unique_paths_2/unique_paths2_test.go (100%) rename {src => solutions}/0064_minimum_path_sum/minimum_path_sum.go (100%) rename {src => solutions}/0064_minimum_path_sum/minimum_path_sum_test.go (100%) rename {src => solutions}/0066_plus_one/plus_one.go (100%) rename {src => solutions}/0066_plus_one/plus_one_test.go (100%) rename {src => solutions}/0067_add_binary/add_binary.go (100%) rename {src => solutions}/0067_add_binary/add_binary_test.go (100%) rename {src => solutions}/0069_sqrtx/sqrtx.go (100%) rename {src => solutions}/0069_sqrtx/sqrtx_test.go (100%) rename {src => solutions}/0070_climbing_stairs/climbing_stairs.go (100%) rename {src => solutions}/0070_climbing_stairs/climbing_stairs_test.go (100%) rename {src => solutions}/0075_sort_colors/sort_colors.go (100%) rename {src => solutions}/0075_sort_colors/sort_colors_test.go (100%) rename {src => solutions}/0076_minimum_window_substring/minimum_window_substring.go (100%) rename {src => solutions}/0076_minimum_window_substring/minimum_window_substring_test.go (100%) rename {src => solutions}/0077_combinations/combinations.go (100%) rename {src => solutions}/0077_combinations/combinations_test.go (100%) rename {src => solutions}/0079_word_search/word_search.go (100%) rename {src => solutions}/0079_word_search/word_search_test.go (100%) rename {src => solutions}/0080_remove_duplicates_from_sorted_array2/rdfsa2.go (100%) rename {src => solutions}/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go (100%) rename {src => solutions}/0082_remove_duplicates_from_sorted_list_2/rdfsl.go (100%) rename {src => solutions}/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go (100%) rename {src => solutions}/0083_remove_duplicates_from_sorted_list/rdfsl.go (100%) rename {src => solutions}/0083_remove_duplicates_from_sorted_list/rdfsl_test.go (100%) rename {src => solutions}/0086_partition_list/partition_list.go (100%) rename {src => solutions}/0086_partition_list/partition_list_test.go (100%) rename {src => solutions}/0088_merge_sorted_array/msa.go (100%) rename {src => solutions}/0088_merge_sorted_array/msa_test.go (100%) rename {src => solutions}/0092_reverse_linked_list_2/reverse_linked_list2.go (100%) rename {src => solutions}/0092_reverse_linked_list_2/reverse_linked_list2_test.go (100%) rename {src => solutions}/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go (100%) rename {src => solutions}/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go (100%) rename {src => solutions}/0100_same_tree/same_tree.go (100%) rename {src => solutions}/0100_same_tree/same_tree_test.go (100%) rename {src => solutions}/0101_symmetric_tree/symmetric_tree.go (100%) rename {src => solutions}/0101_symmetric_tree/symmetric_tree_test.go (100%) rename {src => solutions}/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go (100%) rename {src => solutions}/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go (100%) rename {src => solutions}/0104_maximun_depth_of_binary_tree/maxdobt.go (100%) rename {src => solutions}/0104_maximun_depth_of_binary_tree/maxdobt_test.go (100%) rename {src => solutions}/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go (100%) rename {src => solutions}/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go (100%) rename {src => solutions}/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go (100%) rename {src => solutions}/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go (100%) rename {src => solutions}/0112_path_sum/path_sum.go (100%) rename {src => solutions}/0112_path_sum/path_sum_test.go (100%) rename {src => solutions}/0120_triangle/triangle.go (100%) rename {src => solutions}/0120_triangle/triangle_test.go (100%) rename {src => solutions}/0121_best_time_to_buy_and_sell_stock/maxprofit.go (100%) rename {src => solutions}/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go (100%) rename {src => solutions}/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go (100%) rename {src => solutions}/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go (100%) rename {src => solutions}/0125_valid_palindrome/valid_palindrome.go (100%) rename {src => solutions}/0125_valid_palindrome/valid_palindrome_test.go (100%) rename {src => solutions}/0136_single_number/single_number.go (100%) rename {src => solutions}/0136_single_number/single_number_test.go (100%) rename {src => solutions}/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go (100%) rename {src => solutions}/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go (100%) rename {src => solutions}/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go (100%) rename {src => solutions}/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go (100%) rename {src => solutions}/0153_find_minimum_in_rotated_sorted_array/fmirsa.go (100%) rename {src => solutions}/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go (100%) rename {src => solutions}/0155_min_stack/min_stack.go (100%) rename {src => solutions}/0155_min_stack/min_stack_test.go (100%) rename {src => solutions}/0165_compare_version_numbers/compare_version_numbers.go (100%) rename {src => solutions}/0165_compare_version_numbers/compare_version_numbers_test.go (100%) rename {src => solutions}/0167_two_sum2/two_sum2.go (100%) rename {src => solutions}/0167_two_sum2/two_sum2_test.go (100%) rename {src => solutions}/0179_largest_number/ln.go (100%) rename {src => solutions}/0179_largest_number/ln_test.go (100%) rename {src => solutions}/0198_house_robber/house_robber.go (100%) rename {src => solutions}/0198_house_robber/house_robber_test.go (100%) rename {src => solutions}/0200_number_of_island/number_of_island.go (100%) rename {src => solutions}/0200_number_of_island/number_of_island_test.go (100%) rename {src => solutions}/0203_remove_linked_list_elements/remove_linked_list_elements.go (100%) rename {src => solutions}/0203_remove_linked_list_elements/remove_linked_list_elements_test.go (100%) rename {src => solutions}/0206_reverse_linked_list/reverse_linked_list.go (100%) rename {src => solutions}/0206_reverse_linked_list/reverse_linked_list_test.go (100%) rename {src => solutions}/0208_implement_trie_prefix_tree/impltrie.go (100%) rename {src => solutions}/0208_implement_trie_prefix_tree/impltrie_test.go (100%) rename {src => solutions}/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go (100%) rename {src => solutions}/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go (100%) rename {src => solutions}/0211_add_and_search_word/add_and_search_word.go (100%) rename {src => solutions}/0211_add_and_search_word/add_and_search_word_test.go (100%) rename {src => solutions}/0215_kth_largest_element_in_an_array/kthleiaa.go (100%) rename {src => solutions}/0215_kth_largest_element_in_an_array/kthleiaa_test.go (100%) rename {src => solutions}/0217_contains_duplicate/contains_duplicate.go (100%) rename {src => solutions}/0217_contains_duplicate/contains_duplicate_test.go (100%) rename {src => solutions}/0219_contains_duplicate_2/contains_duplicate_2.go (100%) rename {src => solutions}/0219_contains_duplicate_2/contains_duplicate_2_test.go (100%) rename {src => solutions}/0226_invert_binary_tree/invert_binary_tree.go (100%) rename {src => solutions}/0226_invert_binary_tree/invert_binary_tree_test.go (100%) rename {src => solutions}/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go (100%) rename {src => solutions}/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go (100%) rename {src => solutions}/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go (100%) rename {src => solutions}/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go (100%) rename {src => solutions}/0237_delete_node_in_a_linked_list/dniall.go (95%) rename {src => solutions}/0237_delete_node_in_a_linked_list/dniall_test.go (100%) rename {src => solutions}/0257_binary_tree_paths/binary_tree_paths.go (100%) rename {src => solutions}/0257_binary_tree_paths/binary_tree_paths_test.go (100%) rename {src => solutions}/0258_add_digits/add_digits.go (100%) rename {src => solutions}/0258_add_digits/add_digits_test.go (100%) rename {src => solutions}/0283_move_zeroes/move_zeroes.go (100%) rename {src => solutions}/0283_move_zeroes/move_zeroes2.go (100%) rename {src => solutions}/0283_move_zeroes/move_zeroes2_test.go (100%) rename {src => solutions}/0283_move_zeroes/move_zeroes_test.go (100%) rename {src => solutions}/0300_longest_increasing_subsequence/lis.go (100%) rename {src => solutions}/0300_longest_increasing_subsequence/lis_test.go (100%) rename {src => solutions}/0303_range_sum_query/rsqim.go (100%) rename {src => solutions}/0303_range_sum_query/rsqim_test.go (100%) rename {src => solutions}/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go (100%) rename {src => solutions}/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go (100%) rename {src => solutions}/0328_odd_even_linked_list/odd_even_linked_list.go (100%) rename {src => solutions}/0328_odd_even_linked_list/odd_even_linked_list_test.go (100%) rename {src => solutions}/0343_integer_break/integer_break.go (100%) rename {src => solutions}/0343_integer_break/integer_break_test.go (100%) rename {src => solutions}/0344_reverse_string/reverse_string.go (100%) rename {src => solutions}/0344_reverse_string/reverse_string_test.go (100%) rename {src => solutions}/0345_reverse_vowels_of_a_string/reverse_vowels.go (100%) rename {src => solutions}/0345_reverse_vowels_of_a_string/reverse_vowels_test.go (100%) rename {src => solutions}/0347_top_k_frequent_elements/topkfe.go (100%) rename {src => solutions}/0347_top_k_frequent_elements/topkfe_test.go (100%) rename {src => solutions}/0349_intersection_of_2_arrays/intersection_of_two_arrays.go (100%) rename {src => solutions}/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go (100%) rename {src => solutions}/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go (100%) rename {src => solutions}/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go (100%) rename {src => solutions}/0376_wiggle_subsequence/wiggle_subsequence.go (100%) rename {src => solutions}/0376_wiggle_subsequence/wiggle_subsequence_test.go (100%) rename {src => solutions}/0392_is_subsequence/is_subsequence.go (100%) rename {src => solutions}/0392_is_subsequence/is_subsequence_test.go (100%) rename {src => solutions}/0404_sum_of_left_leaves/sum_of_left_leaves.go (100%) rename {src => solutions}/0404_sum_of_left_leaves/sum_of_left_leaves_test.go (100%) rename {src => solutions}/0416_partition_equal_subset_sum/partition_equal_subset_sum.go (100%) rename {src => solutions}/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go (100%) rename {src => solutions}/0435_non_overlapping_intervals/dp_solution.go (100%) rename {src => solutions}/0435_non_overlapping_intervals/greedy_solution.go (100%) rename {src => solutions}/0435_non_overlapping_intervals/interval.go (100%) rename {src => solutions}/0435_non_overlapping_intervals/solution_test.go (100%) rename {src => solutions}/0437_path_sum_3/path_sum_3.go (100%) rename {src => solutions}/0437_path_sum_3/path_sum_3_test.go (100%) rename {src => solutions}/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go (100%) rename {src => solutions}/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go (100%) rename {src => solutions}/0447_number_of_boomerangs/number_of_boomerangs.go (100%) rename {src => solutions}/0447_number_of_boomerangs/number_of_boomerangs_test.go (100%) rename {src => solutions}/0454_4sum2/4sum2.go (100%) rename {src => solutions}/0454_4sum2/4sum2_test.go (100%) rename {src => solutions}/0455_assign_cookies/assign_cookies.go (100%) rename {src => solutions}/0455_assign_cookies/assign_cookies_test.go (100%) rename {src => solutions}/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go (100%) rename {src => solutions}/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go (100%) rename {src => solutions}/0674_longest_continuous_increasing_subsequence/lcis.go (100%) rename {src => solutions}/0674_longest_continuous_increasing_subsequence/lcis_test.go (100%) rename {src => solutions}/0677_map_sum_pairs/map_sum_pairs.go (100%) rename {src => solutions}/0677_map_sum_pairs/map_sum_pairs_test.go (100%) rename {src => solutions}/0704_binary_search/binary_search.go (100%) rename {src => solutions}/0704_binary_search/binary_search_test.go (100%) rename {src => solutions}/0713_subarray_product_less_than_k/spltk.go (100%) rename {src => solutions}/0713_subarray_product_less_than_k/spltk_test.go (100%) rename {src => solutions}/0717_1_bit_and_2_bit_characters/1bitand2bitc.go (100%) rename {src => solutions}/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go (100%) rename {src => solutions}/0728_self_dividing_numbers/self_dividing_numbers.go (100%) rename {src => solutions}/0728_self_dividing_numbers/self_dividing_numbers_test.go (100%) rename {src => solutions}/0735_asteroid_collision/ac.go (100%) rename {src => solutions}/0735_asteroid_collision/ac_test.go (100%) rename {src => solutions}/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go (100%) rename {src => solutions}/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go (100%) rename {src => solutions}/0872_leaf_similar_trees/leaf_similar_trees.go (100%) rename {src => solutions}/0872_leaf_similar_trees/leaf_similar_trees_test.go (100%) rename {src => solutions}/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go (100%) rename {src => solutions}/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go (100%) rename {src => solutions}/148_Sort_List/sortlist.go (100%) rename {src => solutions}/148_Sort_List/sortlist_test.go (100%) rename {src => solutions}/304_Range_Sum_Query_2D/rsq.go (100%) rename {src => solutions}/304_Range_Sum_Query_2D/rsq_test.go (100%) rename {src => solutions}/README.md (98%) diff --git a/README.md b/README.md deleted file mode 100644 index c4cf90f..0000000 --- a/README.md +++ /dev/null @@ -1,145 +0,0 @@ -# Go Solution for Leetcode algorithm problems - -[![Build Status](https://travis-ci.org/zwfang/leetcode.svg?branch=master)](https://travis-ci.org/zwfang/leetcode) -[![codecov](https://codecov.io/gh/zwfang/leetcode/branch/master/graph/badge.svg)](https://codecov.io/gh/zwfang/leetcode) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/86cf2613fa544ab5b254e2a7e5d9deb8)](https://www.codacy.com/app/zwfang/leetcode?utm_source=github.com&utm_medium=referral&utm_content=zwfang/leetcode&utm_campaign=Badge_Grade) -[![Go Report Card](https://goreportcard.com/badge/github.com/zwfang/leetcode)](https://goreportcard.com/report/github.com/zwfang/leetcode) - -continually updating 😃. - -### [view by sorted](./src/README.md) - -### Array -* [1. Two Sum](src/0001_two_sum/twosum.go)   *`lookup table;`*  *`hash table`* -* [4. Median of Two Sorted Arrays](src/0004_median_of_two_sorted_arrays/motsa.go)   *`binary search;`*  *`divide and conquer`* -* [11. Container With Most Water](src/0011_container_with_most_water/container_with_most_water.go)   *`double index;`*  *`array`* -* [15. 3Sum](src/0015_3Sum/3sum.go)   *`double index;`*  *`array`* -* [26. Remove Duplicates from Sorted Array](src/0026_remove_duplicates_from_sorted_array/rdfsa.go)   *`double index;`*  *`array`* -* [27. Remove Element](src/0027_remove_element/remove_element.go)   *`double index;`*  *`array`* -* [48. Rotate Image](src/0048_rotate_image/rotate_image.go) -* [53. Maximum Subarray](src/0053_maximum_subarray/maximum_subarray.go)   *`dynamic programming`* -* [75. Sort Colors](src/0075_sort_colors/sort_colors.go)   *`sort;`*  *`array`* -* [80. Remove Duplicates from Sorted Array II](src/0080_remove_duplicates_from_sorted_array2/rdfsa2.go)   *`double index;`*  *`array`* -* [88. Merge Sorted Array](src/0088_merge_sorted_array/msa.go)   *`sort;`*  *`array`* -* [121. Best Time to Buy and Sell Stock](src/0121_best_time_to_buy_and_sell_stock/maxprofit.go)   *`dynamic programming;`*  *`array`* -* [122. Best Time to Buy and Sell Stock II](src/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go)   *`greedy;`*  *`array`* -* [136. Single Number](src/0136_single_number/single_number.go)   *`hash table;`*  *`bit manipulation`* -* [167. Two Sum II - Input array is sorted](src/0167_two_sum2/two_sum2.go)   *`double index;`*  *`binary search`* -* [179. Largest Number](src/0179_largest_number/ln.go)   *`sort`* -* [200. Number of Islands](src/0200_number_of_island/number_of_island.go)   *`dfs;`*  *`bfs`* -* [209. Minimum Size Subarray Sum](src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go)   *`sliding window`* -* [215. Kth Largest Element in an Array](src/0215_kth_largest_element_in_an_array/kthleiaa.go)   *`sort`* -* [217. Contains Duplicate](src/0217_contains_duplicate/contains_duplicate.go)   *`map`* -* [219. Contains Duplicate II](src/0219_contains_duplicate_2/contains_duplicate_2.go)   *`map`* -* [283. Move Zeroes(solution1)](src/0283_move_zeroes/move_zeroes.go)   *`sliding window`* -* [283. Move Zeroes(solution2)](src/0283_move_zeroes/move_zeroes2.go)   *`sliding window`* -* [303. Range Sum Query - Immutable](src/0303_range_sum_query/rsqim.go) -* [347. Top K Frequent Elements](src/0347_top_k_frequent_elements/topkfe.go)   *`hash table;`*  *`heap`* -* [349. Intersection of Two Arrays](src/0349_intersection_of_2_arrays/intersection_of_two_arrays.go)   *`set`* -* [350. Intersection of Two Arrays II](src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go)   *`hash table`* -* [447. Number of Boomerangs](src/0447_number_of_boomerangs/number_of_boomerangs.go)   *`hash table`* -* [454. 4Sum II](src/0454_4sum2/4sum2.go)   *`hash table`* -* [674. Longest Continuous Increasing Subsequence](src/0674_longest_continuous_increasing_subsequence/lcis.go) -* [713. Subarray Product Less Than K](src/0713_subarray_product_less_than_k/spltk.go)   *`sliding window`*  *`array`* -* [717. 1-bit and 2-bit Characters](src/0717_1_bit_and_2_bit_characters/1bitand2bitc.go) -* [747. Largest Number At Least Twice of Others](src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go) - -### Stack -* [155. Min Stack](src/0155_min_stack/min_stack.go) -* [735. Asteroid Collision](src/0735_asteroid_collision/ac.go) - -### String -* [3. Longest Substring Without Repeating Characters](src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go)   *`sliding window;`*  *`hash table`* -* [14. Longest Common Prefix](src/0014_longest_common_prefix/lcp.go) -* [17. Letter Combinations of a Phone Number](src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go)   *`tree`* -* [20. Valid Parentheses](src/0020_valid_parentheses/valid_parentheses.go)   *`stack`* -* [28. Implement strStr()](src/0028_implement_strstr/implement_strstr.go)   *`double index`* -* [58. Length of Last Word](src/0058_length_of_last_word/len_of_last_word.go) -* [67. Add Binary](src/0067_add_binary/add_binary.go)   *`brute force`* -* [76. Minimum Window Substring](src/0076_minimum_window_substring/minimum_window_substring.go)    *`sliding window`* -* [125. Valid Palindrome](src/0125_valid_palindrome/valid_palindrome.go)   *`string;`*  *`double index`* -* [165. Compare Version Numbers](src/0165_compare_version_numbers/compare_version_numbers.go) -* [344. Reverse String](src/0344_reverse_string/reverse_string.go)   *`string;`*  *`double index`* -* [345. Reverse Vowels of a String](src/0345_reverse_vowels_of_a_string/reverse_vowels.go)   *`string;`*  *`double index`* -* [438. Find All Anagrams in a String](src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go)   *`sliding window`* -* [557. Reverse Words in a String III](src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go) -* [1021. Remove Outermost Parentheses](src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go)   *`stack`* - -### Linked List -* [2. Add Two Numbers](src/0002_add_two_numbers/add_two_numbers.go)   *`recursion;`*  *`math`* -* [19. Remove Nth Node From End of List](src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go)   *`two pointers`* -* [21. Merge Two Sorted Lists](src/0021_merge_two_sorted_lists/mergeTwoLists.go) -* [23. Merge k Sorted Lists](src/0023_merge_k_sorted_lists/mksl.go)   *`heap`* -* [24. Swap Nodes in Pairs](src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go) -* [25. Reverse Nodes in k-Group](src/0025_reverse_nodes_in_k_group/reverse_node_k_group.go) -* [61. Rotate List](src/0061_rotate_list/rotate_list.go) -* [82. Remove Duplicates from Sorted List II](src/0082_remove_duplicates_from_sorted_list_2/rdfsl.go) -* [83. Remove Duplicates from Sorted List](src/0083_remove_duplicates_from_sorted_list/rdfsl.go) -* [86. Partition List](src/0086_partition_list/partition_list.go)   *`two pointers`* -* [92. Reverse Linked List II](src/0092_reverse_linked_list_2/reverse_linked_list2.go) -* [148. Sort List](src/148_Sort_List/sortlist.go)   *`sort`* -* [203. Remove Linked List Elements](src/0203_remove_linked_list_elements/remove_linked_list_elements.go) -* [206. Reverse Linked List](src/0206_reverse_linked_list/reverse_linked_list.go) -* [237. Delete Node in a Linked List](src/0237_delete_node_in_a_linked_list/dniall.go) -* [328. Odd Even Linked List](src/0328_odd_even_linked_list/odd_even_linked_list.go) - -### Dynamic Programming -* [62. Unique Paths](src/0062_unique_paths/unique_paths.go)   *`array`* -* [63. Unique Paths 2](src/0063_unique_paths_2/unique_paths2.go)   *`array`* -* [64. Minimum Path Sum](src/0064_minimum_path_sum/minimum_path_sum.go)   *`array`* -* [70. Climbing Stairs](src/0070_climbing_stairs/climbing_stairs.go) -* [120. Triangle](src/0120_triangle/triangle.go)   *`array`* -* [198. House Robber](src/0198_house_robber/house_robber.go) -* [300. Longest Increasing Subsequence](src/0300_longest_increasing_subsequence/lis.go) -* [304. Range Sum Query 2D - Immutable](src/304_Range_Sum_Query_2D/rsq.go) -* [343. Integer Break](src/0343_integer_break/integer_break.go)   *`math`* -* [376. Wiggle Subsequence](src/0376_wiggle_subsequence/wiggle_subsequence.go)   *`greedy;`*  *`dynamic programming`* -* [416. Partition Equal Subset Sum](src/0416_partition_equal_subset_sum/partition_equal_subset_sum.go)  *`0-1 knapsack problem`* -* [435. Non-overlapping Intervals](src/0435_non_overlapping_intervals/dp_solution.go)   *`greedy;`*  *`dynamic programming`*  *`0-1 knapsack problem`* - -### Greedy -* [392. Is Subsequence](src/0392_is_subsequence/is_subsequence.go) -* [435. Non-overlapping Intervals](src/0435_non_overlapping_intervals/greedy_solution.go)   *`greedy;`*  *`dynamic programming`* -* [455. Assign Cookies](src/0455_assign_cookies/assign_cookies.go) - -### Backtracking -* [77. Combinations](src/0077_combinations/combinations.go)   *`combine`* -* [79. Word Search](src/0079_word_search/word_search.go)   *`array`* - -### Tree -* [94. Binary Tree Inorder Traversal](src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go)   *`binary tree;`*   *`stack`* -* [100. Same Tree](src/0100_same_tree/same_tree.go)   *`binary tree;`*   *`dfs`* -* [101. Symmetric Tree](src/0101_symmetric_tree/symmetric_tree.go)   *`binary tree;`*   *`dfs;`*  *`bfs;`* -* [102. Binary Tree Level Order Traversal](src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go)   *`binary tree;`*   *`dfs`* -* [104. Maximum Depth of Binary Tree](src/0104_maximun_depth_of_binary_tree/maxdobt.go)   *`binary tree depth`* -* [107. Binary Tree Level Order Traversal II](src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go)   *`binary tree;`*   *`bfs`* -* [111. Minimum Depth of Binary Tree](src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go)   *`binary tree;`*   *`dfs`* -* [112. Path Sum](src/0112_path_sum/path_sum.go)   *`binary tree;`*   *`dfs`* -* [144. Binary Tree Preorder Traversal](src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go)   *`binary tree;`*   *`pre-order traversal`* -* [208. Implement Trie (Prefix Tree)](src/0208_implement_trie_prefix_tree/impltrie.go)   *`trie`* -* [226. Invert Binary Tree](src/0226_invert_binary_tree/invert_binary_tree.go)   *`binary tree`* -* [211. Add and Search Word - Data structure design](src/0211_add_and_search_word/add_and_search_word.go)   *`trie`* -* [235. Lowest Common Ancestor of a Binary Search Tree](src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go)   *`binary tree`* -* [236. Lowest Common Ancestor of a Binary Tree](src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go)   *`binary tree`* -* [257. Binary Tree Paths](src/0257_binary_tree_paths/binary_tree_paths.go)   *`binary tree`* -* [307. Range Sum Query - Mutable](src/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go)   *`segment tree`* -* [404. Sum of Left Leaves](src/0404_sum_of_left_leaves/sum_of_left_leaves.go)   *`binary tree`* -* [437. Path Sum III](src/0437_path_sum_3/path_sum_3.go)   *`binary tree`* -* [677. Map Sum Pairs](src/0677_map_sum_pairs/map_sum_pairs.go)   *`trie`* -* [872. Leaf-Similar Trees](src/0872_leaf_similar_trees/leaf_similar_trees.go)   *`binary tree`* - -### Binary Search -* [33. Search in Rotated Sorted Array](src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go)   *`array;`*  *`binary search`* -* [34. Find First and Last Position of Element in Sorted Array](src/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go)   *`array;`*  *`binary search`* -* [35. Search Insert Position](src/0035_search_insert_position/search_insert_position.go)   *`array;`*  *`binary search`* -* [69. Sqrt(x)](src/0069_sqrtx/sqrtx.go)   *`math;`*  *`binary search`* -* [153. Find Minimum in Rotated Sorted Array](src/0153_find_minimum_in_rotated_sorted_array/fmirsa.go) -* [704. Binary Search](src/0704_binary_search/binary_search.go) - -### Math -* [7. Reverse Integer](src/0007_reverse_integer/reverse_integer.go) -* [9. Palindrome Number](src/0009_palindrome_number/palindrome_number.go) -* [13. Roman to Integer](src/0013_roman_to_integer/roman_to_integer.go)   *`string`* -* [66. Plus One](src/0066_plus_one/plus_one.go)   *`array`* -* [150. Evaluate Reverse Polish Notation](src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go)   *`stack`* -* [258. Add Digits](src/0258_add_digits/add_digits.go) diff --git a/README.md b/README.md new file mode 120000 index 0000000..d5d3497 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +solutions/README.md \ No newline at end of file diff --git a/bak.README.md b/bak.README.md new file mode 100644 index 0000000..a1725ac --- /dev/null +++ b/bak.README.md @@ -0,0 +1,145 @@ +# Go Solution for Leetcode algorithm problems + +[![Build Status](https://travis-ci.org/zwfang/leetcode.svg?branch=master)](https://travis-ci.org/zwfang/leetcode) +[![codecov](https://codecov.io/gh/zwfang/leetcode/branch/master/graph/badge.svg)](https://codecov.io/gh/zwfang/leetcode) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/86cf2613fa544ab5b254e2a7e5d9deb8)](https://www.codacy.com/app/zwfang/leetcode?utm_source=github.com&utm_medium=referral&utm_content=zwfang/leetcode&utm_campaign=Badge_Grade) +[![Go Report Card](https://goreportcard.com/badge/github.com/zwfang/leetcode)](https://goreportcard.com/report/github.com/zwfang/leetcode) + +continually updating 😃. + +### [view by sorted](./solutions/README.md) + +### Array +* [1. Two Sum](solutions/0001_two_sum/twosum.go)   *`lookup table;`*  *`hash table`* +* [4. Median of Two Sorted Arrays](solutions/0004_median_of_two_sorted_arrays/motsa.go)   *`binary search;`*  *`divide and conquer`* +* [11. Container With Most Water](solutions/0011_container_with_most_water/container_with_most_water.go)   *`double index;`*  *`array`* +* [15. 3Sum](solutions/0015_3Sum/3sum.go)   *`double index;`*  *`array`* +* [26. Remove Duplicates from Sorted Array](solutions/0026_remove_duplicates_from_sorted_array/rdfsa.go)   *`double index;`*  *`array`* +* [27. Remove Element](solutions/0027_remove_element/remove_element.go)   *`double index;`*  *`array`* +* [48. Rotate Image](solutions/0048_rotate_image/rotate_image.go) +* [53. Maximum Subarray](solutions/0053_maximum_subarray/maximum_subarray.go)   *`dynamic programming`* +* [75. Sort Colors](solutions/0075_sort_colors/sort_colors.go)   *`sort;`*  *`array`* +* [80. Remove Duplicates from Sorted Array II](solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2.go)   *`double index;`*  *`array`* +* [88. Merge Sorted Array](solutions/0088_merge_sorted_array/msa.go)   *`sort;`*  *`array`* +* [121. Best Time to Buy and Sell Stock](solutions/0121_best_time_to_buy_and_sell_stock/maxprofit.go)   *`dynamic programming;`*  *`array`* +* [122. Best Time to Buy and Sell Stock II](solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go)   *`greedy;`*  *`array`* +* [136. Single Number](solutions/0136_single_number/single_number.go)   *`hash table;`*  *`bit manipulation`* +* [167. Two Sum II - Input array is sorted](solutions/0167_two_sum2/two_sum2.go)   *`double index;`*  *`binary search`* +* [179. Largest Number](solutions/0179_largest_number/ln.go)   *`sort`* +* [200. Number of Islands](solutions/0200_number_of_island/number_of_island.go)   *`dfs;`*  *`bfs`* +* [209. Minimum Size Subarray Sum](solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go)   *`sliding window`* +* [215. Kth Largest Element in an Array](solutions/0215_kth_largest_element_in_an_array/kthleiaa.go)   *`sort`* +* [217. Contains Duplicate](solutions/0217_contains_duplicate/contains_duplicate.go)   *`map`* +* [219. Contains Duplicate II](solutions/0219_contains_duplicate_2/contains_duplicate_2.go)   *`map`* +* [283. Move Zeroes(solution1)](solutions/0283_move_zeroes/move_zeroes.go)   *`sliding window`* +* [283. Move Zeroes(solution2)](solutions/0283_move_zeroes/move_zeroes2.go)   *`sliding window`* +* [303. Range Sum Query - Immutable](solutions/0303_range_sum_query/rsqim.go) +* [347. Top K Frequent Elements](solutions/0347_top_k_frequent_elements/topkfe.go)   *`hash table;`*  *`heap`* +* [349. Intersection of Two Arrays](solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays.go)   *`set`* +* [350. Intersection of Two Arrays II](solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go)   *`hash table`* +* [447. Number of Boomerangs](solutions/0447_number_of_boomerangs/number_of_boomerangs.go)   *`hash table`* +* [454. 4Sum II](solutions/0454_4sum2/4sum2.go)   *`hash table`* +* [674. Longest Continuous Increasing Subsequence](solutions/0674_longest_continuous_increasing_subsequence/lcis.go) +* [713. Subarray Product Less Than K](solutions/0713_subarray_product_less_than_k/spltk.go)   *`sliding window`*  *`array`* +* [717. 1-bit and 2-bit Characters](solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc.go) +* [747. Largest Number At Least Twice of Others](solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go) + +### Stack +* [155. Min Stack](solutions/0155_min_stack/min_stack.go) +* [735. Asteroid Collision](solutions/0735_asteroid_collision/ac.go) + +### String +* [3. Longest Substring Without Repeating Characters](solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go)   *`sliding window;`*  *`hash table`* +* [14. Longest Common Prefix](solutions/0014_longest_common_prefix/lcp.go) +* [17. Letter Combinations of a Phone Number](solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go)   *`tree`* +* [20. Valid Parentheses](solutions/0020_valid_parentheses/valid_parentheses.go)   *`stack`* +* [28. Implement strStr()](solutions/0028_implement_strstr/implement_strstr.go)   *`double index`* +* [58. Length of Last Word](solutions/0058_length_of_last_word/len_of_last_word.go) +* [67. Add Binary](solutions/0067_add_binary/add_binary.go)   *`brute force`* +* [76. Minimum Window Substring](solutions/0076_minimum_window_substring/minimum_window_substring.go)    *`sliding window`* +* [125. Valid Palindrome](solutions/0125_valid_palindrome/valid_palindrome.go)   *`string;`*  *`double index`* +* [165. Compare Version Numbers](solutions/0165_compare_version_numbers/compare_version_numbers.go) +* [344. Reverse String](solutions/0344_reverse_string/reverse_string.go)   *`string;`*  *`double index`* +* [345. Reverse Vowels of a String](solutions/0345_reverse_vowels_of_a_string/reverse_vowels.go)   *`string;`*  *`double index`* +* [438. Find All Anagrams in a String](solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go)   *`sliding window`* +* [557. Reverse Words in a String III](solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go) +* [1021. Remove Outermost Parentheses](solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go)   *`stack`* + +### Linked List +* [2. Add Two Numbers](solutions/0002_add_two_numbers/add_two_numbers.go)   *`recursion;`*  *`math`* +* [19. Remove Nth Node From End of List](solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go)   *`two pointers`* +* [21. Merge Two Sorted Lists](solutions/0021_merge_two_sorted_lists/mergeTwoLists.go) +* [23. Merge k Sorted Lists](solutions/0023_merge_k_sorted_lists/mksl.go)   *`heap`* +* [24. Swap Nodes in Pairs](solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go) +* [25. Reverse Nodes in k-Group](solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group.go) +* [61. Rotate List](solutions/0061_rotate_list/rotate_list.go) +* [82. Remove Duplicates from Sorted List II](solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl.go) +* [83. Remove Duplicates from Sorted List](solutions/0083_remove_duplicates_from_sorted_list/rdfsl.go) +* [86. Partition List](solutions/0086_partition_list/partition_list.go)   *`two pointers`* +* [92. Reverse Linked List II](solutions/0092_reverse_linked_list_2/reverse_linked_list2.go) +* [148. Sort List](solutions/148_Sort_List/sortlist.go)   *`sort`* +* [203. Remove Linked List Elements](solutions/0203_remove_linked_list_elements/remove_linked_list_elements.go) +* [206. Reverse Linked List](solutions/0206_reverse_linked_list/reverse_linked_list.go) +* [237. Delete Node in a Linked List](solutions/0237_delete_node_in_a_linked_list/dniall.go) +* [328. Odd Even Linked List](solutions/0328_odd_even_linked_list/odd_even_linked_list.go) + +### Dynamic Programming +* [62. Unique Paths](solutions/0062_unique_paths/unique_paths.go)   *`array`* +* [63. Unique Paths 2](solutions/0063_unique_paths_2/unique_paths2.go)   *`array`* +* [64. Minimum Path Sum](solutions/0064_minimum_path_sum/minimum_path_sum.go)   *`array`* +* [70. Climbing Stairs](solutions/0070_climbing_stairs/climbing_stairs.go) +* [120. Triangle](solutions/0120_triangle/triangle.go)   *`array`* +* [198. House Robber](solutions/0198_house_robber/house_robber.go) +* [300. Longest Increasing Subsequence](solutions/0300_longest_increasing_subsequence/lis.go) +* [304. Range Sum Query 2D - Immutable](solutions/304_Range_Sum_Query_2D/rsq.go) +* [343. Integer Break](solutions/0343_integer_break/integer_break.go)   *`math`* +* [376. Wiggle Subsequence](solutions/0376_wiggle_subsequence/wiggle_subsequence.go)   *`greedy;`*  *`dynamic programming`* +* [416. Partition Equal Subset Sum](solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum.go)  *`0-1 knapsack problem`* +* [435. Non-overlapping Intervals](solutions/0435_non_overlapping_intervals/dp_solution.go)   *`greedy;`*  *`dynamic programming`*  *`0-1 knapsack problem`* + +### Greedy +* [392. Is Subsequence](solutions/0392_is_subsequence/is_subsequence.go) +* [435. Non-overlapping Intervals](solutions/0435_non_overlapping_intervals/greedy_solution.go)   *`greedy;`*  *`dynamic programming`* +* [455. Assign Cookies](solutions/0455_assign_cookies/assign_cookies.go) + +### Backtracking +* [77. Combinations](solutions/0077_combinations/combinations.go)   *`combine`* +* [79. Word Search](solutions/0079_word_search/word_search.go)   *`array`* + +### Tree +* [94. Binary Tree Inorder Traversal](solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go)   *`binary tree;`*   *`stack`* +* [100. Same Tree](solutions/0100_same_tree/same_tree.go)   *`binary tree;`*   *`dfs`* +* [101. Symmetric Tree](solutions/0101_symmetric_tree/symmetric_tree.go)   *`binary tree;`*   *`dfs;`*  *`bfs;`* +* [102. Binary Tree Level Order Traversal](solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go)   *`binary tree;`*   *`dfs`* +* [104. Maximum Depth of Binary Tree](solutions/0104_maximun_depth_of_binary_tree/maxdobt.go)   *`binary tree depth`* +* [107. Binary Tree Level Order Traversal II](solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go)   *`binary tree;`*   *`bfs`* +* [111. Minimum Depth of Binary Tree](solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go)   *`binary tree;`*   *`dfs`* +* [112. Path Sum](solutions/0112_path_sum/path_sum.go)   *`binary tree;`*   *`dfs`* +* [144. Binary Tree Preorder Traversal](solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go)   *`binary tree;`*   *`pre-order traversal`* +* [208. Implement Trie (Prefix Tree)](solutions/0208_implement_trie_prefix_tree/impltrie.go)   *`trie`* +* [226. Invert Binary Tree](solutions/0226_invert_binary_tree/invert_binary_tree.go)   *`binary tree`* +* [211. Add and Search Word - Data structure design](solutions/0211_add_and_search_word/add_and_search_word.go)   *`trie`* +* [235. Lowest Common Ancestor of a Binary Search Tree](solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go)   *`binary tree`* +* [236. Lowest Common Ancestor of a Binary Tree](solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go)   *`binary tree`* +* [257. Binary Tree Paths](solutions/0257_binary_tree_paths/binary_tree_paths.go)   *`binary tree`* +* [307. Range Sum Query - Mutable](solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go)   *`segment tree`* +* [404. Sum of Left Leaves](solutions/0404_sum_of_left_leaves/sum_of_left_leaves.go)   *`binary tree`* +* [437. Path Sum III](solutions/0437_path_sum_3/path_sum_3.go)   *`binary tree`* +* [677. Map Sum Pairs](solutions/0677_map_sum_pairs/map_sum_pairs.go)   *`trie`* +* [872. Leaf-Similar Trees](solutions/0872_leaf_similar_trees/leaf_similar_trees.go)   *`binary tree`* + +### Binary Search +* [33. Search in Rotated Sorted Array](solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go)   *`array;`*  *`binary search`* +* [34. Find First and Last Position of Element in Sorted Array](solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go)   *`array;`*  *`binary search`* +* [35. Search Insert Position](solutions/0035_search_insert_position/search_insert_position.go)   *`array;`*  *`binary search`* +* [69. Sqrt(x)](solutions/0069_sqrtx/sqrtx.go)   *`math;`*  *`binary search`* +* [153. Find Minimum in Rotated Sorted Array](solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa.go) +* [704. Binary Search](solutions/0704_binary_search/binary_search.go) + +### Math +* [7. Reverse Integer](solutions/0007_reverse_integer/reverse_integer.go) +* [9. Palindrome Number](solutions/0009_palindrome_number/palindrome_number.go) +* [13. Roman to Integer](solutions/0013_roman_to_integer/roman_to_integer.go)   *`string`* +* [66. Plus One](solutions/0066_plus_one/plus_one.go)   *`array`* +* [150. Evaluate Reverse Polish Notation](solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go)   *`stack`* +* [258. Add Digits](solutions/0258_add_digits/add_digits.go) diff --git a/src/0001_two_sum/twosum.go b/solutions/0001_two_sum/twosum.go similarity index 100% rename from src/0001_two_sum/twosum.go rename to solutions/0001_two_sum/twosum.go diff --git a/src/0001_two_sum/twosum_test.go b/solutions/0001_two_sum/twosum_test.go similarity index 100% rename from src/0001_two_sum/twosum_test.go rename to solutions/0001_two_sum/twosum_test.go diff --git a/src/0002_add_two_numbers/add_two_numbers.go b/solutions/0002_add_two_numbers/add_two_numbers.go similarity index 100% rename from src/0002_add_two_numbers/add_two_numbers.go rename to solutions/0002_add_two_numbers/add_two_numbers.go diff --git a/src/0002_add_two_numbers/add_two_numbers_test.go b/solutions/0002_add_two_numbers/add_two_numbers_test.go similarity index 100% rename from src/0002_add_two_numbers/add_two_numbers_test.go rename to solutions/0002_add_two_numbers/add_two_numbers_test.go diff --git a/src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go b/solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go similarity index 100% rename from src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go rename to solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go diff --git a/src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go b/solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go similarity index 100% rename from src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go rename to solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go diff --git a/src/0004_median_of_two_sorted_arrays/motsa.go b/solutions/0004_median_of_two_sorted_arrays/motsa.go similarity index 100% rename from src/0004_median_of_two_sorted_arrays/motsa.go rename to solutions/0004_median_of_two_sorted_arrays/motsa.go diff --git a/src/0004_median_of_two_sorted_arrays/motsa_test.go b/solutions/0004_median_of_two_sorted_arrays/motsa_test.go similarity index 100% rename from src/0004_median_of_two_sorted_arrays/motsa_test.go rename to solutions/0004_median_of_two_sorted_arrays/motsa_test.go diff --git a/src/0007_reverse_integer/reverse_integer.go b/solutions/0007_reverse_integer/reverse_integer.go similarity index 100% rename from src/0007_reverse_integer/reverse_integer.go rename to solutions/0007_reverse_integer/reverse_integer.go diff --git a/src/0007_reverse_integer/reverse_integer_test.go b/solutions/0007_reverse_integer/reverse_integer_test.go similarity index 100% rename from src/0007_reverse_integer/reverse_integer_test.go rename to solutions/0007_reverse_integer/reverse_integer_test.go diff --git a/src/0009_palindrome_number/palindrome_number.go b/solutions/0009_palindrome_number/palindrome_number.go similarity index 100% rename from src/0009_palindrome_number/palindrome_number.go rename to solutions/0009_palindrome_number/palindrome_number.go diff --git a/src/0009_palindrome_number/palindrome_number_test.go b/solutions/0009_palindrome_number/palindrome_number_test.go similarity index 100% rename from src/0009_palindrome_number/palindrome_number_test.go rename to solutions/0009_palindrome_number/palindrome_number_test.go diff --git a/src/0011_container_with_most_water/container_with_most_water.go b/solutions/0011_container_with_most_water/container_with_most_water.go similarity index 100% rename from src/0011_container_with_most_water/container_with_most_water.go rename to solutions/0011_container_with_most_water/container_with_most_water.go diff --git a/src/0011_container_with_most_water/container_with_most_water_test.go b/solutions/0011_container_with_most_water/container_with_most_water_test.go similarity index 100% rename from src/0011_container_with_most_water/container_with_most_water_test.go rename to solutions/0011_container_with_most_water/container_with_most_water_test.go diff --git a/src/0013_roman_to_integer/roman_to_integer.go b/solutions/0013_roman_to_integer/roman_to_integer.go similarity index 100% rename from src/0013_roman_to_integer/roman_to_integer.go rename to solutions/0013_roman_to_integer/roman_to_integer.go diff --git a/src/0013_roman_to_integer/roman_to_integer_test.go b/solutions/0013_roman_to_integer/roman_to_integer_test.go similarity index 100% rename from src/0013_roman_to_integer/roman_to_integer_test.go rename to solutions/0013_roman_to_integer/roman_to_integer_test.go diff --git a/src/0014_longest_common_prefix/lcp.go b/solutions/0014_longest_common_prefix/lcp.go similarity index 100% rename from src/0014_longest_common_prefix/lcp.go rename to solutions/0014_longest_common_prefix/lcp.go diff --git a/src/0014_longest_common_prefix/lcp_test.go b/solutions/0014_longest_common_prefix/lcp_test.go similarity index 100% rename from src/0014_longest_common_prefix/lcp_test.go rename to solutions/0014_longest_common_prefix/lcp_test.go diff --git a/src/0015_3Sum/3sum.go b/solutions/0015_3Sum/3sum.go similarity index 100% rename from src/0015_3Sum/3sum.go rename to solutions/0015_3Sum/3sum.go diff --git a/src/0015_3Sum/3sum_test.go b/solutions/0015_3Sum/3sum_test.go similarity index 100% rename from src/0015_3Sum/3sum_test.go rename to solutions/0015_3Sum/3sum_test.go diff --git a/src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go b/solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go similarity index 100% rename from src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go rename to solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go diff --git a/src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go b/solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go similarity index 100% rename from src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go rename to solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go diff --git a/src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go b/solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go similarity index 100% rename from src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go rename to solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go diff --git a/src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go b/solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go similarity index 100% rename from src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go rename to solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go diff --git a/src/0020_valid_parentheses/valid_parentheses.go b/solutions/0020_valid_parentheses/valid_parentheses.go similarity index 100% rename from src/0020_valid_parentheses/valid_parentheses.go rename to solutions/0020_valid_parentheses/valid_parentheses.go diff --git a/src/0020_valid_parentheses/valid_parentheses_test.go b/solutions/0020_valid_parentheses/valid_parentheses_test.go similarity index 100% rename from src/0020_valid_parentheses/valid_parentheses_test.go rename to solutions/0020_valid_parentheses/valid_parentheses_test.go diff --git a/src/0021_merge_two_sorted_lists/mergeTwoLists.go b/solutions/0021_merge_two_sorted_lists/mergeTwoLists.go similarity index 100% rename from src/0021_merge_two_sorted_lists/mergeTwoLists.go rename to solutions/0021_merge_two_sorted_lists/mergeTwoLists.go diff --git a/src/0021_merge_two_sorted_lists/mergeTwoLists_test.go b/solutions/0021_merge_two_sorted_lists/mergeTwoLists_test.go similarity index 100% rename from src/0021_merge_two_sorted_lists/mergeTwoLists_test.go rename to solutions/0021_merge_two_sorted_lists/mergeTwoLists_test.go diff --git a/src/0023_merge_k_sorted_lists/mksl.go b/solutions/0023_merge_k_sorted_lists/mksl.go similarity index 100% rename from src/0023_merge_k_sorted_lists/mksl.go rename to solutions/0023_merge_k_sorted_lists/mksl.go diff --git a/src/0023_merge_k_sorted_lists/mksl_test.go b/solutions/0023_merge_k_sorted_lists/mksl_test.go similarity index 100% rename from src/0023_merge_k_sorted_lists/mksl_test.go rename to solutions/0023_merge_k_sorted_lists/mksl_test.go diff --git a/src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go b/solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go similarity index 100% rename from src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go rename to solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go diff --git a/src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go b/solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go similarity index 100% rename from src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go rename to solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go diff --git a/src/0025_reverse_nodes_in_k_group/reverse_node_k_group.go b/solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group.go similarity index 100% rename from src/0025_reverse_nodes_in_k_group/reverse_node_k_group.go rename to solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group.go diff --git a/src/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go b/solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go similarity index 100% rename from src/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go rename to solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go diff --git a/src/0026_remove_duplicates_from_sorted_array/rdfsa.go b/solutions/0026_remove_duplicates_from_sorted_array/rdfsa.go similarity index 100% rename from src/0026_remove_duplicates_from_sorted_array/rdfsa.go rename to solutions/0026_remove_duplicates_from_sorted_array/rdfsa.go diff --git a/src/0026_remove_duplicates_from_sorted_array/rdfsa_test.go b/solutions/0026_remove_duplicates_from_sorted_array/rdfsa_test.go similarity index 100% rename from src/0026_remove_duplicates_from_sorted_array/rdfsa_test.go rename to solutions/0026_remove_duplicates_from_sorted_array/rdfsa_test.go diff --git a/src/0027_remove_element/remove_element.go b/solutions/0027_remove_element/remove_element.go similarity index 100% rename from src/0027_remove_element/remove_element.go rename to solutions/0027_remove_element/remove_element.go diff --git a/src/0027_remove_element/remove_element_test.go b/solutions/0027_remove_element/remove_element_test.go similarity index 100% rename from src/0027_remove_element/remove_element_test.go rename to solutions/0027_remove_element/remove_element_test.go diff --git a/src/0028_implement_strstr/implement_strstr.go b/solutions/0028_implement_strstr/implement_strstr.go similarity index 100% rename from src/0028_implement_strstr/implement_strstr.go rename to solutions/0028_implement_strstr/implement_strstr.go diff --git a/src/0028_implement_strstr/implement_strstr_test.go b/solutions/0028_implement_strstr/implement_strstr_test.go similarity index 100% rename from src/0028_implement_strstr/implement_strstr_test.go rename to solutions/0028_implement_strstr/implement_strstr_test.go diff --git a/src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go b/solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go similarity index 100% rename from src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go rename to solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go diff --git a/src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go b/solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go similarity index 100% rename from src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go rename to solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go diff --git a/src/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go b/solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go similarity index 100% rename from src/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go rename to solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go diff --git a/src/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array_test.go b/solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array_test.go similarity index 100% rename from src/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array_test.go rename to solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array_test.go diff --git a/src/0035_search_insert_position/search_insert_position.go b/solutions/0035_search_insert_position/search_insert_position.go similarity index 100% rename from src/0035_search_insert_position/search_insert_position.go rename to solutions/0035_search_insert_position/search_insert_position.go diff --git a/src/0035_search_insert_position/search_insert_position_test.go b/solutions/0035_search_insert_position/search_insert_position_test.go similarity index 100% rename from src/0035_search_insert_position/search_insert_position_test.go rename to solutions/0035_search_insert_position/search_insert_position_test.go diff --git a/src/0048_rotate_image/rotate_image.go b/solutions/0048_rotate_image/rotate_image.go similarity index 100% rename from src/0048_rotate_image/rotate_image.go rename to solutions/0048_rotate_image/rotate_image.go diff --git a/src/0048_rotate_image/rotate_image_test.go b/solutions/0048_rotate_image/rotate_image_test.go similarity index 100% rename from src/0048_rotate_image/rotate_image_test.go rename to solutions/0048_rotate_image/rotate_image_test.go diff --git a/src/0053_maximum_subarray/maximum_subarray.go b/solutions/0053_maximum_subarray/maximum_subarray.go similarity index 100% rename from src/0053_maximum_subarray/maximum_subarray.go rename to solutions/0053_maximum_subarray/maximum_subarray.go diff --git a/src/0053_maximum_subarray/maximum_subarray_test.go b/solutions/0053_maximum_subarray/maximum_subarray_test.go similarity index 100% rename from src/0053_maximum_subarray/maximum_subarray_test.go rename to solutions/0053_maximum_subarray/maximum_subarray_test.go diff --git a/src/0058_length_of_last_word/len_of_last_word.go b/solutions/0058_length_of_last_word/len_of_last_word.go similarity index 100% rename from src/0058_length_of_last_word/len_of_last_word.go rename to solutions/0058_length_of_last_word/len_of_last_word.go diff --git a/src/0058_length_of_last_word/len_of_last_word_test.go b/solutions/0058_length_of_last_word/len_of_last_word_test.go similarity index 100% rename from src/0058_length_of_last_word/len_of_last_word_test.go rename to solutions/0058_length_of_last_word/len_of_last_word_test.go diff --git a/src/0061_rotate_list/rotate_list.go b/solutions/0061_rotate_list/rotate_list.go similarity index 100% rename from src/0061_rotate_list/rotate_list.go rename to solutions/0061_rotate_list/rotate_list.go diff --git a/src/0061_rotate_list/rotate_list_test.go b/solutions/0061_rotate_list/rotate_list_test.go similarity index 100% rename from src/0061_rotate_list/rotate_list_test.go rename to solutions/0061_rotate_list/rotate_list_test.go diff --git a/src/0062_unique_paths/unique_paths.go b/solutions/0062_unique_paths/unique_paths.go similarity index 100% rename from src/0062_unique_paths/unique_paths.go rename to solutions/0062_unique_paths/unique_paths.go diff --git a/src/0062_unique_paths/unique_paths_test.go b/solutions/0062_unique_paths/unique_paths_test.go similarity index 100% rename from src/0062_unique_paths/unique_paths_test.go rename to solutions/0062_unique_paths/unique_paths_test.go diff --git a/src/0063_unique_paths_2/unique_paths2.go b/solutions/0063_unique_paths_2/unique_paths2.go similarity index 100% rename from src/0063_unique_paths_2/unique_paths2.go rename to solutions/0063_unique_paths_2/unique_paths2.go diff --git a/src/0063_unique_paths_2/unique_paths2_test.go b/solutions/0063_unique_paths_2/unique_paths2_test.go similarity index 100% rename from src/0063_unique_paths_2/unique_paths2_test.go rename to solutions/0063_unique_paths_2/unique_paths2_test.go diff --git a/src/0064_minimum_path_sum/minimum_path_sum.go b/solutions/0064_minimum_path_sum/minimum_path_sum.go similarity index 100% rename from src/0064_minimum_path_sum/minimum_path_sum.go rename to solutions/0064_minimum_path_sum/minimum_path_sum.go diff --git a/src/0064_minimum_path_sum/minimum_path_sum_test.go b/solutions/0064_minimum_path_sum/minimum_path_sum_test.go similarity index 100% rename from src/0064_minimum_path_sum/minimum_path_sum_test.go rename to solutions/0064_minimum_path_sum/minimum_path_sum_test.go diff --git a/src/0066_plus_one/plus_one.go b/solutions/0066_plus_one/plus_one.go similarity index 100% rename from src/0066_plus_one/plus_one.go rename to solutions/0066_plus_one/plus_one.go diff --git a/src/0066_plus_one/plus_one_test.go b/solutions/0066_plus_one/plus_one_test.go similarity index 100% rename from src/0066_plus_one/plus_one_test.go rename to solutions/0066_plus_one/plus_one_test.go diff --git a/src/0067_add_binary/add_binary.go b/solutions/0067_add_binary/add_binary.go similarity index 100% rename from src/0067_add_binary/add_binary.go rename to solutions/0067_add_binary/add_binary.go diff --git a/src/0067_add_binary/add_binary_test.go b/solutions/0067_add_binary/add_binary_test.go similarity index 100% rename from src/0067_add_binary/add_binary_test.go rename to solutions/0067_add_binary/add_binary_test.go diff --git a/src/0069_sqrtx/sqrtx.go b/solutions/0069_sqrtx/sqrtx.go similarity index 100% rename from src/0069_sqrtx/sqrtx.go rename to solutions/0069_sqrtx/sqrtx.go diff --git a/src/0069_sqrtx/sqrtx_test.go b/solutions/0069_sqrtx/sqrtx_test.go similarity index 100% rename from src/0069_sqrtx/sqrtx_test.go rename to solutions/0069_sqrtx/sqrtx_test.go diff --git a/src/0070_climbing_stairs/climbing_stairs.go b/solutions/0070_climbing_stairs/climbing_stairs.go similarity index 100% rename from src/0070_climbing_stairs/climbing_stairs.go rename to solutions/0070_climbing_stairs/climbing_stairs.go diff --git a/src/0070_climbing_stairs/climbing_stairs_test.go b/solutions/0070_climbing_stairs/climbing_stairs_test.go similarity index 100% rename from src/0070_climbing_stairs/climbing_stairs_test.go rename to solutions/0070_climbing_stairs/climbing_stairs_test.go diff --git a/src/0075_sort_colors/sort_colors.go b/solutions/0075_sort_colors/sort_colors.go similarity index 100% rename from src/0075_sort_colors/sort_colors.go rename to solutions/0075_sort_colors/sort_colors.go diff --git a/src/0075_sort_colors/sort_colors_test.go b/solutions/0075_sort_colors/sort_colors_test.go similarity index 100% rename from src/0075_sort_colors/sort_colors_test.go rename to solutions/0075_sort_colors/sort_colors_test.go diff --git a/src/0076_minimum_window_substring/minimum_window_substring.go b/solutions/0076_minimum_window_substring/minimum_window_substring.go similarity index 100% rename from src/0076_minimum_window_substring/minimum_window_substring.go rename to solutions/0076_minimum_window_substring/minimum_window_substring.go diff --git a/src/0076_minimum_window_substring/minimum_window_substring_test.go b/solutions/0076_minimum_window_substring/minimum_window_substring_test.go similarity index 100% rename from src/0076_minimum_window_substring/minimum_window_substring_test.go rename to solutions/0076_minimum_window_substring/minimum_window_substring_test.go diff --git a/src/0077_combinations/combinations.go b/solutions/0077_combinations/combinations.go similarity index 100% rename from src/0077_combinations/combinations.go rename to solutions/0077_combinations/combinations.go diff --git a/src/0077_combinations/combinations_test.go b/solutions/0077_combinations/combinations_test.go similarity index 100% rename from src/0077_combinations/combinations_test.go rename to solutions/0077_combinations/combinations_test.go diff --git a/src/0079_word_search/word_search.go b/solutions/0079_word_search/word_search.go similarity index 100% rename from src/0079_word_search/word_search.go rename to solutions/0079_word_search/word_search.go diff --git a/src/0079_word_search/word_search_test.go b/solutions/0079_word_search/word_search_test.go similarity index 100% rename from src/0079_word_search/word_search_test.go rename to solutions/0079_word_search/word_search_test.go diff --git a/src/0080_remove_duplicates_from_sorted_array2/rdfsa2.go b/solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2.go similarity index 100% rename from src/0080_remove_duplicates_from_sorted_array2/rdfsa2.go rename to solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2.go diff --git a/src/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go b/solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go similarity index 100% rename from src/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go rename to solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go diff --git a/src/0082_remove_duplicates_from_sorted_list_2/rdfsl.go b/solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl.go similarity index 100% rename from src/0082_remove_duplicates_from_sorted_list_2/rdfsl.go rename to solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl.go diff --git a/src/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go b/solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go similarity index 100% rename from src/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go rename to solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go diff --git a/src/0083_remove_duplicates_from_sorted_list/rdfsl.go b/solutions/0083_remove_duplicates_from_sorted_list/rdfsl.go similarity index 100% rename from src/0083_remove_duplicates_from_sorted_list/rdfsl.go rename to solutions/0083_remove_duplicates_from_sorted_list/rdfsl.go diff --git a/src/0083_remove_duplicates_from_sorted_list/rdfsl_test.go b/solutions/0083_remove_duplicates_from_sorted_list/rdfsl_test.go similarity index 100% rename from src/0083_remove_duplicates_from_sorted_list/rdfsl_test.go rename to solutions/0083_remove_duplicates_from_sorted_list/rdfsl_test.go diff --git a/src/0086_partition_list/partition_list.go b/solutions/0086_partition_list/partition_list.go similarity index 100% rename from src/0086_partition_list/partition_list.go rename to solutions/0086_partition_list/partition_list.go diff --git a/src/0086_partition_list/partition_list_test.go b/solutions/0086_partition_list/partition_list_test.go similarity index 100% rename from src/0086_partition_list/partition_list_test.go rename to solutions/0086_partition_list/partition_list_test.go diff --git a/src/0088_merge_sorted_array/msa.go b/solutions/0088_merge_sorted_array/msa.go similarity index 100% rename from src/0088_merge_sorted_array/msa.go rename to solutions/0088_merge_sorted_array/msa.go diff --git a/src/0088_merge_sorted_array/msa_test.go b/solutions/0088_merge_sorted_array/msa_test.go similarity index 100% rename from src/0088_merge_sorted_array/msa_test.go rename to solutions/0088_merge_sorted_array/msa_test.go diff --git a/src/0092_reverse_linked_list_2/reverse_linked_list2.go b/solutions/0092_reverse_linked_list_2/reverse_linked_list2.go similarity index 100% rename from src/0092_reverse_linked_list_2/reverse_linked_list2.go rename to solutions/0092_reverse_linked_list_2/reverse_linked_list2.go diff --git a/src/0092_reverse_linked_list_2/reverse_linked_list2_test.go b/solutions/0092_reverse_linked_list_2/reverse_linked_list2_test.go similarity index 100% rename from src/0092_reverse_linked_list_2/reverse_linked_list2_test.go rename to solutions/0092_reverse_linked_list_2/reverse_linked_list2_test.go diff --git a/src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go b/solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go similarity index 100% rename from src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go rename to solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go diff --git a/src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go b/solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go similarity index 100% rename from src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go rename to solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go diff --git a/src/0100_same_tree/same_tree.go b/solutions/0100_same_tree/same_tree.go similarity index 100% rename from src/0100_same_tree/same_tree.go rename to solutions/0100_same_tree/same_tree.go diff --git a/src/0100_same_tree/same_tree_test.go b/solutions/0100_same_tree/same_tree_test.go similarity index 100% rename from src/0100_same_tree/same_tree_test.go rename to solutions/0100_same_tree/same_tree_test.go diff --git a/src/0101_symmetric_tree/symmetric_tree.go b/solutions/0101_symmetric_tree/symmetric_tree.go similarity index 100% rename from src/0101_symmetric_tree/symmetric_tree.go rename to solutions/0101_symmetric_tree/symmetric_tree.go diff --git a/src/0101_symmetric_tree/symmetric_tree_test.go b/solutions/0101_symmetric_tree/symmetric_tree_test.go similarity index 100% rename from src/0101_symmetric_tree/symmetric_tree_test.go rename to solutions/0101_symmetric_tree/symmetric_tree_test.go diff --git a/src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go b/solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go similarity index 100% rename from src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go rename to solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go diff --git a/src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go b/solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go similarity index 100% rename from src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go rename to solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go diff --git a/src/0104_maximun_depth_of_binary_tree/maxdobt.go b/solutions/0104_maximun_depth_of_binary_tree/maxdobt.go similarity index 100% rename from src/0104_maximun_depth_of_binary_tree/maxdobt.go rename to solutions/0104_maximun_depth_of_binary_tree/maxdobt.go diff --git a/src/0104_maximun_depth_of_binary_tree/maxdobt_test.go b/solutions/0104_maximun_depth_of_binary_tree/maxdobt_test.go similarity index 100% rename from src/0104_maximun_depth_of_binary_tree/maxdobt_test.go rename to solutions/0104_maximun_depth_of_binary_tree/maxdobt_test.go diff --git a/src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go b/solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go similarity index 100% rename from src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go rename to solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go diff --git a/src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go b/solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go similarity index 100% rename from src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go rename to solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go diff --git a/src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go b/solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go similarity index 100% rename from src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go rename to solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go diff --git a/src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go b/solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go similarity index 100% rename from src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go rename to solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go diff --git a/src/0112_path_sum/path_sum.go b/solutions/0112_path_sum/path_sum.go similarity index 100% rename from src/0112_path_sum/path_sum.go rename to solutions/0112_path_sum/path_sum.go diff --git a/src/0112_path_sum/path_sum_test.go b/solutions/0112_path_sum/path_sum_test.go similarity index 100% rename from src/0112_path_sum/path_sum_test.go rename to solutions/0112_path_sum/path_sum_test.go diff --git a/src/0120_triangle/triangle.go b/solutions/0120_triangle/triangle.go similarity index 100% rename from src/0120_triangle/triangle.go rename to solutions/0120_triangle/triangle.go diff --git a/src/0120_triangle/triangle_test.go b/solutions/0120_triangle/triangle_test.go similarity index 100% rename from src/0120_triangle/triangle_test.go rename to solutions/0120_triangle/triangle_test.go diff --git a/src/0121_best_time_to_buy_and_sell_stock/maxprofit.go b/solutions/0121_best_time_to_buy_and_sell_stock/maxprofit.go similarity index 100% rename from src/0121_best_time_to_buy_and_sell_stock/maxprofit.go rename to solutions/0121_best_time_to_buy_and_sell_stock/maxprofit.go diff --git a/src/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go b/solutions/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go similarity index 100% rename from src/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go rename to solutions/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go diff --git a/src/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go b/solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go similarity index 100% rename from src/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go rename to solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go diff --git a/src/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go b/solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go similarity index 100% rename from src/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go rename to solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go diff --git a/src/0125_valid_palindrome/valid_palindrome.go b/solutions/0125_valid_palindrome/valid_palindrome.go similarity index 100% rename from src/0125_valid_palindrome/valid_palindrome.go rename to solutions/0125_valid_palindrome/valid_palindrome.go diff --git a/src/0125_valid_palindrome/valid_palindrome_test.go b/solutions/0125_valid_palindrome/valid_palindrome_test.go similarity index 100% rename from src/0125_valid_palindrome/valid_palindrome_test.go rename to solutions/0125_valid_palindrome/valid_palindrome_test.go diff --git a/src/0136_single_number/single_number.go b/solutions/0136_single_number/single_number.go similarity index 100% rename from src/0136_single_number/single_number.go rename to solutions/0136_single_number/single_number.go diff --git a/src/0136_single_number/single_number_test.go b/solutions/0136_single_number/single_number_test.go similarity index 100% rename from src/0136_single_number/single_number_test.go rename to solutions/0136_single_number/single_number_test.go diff --git a/src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go b/solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go similarity index 100% rename from src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go rename to solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go diff --git a/src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go b/solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go similarity index 100% rename from src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go rename to solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go diff --git a/src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go b/solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go similarity index 100% rename from src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go rename to solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go diff --git a/src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go b/solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go similarity index 100% rename from src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go rename to solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go diff --git a/src/0153_find_minimum_in_rotated_sorted_array/fmirsa.go b/solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa.go similarity index 100% rename from src/0153_find_minimum_in_rotated_sorted_array/fmirsa.go rename to solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa.go diff --git a/src/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go b/solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go similarity index 100% rename from src/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go rename to solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go diff --git a/src/0155_min_stack/min_stack.go b/solutions/0155_min_stack/min_stack.go similarity index 100% rename from src/0155_min_stack/min_stack.go rename to solutions/0155_min_stack/min_stack.go diff --git a/src/0155_min_stack/min_stack_test.go b/solutions/0155_min_stack/min_stack_test.go similarity index 100% rename from src/0155_min_stack/min_stack_test.go rename to solutions/0155_min_stack/min_stack_test.go diff --git a/src/0165_compare_version_numbers/compare_version_numbers.go b/solutions/0165_compare_version_numbers/compare_version_numbers.go similarity index 100% rename from src/0165_compare_version_numbers/compare_version_numbers.go rename to solutions/0165_compare_version_numbers/compare_version_numbers.go diff --git a/src/0165_compare_version_numbers/compare_version_numbers_test.go b/solutions/0165_compare_version_numbers/compare_version_numbers_test.go similarity index 100% rename from src/0165_compare_version_numbers/compare_version_numbers_test.go rename to solutions/0165_compare_version_numbers/compare_version_numbers_test.go diff --git a/src/0167_two_sum2/two_sum2.go b/solutions/0167_two_sum2/two_sum2.go similarity index 100% rename from src/0167_two_sum2/two_sum2.go rename to solutions/0167_two_sum2/two_sum2.go diff --git a/src/0167_two_sum2/two_sum2_test.go b/solutions/0167_two_sum2/two_sum2_test.go similarity index 100% rename from src/0167_two_sum2/two_sum2_test.go rename to solutions/0167_two_sum2/two_sum2_test.go diff --git a/src/0179_largest_number/ln.go b/solutions/0179_largest_number/ln.go similarity index 100% rename from src/0179_largest_number/ln.go rename to solutions/0179_largest_number/ln.go diff --git a/src/0179_largest_number/ln_test.go b/solutions/0179_largest_number/ln_test.go similarity index 100% rename from src/0179_largest_number/ln_test.go rename to solutions/0179_largest_number/ln_test.go diff --git a/src/0198_house_robber/house_robber.go b/solutions/0198_house_robber/house_robber.go similarity index 100% rename from src/0198_house_robber/house_robber.go rename to solutions/0198_house_robber/house_robber.go diff --git a/src/0198_house_robber/house_robber_test.go b/solutions/0198_house_robber/house_robber_test.go similarity index 100% rename from src/0198_house_robber/house_robber_test.go rename to solutions/0198_house_robber/house_robber_test.go diff --git a/src/0200_number_of_island/number_of_island.go b/solutions/0200_number_of_island/number_of_island.go similarity index 100% rename from src/0200_number_of_island/number_of_island.go rename to solutions/0200_number_of_island/number_of_island.go diff --git a/src/0200_number_of_island/number_of_island_test.go b/solutions/0200_number_of_island/number_of_island_test.go similarity index 100% rename from src/0200_number_of_island/number_of_island_test.go rename to solutions/0200_number_of_island/number_of_island_test.go diff --git a/src/0203_remove_linked_list_elements/remove_linked_list_elements.go b/solutions/0203_remove_linked_list_elements/remove_linked_list_elements.go similarity index 100% rename from src/0203_remove_linked_list_elements/remove_linked_list_elements.go rename to solutions/0203_remove_linked_list_elements/remove_linked_list_elements.go diff --git a/src/0203_remove_linked_list_elements/remove_linked_list_elements_test.go b/solutions/0203_remove_linked_list_elements/remove_linked_list_elements_test.go similarity index 100% rename from src/0203_remove_linked_list_elements/remove_linked_list_elements_test.go rename to solutions/0203_remove_linked_list_elements/remove_linked_list_elements_test.go diff --git a/src/0206_reverse_linked_list/reverse_linked_list.go b/solutions/0206_reverse_linked_list/reverse_linked_list.go similarity index 100% rename from src/0206_reverse_linked_list/reverse_linked_list.go rename to solutions/0206_reverse_linked_list/reverse_linked_list.go diff --git a/src/0206_reverse_linked_list/reverse_linked_list_test.go b/solutions/0206_reverse_linked_list/reverse_linked_list_test.go similarity index 100% rename from src/0206_reverse_linked_list/reverse_linked_list_test.go rename to solutions/0206_reverse_linked_list/reverse_linked_list_test.go diff --git a/src/0208_implement_trie_prefix_tree/impltrie.go b/solutions/0208_implement_trie_prefix_tree/impltrie.go similarity index 100% rename from src/0208_implement_trie_prefix_tree/impltrie.go rename to solutions/0208_implement_trie_prefix_tree/impltrie.go diff --git a/src/0208_implement_trie_prefix_tree/impltrie_test.go b/solutions/0208_implement_trie_prefix_tree/impltrie_test.go similarity index 100% rename from src/0208_implement_trie_prefix_tree/impltrie_test.go rename to solutions/0208_implement_trie_prefix_tree/impltrie_test.go diff --git a/src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go b/solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go similarity index 100% rename from src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go rename to solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go diff --git a/src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go b/solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go similarity index 100% rename from src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go rename to solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go diff --git a/src/0211_add_and_search_word/add_and_search_word.go b/solutions/0211_add_and_search_word/add_and_search_word.go similarity index 100% rename from src/0211_add_and_search_word/add_and_search_word.go rename to solutions/0211_add_and_search_word/add_and_search_word.go diff --git a/src/0211_add_and_search_word/add_and_search_word_test.go b/solutions/0211_add_and_search_word/add_and_search_word_test.go similarity index 100% rename from src/0211_add_and_search_word/add_and_search_word_test.go rename to solutions/0211_add_and_search_word/add_and_search_word_test.go diff --git a/src/0215_kth_largest_element_in_an_array/kthleiaa.go b/solutions/0215_kth_largest_element_in_an_array/kthleiaa.go similarity index 100% rename from src/0215_kth_largest_element_in_an_array/kthleiaa.go rename to solutions/0215_kth_largest_element_in_an_array/kthleiaa.go diff --git a/src/0215_kth_largest_element_in_an_array/kthleiaa_test.go b/solutions/0215_kth_largest_element_in_an_array/kthleiaa_test.go similarity index 100% rename from src/0215_kth_largest_element_in_an_array/kthleiaa_test.go rename to solutions/0215_kth_largest_element_in_an_array/kthleiaa_test.go diff --git a/src/0217_contains_duplicate/contains_duplicate.go b/solutions/0217_contains_duplicate/contains_duplicate.go similarity index 100% rename from src/0217_contains_duplicate/contains_duplicate.go rename to solutions/0217_contains_duplicate/contains_duplicate.go diff --git a/src/0217_contains_duplicate/contains_duplicate_test.go b/solutions/0217_contains_duplicate/contains_duplicate_test.go similarity index 100% rename from src/0217_contains_duplicate/contains_duplicate_test.go rename to solutions/0217_contains_duplicate/contains_duplicate_test.go diff --git a/src/0219_contains_duplicate_2/contains_duplicate_2.go b/solutions/0219_contains_duplicate_2/contains_duplicate_2.go similarity index 100% rename from src/0219_contains_duplicate_2/contains_duplicate_2.go rename to solutions/0219_contains_duplicate_2/contains_duplicate_2.go diff --git a/src/0219_contains_duplicate_2/contains_duplicate_2_test.go b/solutions/0219_contains_duplicate_2/contains_duplicate_2_test.go similarity index 100% rename from src/0219_contains_duplicate_2/contains_duplicate_2_test.go rename to solutions/0219_contains_duplicate_2/contains_duplicate_2_test.go diff --git a/src/0226_invert_binary_tree/invert_binary_tree.go b/solutions/0226_invert_binary_tree/invert_binary_tree.go similarity index 100% rename from src/0226_invert_binary_tree/invert_binary_tree.go rename to solutions/0226_invert_binary_tree/invert_binary_tree.go diff --git a/src/0226_invert_binary_tree/invert_binary_tree_test.go b/solutions/0226_invert_binary_tree/invert_binary_tree_test.go similarity index 100% rename from src/0226_invert_binary_tree/invert_binary_tree_test.go rename to solutions/0226_invert_binary_tree/invert_binary_tree_test.go diff --git a/src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go b/solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go similarity index 100% rename from src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go rename to solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go diff --git a/src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go b/solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go similarity index 100% rename from src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go rename to solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go diff --git a/src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go b/solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go similarity index 100% rename from src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go rename to solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go diff --git a/src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go b/solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go similarity index 100% rename from src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go rename to solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go diff --git a/src/0237_delete_node_in_a_linked_list/dniall.go b/solutions/0237_delete_node_in_a_linked_list/dniall.go similarity index 95% rename from src/0237_delete_node_in_a_linked_list/dniall.go rename to solutions/0237_delete_node_in_a_linked_list/dniall.go index f4ea8d5..12c4ade 100644 --- a/src/0237_delete_node_in_a_linked_list/dniall.go +++ b/solutions/0237_delete_node_in_a_linked_list/dniall.go @@ -24,7 +24,7 @@ type ListNode struct { // space complexity: O(1) func deleteNode(node *ListNode) { // The linked list will have at least two elements. - // All of the nodes' values will be unique. + // All the nodes' values will be unique. // The given node will not be the tail and it will always be a valid node of the linked list. node.Val = node.Next.Val node.Next = node.Next.Next diff --git a/src/0237_delete_node_in_a_linked_list/dniall_test.go b/solutions/0237_delete_node_in_a_linked_list/dniall_test.go similarity index 100% rename from src/0237_delete_node_in_a_linked_list/dniall_test.go rename to solutions/0237_delete_node_in_a_linked_list/dniall_test.go diff --git a/src/0257_binary_tree_paths/binary_tree_paths.go b/solutions/0257_binary_tree_paths/binary_tree_paths.go similarity index 100% rename from src/0257_binary_tree_paths/binary_tree_paths.go rename to solutions/0257_binary_tree_paths/binary_tree_paths.go diff --git a/src/0257_binary_tree_paths/binary_tree_paths_test.go b/solutions/0257_binary_tree_paths/binary_tree_paths_test.go similarity index 100% rename from src/0257_binary_tree_paths/binary_tree_paths_test.go rename to solutions/0257_binary_tree_paths/binary_tree_paths_test.go diff --git a/src/0258_add_digits/add_digits.go b/solutions/0258_add_digits/add_digits.go similarity index 100% rename from src/0258_add_digits/add_digits.go rename to solutions/0258_add_digits/add_digits.go diff --git a/src/0258_add_digits/add_digits_test.go b/solutions/0258_add_digits/add_digits_test.go similarity index 100% rename from src/0258_add_digits/add_digits_test.go rename to solutions/0258_add_digits/add_digits_test.go diff --git a/src/0283_move_zeroes/move_zeroes.go b/solutions/0283_move_zeroes/move_zeroes.go similarity index 100% rename from src/0283_move_zeroes/move_zeroes.go rename to solutions/0283_move_zeroes/move_zeroes.go diff --git a/src/0283_move_zeroes/move_zeroes2.go b/solutions/0283_move_zeroes/move_zeroes2.go similarity index 100% rename from src/0283_move_zeroes/move_zeroes2.go rename to solutions/0283_move_zeroes/move_zeroes2.go diff --git a/src/0283_move_zeroes/move_zeroes2_test.go b/solutions/0283_move_zeroes/move_zeroes2_test.go similarity index 100% rename from src/0283_move_zeroes/move_zeroes2_test.go rename to solutions/0283_move_zeroes/move_zeroes2_test.go diff --git a/src/0283_move_zeroes/move_zeroes_test.go b/solutions/0283_move_zeroes/move_zeroes_test.go similarity index 100% rename from src/0283_move_zeroes/move_zeroes_test.go rename to solutions/0283_move_zeroes/move_zeroes_test.go diff --git a/src/0300_longest_increasing_subsequence/lis.go b/solutions/0300_longest_increasing_subsequence/lis.go similarity index 100% rename from src/0300_longest_increasing_subsequence/lis.go rename to solutions/0300_longest_increasing_subsequence/lis.go diff --git a/src/0300_longest_increasing_subsequence/lis_test.go b/solutions/0300_longest_increasing_subsequence/lis_test.go similarity index 100% rename from src/0300_longest_increasing_subsequence/lis_test.go rename to solutions/0300_longest_increasing_subsequence/lis_test.go diff --git a/src/0303_range_sum_query/rsqim.go b/solutions/0303_range_sum_query/rsqim.go similarity index 100% rename from src/0303_range_sum_query/rsqim.go rename to solutions/0303_range_sum_query/rsqim.go diff --git a/src/0303_range_sum_query/rsqim_test.go b/solutions/0303_range_sum_query/rsqim_test.go similarity index 100% rename from src/0303_range_sum_query/rsqim_test.go rename to solutions/0303_range_sum_query/rsqim_test.go diff --git a/src/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go b/solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go similarity index 100% rename from src/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go rename to solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go diff --git a/src/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go b/solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go similarity index 100% rename from src/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go rename to solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go diff --git a/src/0328_odd_even_linked_list/odd_even_linked_list.go b/solutions/0328_odd_even_linked_list/odd_even_linked_list.go similarity index 100% rename from src/0328_odd_even_linked_list/odd_even_linked_list.go rename to solutions/0328_odd_even_linked_list/odd_even_linked_list.go diff --git a/src/0328_odd_even_linked_list/odd_even_linked_list_test.go b/solutions/0328_odd_even_linked_list/odd_even_linked_list_test.go similarity index 100% rename from src/0328_odd_even_linked_list/odd_even_linked_list_test.go rename to solutions/0328_odd_even_linked_list/odd_even_linked_list_test.go diff --git a/src/0343_integer_break/integer_break.go b/solutions/0343_integer_break/integer_break.go similarity index 100% rename from src/0343_integer_break/integer_break.go rename to solutions/0343_integer_break/integer_break.go diff --git a/src/0343_integer_break/integer_break_test.go b/solutions/0343_integer_break/integer_break_test.go similarity index 100% rename from src/0343_integer_break/integer_break_test.go rename to solutions/0343_integer_break/integer_break_test.go diff --git a/src/0344_reverse_string/reverse_string.go b/solutions/0344_reverse_string/reverse_string.go similarity index 100% rename from src/0344_reverse_string/reverse_string.go rename to solutions/0344_reverse_string/reverse_string.go diff --git a/src/0344_reverse_string/reverse_string_test.go b/solutions/0344_reverse_string/reverse_string_test.go similarity index 100% rename from src/0344_reverse_string/reverse_string_test.go rename to solutions/0344_reverse_string/reverse_string_test.go diff --git a/src/0345_reverse_vowels_of_a_string/reverse_vowels.go b/solutions/0345_reverse_vowels_of_a_string/reverse_vowels.go similarity index 100% rename from src/0345_reverse_vowels_of_a_string/reverse_vowels.go rename to solutions/0345_reverse_vowels_of_a_string/reverse_vowels.go diff --git a/src/0345_reverse_vowels_of_a_string/reverse_vowels_test.go b/solutions/0345_reverse_vowels_of_a_string/reverse_vowels_test.go similarity index 100% rename from src/0345_reverse_vowels_of_a_string/reverse_vowels_test.go rename to solutions/0345_reverse_vowels_of_a_string/reverse_vowels_test.go diff --git a/src/0347_top_k_frequent_elements/topkfe.go b/solutions/0347_top_k_frequent_elements/topkfe.go similarity index 100% rename from src/0347_top_k_frequent_elements/topkfe.go rename to solutions/0347_top_k_frequent_elements/topkfe.go diff --git a/src/0347_top_k_frequent_elements/topkfe_test.go b/solutions/0347_top_k_frequent_elements/topkfe_test.go similarity index 100% rename from src/0347_top_k_frequent_elements/topkfe_test.go rename to solutions/0347_top_k_frequent_elements/topkfe_test.go diff --git a/src/0349_intersection_of_2_arrays/intersection_of_two_arrays.go b/solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays.go similarity index 100% rename from src/0349_intersection_of_2_arrays/intersection_of_two_arrays.go rename to solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays.go diff --git a/src/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go b/solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go similarity index 100% rename from src/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go rename to solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go diff --git a/src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go b/solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go similarity index 100% rename from src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go rename to solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go diff --git a/src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go b/solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go similarity index 100% rename from src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go rename to solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go diff --git a/src/0376_wiggle_subsequence/wiggle_subsequence.go b/solutions/0376_wiggle_subsequence/wiggle_subsequence.go similarity index 100% rename from src/0376_wiggle_subsequence/wiggle_subsequence.go rename to solutions/0376_wiggle_subsequence/wiggle_subsequence.go diff --git a/src/0376_wiggle_subsequence/wiggle_subsequence_test.go b/solutions/0376_wiggle_subsequence/wiggle_subsequence_test.go similarity index 100% rename from src/0376_wiggle_subsequence/wiggle_subsequence_test.go rename to solutions/0376_wiggle_subsequence/wiggle_subsequence_test.go diff --git a/src/0392_is_subsequence/is_subsequence.go b/solutions/0392_is_subsequence/is_subsequence.go similarity index 100% rename from src/0392_is_subsequence/is_subsequence.go rename to solutions/0392_is_subsequence/is_subsequence.go diff --git a/src/0392_is_subsequence/is_subsequence_test.go b/solutions/0392_is_subsequence/is_subsequence_test.go similarity index 100% rename from src/0392_is_subsequence/is_subsequence_test.go rename to solutions/0392_is_subsequence/is_subsequence_test.go diff --git a/src/0404_sum_of_left_leaves/sum_of_left_leaves.go b/solutions/0404_sum_of_left_leaves/sum_of_left_leaves.go similarity index 100% rename from src/0404_sum_of_left_leaves/sum_of_left_leaves.go rename to solutions/0404_sum_of_left_leaves/sum_of_left_leaves.go diff --git a/src/0404_sum_of_left_leaves/sum_of_left_leaves_test.go b/solutions/0404_sum_of_left_leaves/sum_of_left_leaves_test.go similarity index 100% rename from src/0404_sum_of_left_leaves/sum_of_left_leaves_test.go rename to solutions/0404_sum_of_left_leaves/sum_of_left_leaves_test.go diff --git a/src/0416_partition_equal_subset_sum/partition_equal_subset_sum.go b/solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum.go similarity index 100% rename from src/0416_partition_equal_subset_sum/partition_equal_subset_sum.go rename to solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum.go diff --git a/src/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go b/solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go similarity index 100% rename from src/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go rename to solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go diff --git a/src/0435_non_overlapping_intervals/dp_solution.go b/solutions/0435_non_overlapping_intervals/dp_solution.go similarity index 100% rename from src/0435_non_overlapping_intervals/dp_solution.go rename to solutions/0435_non_overlapping_intervals/dp_solution.go diff --git a/src/0435_non_overlapping_intervals/greedy_solution.go b/solutions/0435_non_overlapping_intervals/greedy_solution.go similarity index 100% rename from src/0435_non_overlapping_intervals/greedy_solution.go rename to solutions/0435_non_overlapping_intervals/greedy_solution.go diff --git a/src/0435_non_overlapping_intervals/interval.go b/solutions/0435_non_overlapping_intervals/interval.go similarity index 100% rename from src/0435_non_overlapping_intervals/interval.go rename to solutions/0435_non_overlapping_intervals/interval.go diff --git a/src/0435_non_overlapping_intervals/solution_test.go b/solutions/0435_non_overlapping_intervals/solution_test.go similarity index 100% rename from src/0435_non_overlapping_intervals/solution_test.go rename to solutions/0435_non_overlapping_intervals/solution_test.go diff --git a/src/0437_path_sum_3/path_sum_3.go b/solutions/0437_path_sum_3/path_sum_3.go similarity index 100% rename from src/0437_path_sum_3/path_sum_3.go rename to solutions/0437_path_sum_3/path_sum_3.go diff --git a/src/0437_path_sum_3/path_sum_3_test.go b/solutions/0437_path_sum_3/path_sum_3_test.go similarity index 100% rename from src/0437_path_sum_3/path_sum_3_test.go rename to solutions/0437_path_sum_3/path_sum_3_test.go diff --git a/src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go b/solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go similarity index 100% rename from src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go rename to solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go diff --git a/src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go b/solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go similarity index 100% rename from src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go rename to solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go diff --git a/src/0447_number_of_boomerangs/number_of_boomerangs.go b/solutions/0447_number_of_boomerangs/number_of_boomerangs.go similarity index 100% rename from src/0447_number_of_boomerangs/number_of_boomerangs.go rename to solutions/0447_number_of_boomerangs/number_of_boomerangs.go diff --git a/src/0447_number_of_boomerangs/number_of_boomerangs_test.go b/solutions/0447_number_of_boomerangs/number_of_boomerangs_test.go similarity index 100% rename from src/0447_number_of_boomerangs/number_of_boomerangs_test.go rename to solutions/0447_number_of_boomerangs/number_of_boomerangs_test.go diff --git a/src/0454_4sum2/4sum2.go b/solutions/0454_4sum2/4sum2.go similarity index 100% rename from src/0454_4sum2/4sum2.go rename to solutions/0454_4sum2/4sum2.go diff --git a/src/0454_4sum2/4sum2_test.go b/solutions/0454_4sum2/4sum2_test.go similarity index 100% rename from src/0454_4sum2/4sum2_test.go rename to solutions/0454_4sum2/4sum2_test.go diff --git a/src/0455_assign_cookies/assign_cookies.go b/solutions/0455_assign_cookies/assign_cookies.go similarity index 100% rename from src/0455_assign_cookies/assign_cookies.go rename to solutions/0455_assign_cookies/assign_cookies.go diff --git a/src/0455_assign_cookies/assign_cookies_test.go b/solutions/0455_assign_cookies/assign_cookies_test.go similarity index 100% rename from src/0455_assign_cookies/assign_cookies_test.go rename to solutions/0455_assign_cookies/assign_cookies_test.go diff --git a/src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go b/solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go similarity index 100% rename from src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go rename to solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go diff --git a/src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go b/solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go similarity index 100% rename from src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go rename to solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go diff --git a/src/0674_longest_continuous_increasing_subsequence/lcis.go b/solutions/0674_longest_continuous_increasing_subsequence/lcis.go similarity index 100% rename from src/0674_longest_continuous_increasing_subsequence/lcis.go rename to solutions/0674_longest_continuous_increasing_subsequence/lcis.go diff --git a/src/0674_longest_continuous_increasing_subsequence/lcis_test.go b/solutions/0674_longest_continuous_increasing_subsequence/lcis_test.go similarity index 100% rename from src/0674_longest_continuous_increasing_subsequence/lcis_test.go rename to solutions/0674_longest_continuous_increasing_subsequence/lcis_test.go diff --git a/src/0677_map_sum_pairs/map_sum_pairs.go b/solutions/0677_map_sum_pairs/map_sum_pairs.go similarity index 100% rename from src/0677_map_sum_pairs/map_sum_pairs.go rename to solutions/0677_map_sum_pairs/map_sum_pairs.go diff --git a/src/0677_map_sum_pairs/map_sum_pairs_test.go b/solutions/0677_map_sum_pairs/map_sum_pairs_test.go similarity index 100% rename from src/0677_map_sum_pairs/map_sum_pairs_test.go rename to solutions/0677_map_sum_pairs/map_sum_pairs_test.go diff --git a/src/0704_binary_search/binary_search.go b/solutions/0704_binary_search/binary_search.go similarity index 100% rename from src/0704_binary_search/binary_search.go rename to solutions/0704_binary_search/binary_search.go diff --git a/src/0704_binary_search/binary_search_test.go b/solutions/0704_binary_search/binary_search_test.go similarity index 100% rename from src/0704_binary_search/binary_search_test.go rename to solutions/0704_binary_search/binary_search_test.go diff --git a/src/0713_subarray_product_less_than_k/spltk.go b/solutions/0713_subarray_product_less_than_k/spltk.go similarity index 100% rename from src/0713_subarray_product_less_than_k/spltk.go rename to solutions/0713_subarray_product_less_than_k/spltk.go diff --git a/src/0713_subarray_product_less_than_k/spltk_test.go b/solutions/0713_subarray_product_less_than_k/spltk_test.go similarity index 100% rename from src/0713_subarray_product_less_than_k/spltk_test.go rename to solutions/0713_subarray_product_less_than_k/spltk_test.go diff --git a/src/0717_1_bit_and_2_bit_characters/1bitand2bitc.go b/solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc.go similarity index 100% rename from src/0717_1_bit_and_2_bit_characters/1bitand2bitc.go rename to solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc.go diff --git a/src/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go b/solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go similarity index 100% rename from src/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go rename to solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go diff --git a/src/0728_self_dividing_numbers/self_dividing_numbers.go b/solutions/0728_self_dividing_numbers/self_dividing_numbers.go similarity index 100% rename from src/0728_self_dividing_numbers/self_dividing_numbers.go rename to solutions/0728_self_dividing_numbers/self_dividing_numbers.go diff --git a/src/0728_self_dividing_numbers/self_dividing_numbers_test.go b/solutions/0728_self_dividing_numbers/self_dividing_numbers_test.go similarity index 100% rename from src/0728_self_dividing_numbers/self_dividing_numbers_test.go rename to solutions/0728_self_dividing_numbers/self_dividing_numbers_test.go diff --git a/src/0735_asteroid_collision/ac.go b/solutions/0735_asteroid_collision/ac.go similarity index 100% rename from src/0735_asteroid_collision/ac.go rename to solutions/0735_asteroid_collision/ac.go diff --git a/src/0735_asteroid_collision/ac_test.go b/solutions/0735_asteroid_collision/ac_test.go similarity index 100% rename from src/0735_asteroid_collision/ac_test.go rename to solutions/0735_asteroid_collision/ac_test.go diff --git a/src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go b/solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go similarity index 100% rename from src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go rename to solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go diff --git a/src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go b/solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go similarity index 100% rename from src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go rename to solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go diff --git a/src/0872_leaf_similar_trees/leaf_similar_trees.go b/solutions/0872_leaf_similar_trees/leaf_similar_trees.go similarity index 100% rename from src/0872_leaf_similar_trees/leaf_similar_trees.go rename to solutions/0872_leaf_similar_trees/leaf_similar_trees.go diff --git a/src/0872_leaf_similar_trees/leaf_similar_trees_test.go b/solutions/0872_leaf_similar_trees/leaf_similar_trees_test.go similarity index 100% rename from src/0872_leaf_similar_trees/leaf_similar_trees_test.go rename to solutions/0872_leaf_similar_trees/leaf_similar_trees_test.go diff --git a/src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go b/solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go similarity index 100% rename from src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go rename to solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go diff --git a/src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go b/solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go similarity index 100% rename from src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go rename to solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go diff --git a/src/148_Sort_List/sortlist.go b/solutions/148_Sort_List/sortlist.go similarity index 100% rename from src/148_Sort_List/sortlist.go rename to solutions/148_Sort_List/sortlist.go diff --git a/src/148_Sort_List/sortlist_test.go b/solutions/148_Sort_List/sortlist_test.go similarity index 100% rename from src/148_Sort_List/sortlist_test.go rename to solutions/148_Sort_List/sortlist_test.go diff --git a/src/304_Range_Sum_Query_2D/rsq.go b/solutions/304_Range_Sum_Query_2D/rsq.go similarity index 100% rename from src/304_Range_Sum_Query_2D/rsq.go rename to solutions/304_Range_Sum_Query_2D/rsq.go diff --git a/src/304_Range_Sum_Query_2D/rsq_test.go b/solutions/304_Range_Sum_Query_2D/rsq_test.go similarity index 100% rename from src/304_Range_Sum_Query_2D/rsq_test.go rename to solutions/304_Range_Sum_Query_2D/rsq_test.go diff --git a/src/README.md b/solutions/README.md similarity index 98% rename from src/README.md rename to solutions/README.md index 0ab80f3..44002aa 100644 --- a/src/README.md +++ b/solutions/README.md @@ -1,8 +1,8 @@ -### Solution for LeetCode algorithm problems, continually updating. +### Solutions for LeetCode algorithm problems, continually updating. |ID|Title && solution|Coefficient of difficulty|remarks| |:---:|:---:|:---:|:---:| -|0001|[Two Sum](./0001_two_sum/twosum.go)|Easy|*`array;`* *`lookup table`*| +|0001|[Two Sum](0001_two_sum/twosum.go)|Easy|*`array;`* *`lookup table`*| |0002|[Add Two Numbers](0002_add_two_numbers/add_two_numbers.go)|Medium|*`linked list`*| |0003|[Longest Substring Without Repeating Characters](0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go)|Medium|*`sliding window`*| |0004|[4. Median of Two Sorted Arrays](0004_median_of_two_sorted_arrays/motsa.go)|Hard|*`binary search`*| diff --git a/utils/maxint_test.go b/utils/maxint_test.go index e44248f..06cd6e7 100644 --- a/utils/maxint_test.go +++ b/utils/maxint_test.go @@ -15,3 +15,10 @@ func TestCalcMaxInt(t *testing.T) { } } } + +func BenchmarkCalcMaxInt(b *testing.B) { + data := []int{3, 4, 67, 8} + for i := 0; i < b.N; i++ { + CalcMaxInt(data...) + } +} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy