diff --git a/README.md b/README.md deleted file mode 120000 index d5d3497..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -solutions/README.md \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c4cf90f --- /dev/null +++ b/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](./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/bak.README.md b/bak.README.md deleted file mode 100644 index a1725ac..0000000 --- a/bak.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](./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/solutions/0001_two_sum/twosum.go b/src/0001_two_sum/twosum.go similarity index 100% rename from solutions/0001_two_sum/twosum.go rename to src/0001_two_sum/twosum.go diff --git a/solutions/0001_two_sum/twosum_test.go b/src/0001_two_sum/twosum_test.go similarity index 100% rename from solutions/0001_two_sum/twosum_test.go rename to src/0001_two_sum/twosum_test.go diff --git a/solutions/0002_add_two_numbers/add_two_numbers.go b/src/0002_add_two_numbers/add_two_numbers.go similarity index 100% rename from solutions/0002_add_two_numbers/add_two_numbers.go rename to src/0002_add_two_numbers/add_two_numbers.go diff --git a/solutions/0002_add_two_numbers/add_two_numbers_test.go b/src/0002_add_two_numbers/add_two_numbers_test.go similarity index 100% rename from solutions/0002_add_two_numbers/add_two_numbers_test.go rename to src/0002_add_two_numbers/add_two_numbers_test.go diff --git a/solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go b/src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go similarity index 100% rename from solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go rename to src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters.go diff --git a/solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go b/src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go similarity index 100% rename from solutions/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go rename to src/0003_longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go diff --git a/solutions/0004_median_of_two_sorted_arrays/motsa.go b/src/0004_median_of_two_sorted_arrays/motsa.go similarity index 100% rename from solutions/0004_median_of_two_sorted_arrays/motsa.go rename to src/0004_median_of_two_sorted_arrays/motsa.go diff --git a/solutions/0004_median_of_two_sorted_arrays/motsa_test.go b/src/0004_median_of_two_sorted_arrays/motsa_test.go similarity index 100% rename from solutions/0004_median_of_two_sorted_arrays/motsa_test.go rename to src/0004_median_of_two_sorted_arrays/motsa_test.go diff --git a/solutions/0007_reverse_integer/reverse_integer.go b/src/0007_reverse_integer/reverse_integer.go similarity index 100% rename from solutions/0007_reverse_integer/reverse_integer.go rename to src/0007_reverse_integer/reverse_integer.go diff --git a/solutions/0007_reverse_integer/reverse_integer_test.go b/src/0007_reverse_integer/reverse_integer_test.go similarity index 100% rename from solutions/0007_reverse_integer/reverse_integer_test.go rename to src/0007_reverse_integer/reverse_integer_test.go diff --git a/solutions/0009_palindrome_number/palindrome_number.go b/src/0009_palindrome_number/palindrome_number.go similarity index 100% rename from solutions/0009_palindrome_number/palindrome_number.go rename to src/0009_palindrome_number/palindrome_number.go diff --git a/solutions/0009_palindrome_number/palindrome_number_test.go b/src/0009_palindrome_number/palindrome_number_test.go similarity index 100% rename from solutions/0009_palindrome_number/palindrome_number_test.go rename to src/0009_palindrome_number/palindrome_number_test.go diff --git a/solutions/0011_container_with_most_water/container_with_most_water.go b/src/0011_container_with_most_water/container_with_most_water.go similarity index 100% rename from solutions/0011_container_with_most_water/container_with_most_water.go rename to src/0011_container_with_most_water/container_with_most_water.go diff --git a/solutions/0011_container_with_most_water/container_with_most_water_test.go b/src/0011_container_with_most_water/container_with_most_water_test.go similarity index 100% rename from solutions/0011_container_with_most_water/container_with_most_water_test.go rename to src/0011_container_with_most_water/container_with_most_water_test.go diff --git a/solutions/0013_roman_to_integer/roman_to_integer.go b/src/0013_roman_to_integer/roman_to_integer.go similarity index 100% rename from solutions/0013_roman_to_integer/roman_to_integer.go rename to src/0013_roman_to_integer/roman_to_integer.go diff --git a/solutions/0013_roman_to_integer/roman_to_integer_test.go b/src/0013_roman_to_integer/roman_to_integer_test.go similarity index 100% rename from solutions/0013_roman_to_integer/roman_to_integer_test.go rename to src/0013_roman_to_integer/roman_to_integer_test.go diff --git a/solutions/0014_longest_common_prefix/lcp.go b/src/0014_longest_common_prefix/lcp.go similarity index 100% rename from solutions/0014_longest_common_prefix/lcp.go rename to src/0014_longest_common_prefix/lcp.go diff --git a/solutions/0014_longest_common_prefix/lcp_test.go b/src/0014_longest_common_prefix/lcp_test.go similarity index 100% rename from solutions/0014_longest_common_prefix/lcp_test.go rename to src/0014_longest_common_prefix/lcp_test.go diff --git a/solutions/0015_3Sum/3sum.go b/src/0015_3Sum/3sum.go similarity index 100% rename from solutions/0015_3Sum/3sum.go rename to src/0015_3Sum/3sum.go diff --git a/solutions/0015_3Sum/3sum_test.go b/src/0015_3Sum/3sum_test.go similarity index 100% rename from solutions/0015_3Sum/3sum_test.go rename to src/0015_3Sum/3sum_test.go diff --git a/solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go b/src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go similarity index 100% rename from solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go rename to src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number.go diff --git a/solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go b/src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go similarity index 100% rename from solutions/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go rename to src/0017_letter_combination_of_a_phone_number/letter_combination_of_phone_number_test.go diff --git a/solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go b/src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go similarity index 100% rename from solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go rename to src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list.go diff --git a/solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go b/src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go similarity index 100% rename from solutions/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go rename to src/0019_remove_nth_node_from_end_of_list/remove_nth_node_from_end_of_list_test.go diff --git a/solutions/0020_valid_parentheses/valid_parentheses.go b/src/0020_valid_parentheses/valid_parentheses.go similarity index 100% rename from solutions/0020_valid_parentheses/valid_parentheses.go rename to src/0020_valid_parentheses/valid_parentheses.go diff --git a/solutions/0020_valid_parentheses/valid_parentheses_test.go b/src/0020_valid_parentheses/valid_parentheses_test.go similarity index 100% rename from solutions/0020_valid_parentheses/valid_parentheses_test.go rename to src/0020_valid_parentheses/valid_parentheses_test.go diff --git a/solutions/0021_merge_two_sorted_lists/mergeTwoLists.go b/src/0021_merge_two_sorted_lists/mergeTwoLists.go similarity index 100% rename from solutions/0021_merge_two_sorted_lists/mergeTwoLists.go rename to src/0021_merge_two_sorted_lists/mergeTwoLists.go diff --git a/solutions/0021_merge_two_sorted_lists/mergeTwoLists_test.go b/src/0021_merge_two_sorted_lists/mergeTwoLists_test.go similarity index 100% rename from solutions/0021_merge_two_sorted_lists/mergeTwoLists_test.go rename to src/0021_merge_two_sorted_lists/mergeTwoLists_test.go diff --git a/solutions/0023_merge_k_sorted_lists/mksl.go b/src/0023_merge_k_sorted_lists/mksl.go similarity index 100% rename from solutions/0023_merge_k_sorted_lists/mksl.go rename to src/0023_merge_k_sorted_lists/mksl.go diff --git a/solutions/0023_merge_k_sorted_lists/mksl_test.go b/src/0023_merge_k_sorted_lists/mksl_test.go similarity index 100% rename from solutions/0023_merge_k_sorted_lists/mksl_test.go rename to src/0023_merge_k_sorted_lists/mksl_test.go diff --git a/solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go b/src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go similarity index 100% rename from solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go rename to src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs.go diff --git a/solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go b/src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go similarity index 100% rename from solutions/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go rename to src/0024_swap_nodes_in_pairs/swap_nodes_in_pairs_test.go diff --git a/solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group.go b/src/0025_reverse_nodes_in_k_group/reverse_node_k_group.go similarity index 100% rename from solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group.go rename to src/0025_reverse_nodes_in_k_group/reverse_node_k_group.go diff --git a/solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go b/src/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go similarity index 100% rename from solutions/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go rename to src/0025_reverse_nodes_in_k_group/reverse_node_k_group_test.go diff --git a/solutions/0026_remove_duplicates_from_sorted_array/rdfsa.go b/src/0026_remove_duplicates_from_sorted_array/rdfsa.go similarity index 100% rename from solutions/0026_remove_duplicates_from_sorted_array/rdfsa.go rename to src/0026_remove_duplicates_from_sorted_array/rdfsa.go diff --git a/solutions/0026_remove_duplicates_from_sorted_array/rdfsa_test.go b/src/0026_remove_duplicates_from_sorted_array/rdfsa_test.go similarity index 100% rename from solutions/0026_remove_duplicates_from_sorted_array/rdfsa_test.go rename to src/0026_remove_duplicates_from_sorted_array/rdfsa_test.go diff --git a/solutions/0027_remove_element/remove_element.go b/src/0027_remove_element/remove_element.go similarity index 100% rename from solutions/0027_remove_element/remove_element.go rename to src/0027_remove_element/remove_element.go diff --git a/solutions/0027_remove_element/remove_element_test.go b/src/0027_remove_element/remove_element_test.go similarity index 100% rename from solutions/0027_remove_element/remove_element_test.go rename to src/0027_remove_element/remove_element_test.go diff --git a/solutions/0028_implement_strstr/implement_strstr.go b/src/0028_implement_strstr/implement_strstr.go similarity index 100% rename from solutions/0028_implement_strstr/implement_strstr.go rename to src/0028_implement_strstr/implement_strstr.go diff --git a/solutions/0028_implement_strstr/implement_strstr_test.go b/src/0028_implement_strstr/implement_strstr_test.go similarity index 100% rename from solutions/0028_implement_strstr/implement_strstr_test.go rename to src/0028_implement_strstr/implement_strstr_test.go diff --git a/solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go b/src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go similarity index 100% rename from solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go rename to src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array.go diff --git a/solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go b/src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go similarity index 100% rename from solutions/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go rename to src/0033_search_in_rotated_sorted_array/search_in_rotated_sorted_array_test.go diff --git a/solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go b/src/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 solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array.go rename to src/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/solutions/0034_find_first_and_last_position_of_element_in_sorted_array/find_first_and_last_position_of_element_in_sorted_array_test.go b/src/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 solutions/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 src/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/solutions/0035_search_insert_position/search_insert_position.go b/src/0035_search_insert_position/search_insert_position.go similarity index 100% rename from solutions/0035_search_insert_position/search_insert_position.go rename to src/0035_search_insert_position/search_insert_position.go diff --git a/solutions/0035_search_insert_position/search_insert_position_test.go b/src/0035_search_insert_position/search_insert_position_test.go similarity index 100% rename from solutions/0035_search_insert_position/search_insert_position_test.go rename to src/0035_search_insert_position/search_insert_position_test.go diff --git a/solutions/0048_rotate_image/rotate_image.go b/src/0048_rotate_image/rotate_image.go similarity index 100% rename from solutions/0048_rotate_image/rotate_image.go rename to src/0048_rotate_image/rotate_image.go diff --git a/solutions/0048_rotate_image/rotate_image_test.go b/src/0048_rotate_image/rotate_image_test.go similarity index 100% rename from solutions/0048_rotate_image/rotate_image_test.go rename to src/0048_rotate_image/rotate_image_test.go diff --git a/solutions/0053_maximum_subarray/maximum_subarray.go b/src/0053_maximum_subarray/maximum_subarray.go similarity index 100% rename from solutions/0053_maximum_subarray/maximum_subarray.go rename to src/0053_maximum_subarray/maximum_subarray.go diff --git a/solutions/0053_maximum_subarray/maximum_subarray_test.go b/src/0053_maximum_subarray/maximum_subarray_test.go similarity index 100% rename from solutions/0053_maximum_subarray/maximum_subarray_test.go rename to src/0053_maximum_subarray/maximum_subarray_test.go diff --git a/solutions/0058_length_of_last_word/len_of_last_word.go b/src/0058_length_of_last_word/len_of_last_word.go similarity index 100% rename from solutions/0058_length_of_last_word/len_of_last_word.go rename to src/0058_length_of_last_word/len_of_last_word.go diff --git a/solutions/0058_length_of_last_word/len_of_last_word_test.go b/src/0058_length_of_last_word/len_of_last_word_test.go similarity index 100% rename from solutions/0058_length_of_last_word/len_of_last_word_test.go rename to src/0058_length_of_last_word/len_of_last_word_test.go diff --git a/solutions/0061_rotate_list/rotate_list.go b/src/0061_rotate_list/rotate_list.go similarity index 100% rename from solutions/0061_rotate_list/rotate_list.go rename to src/0061_rotate_list/rotate_list.go diff --git a/solutions/0061_rotate_list/rotate_list_test.go b/src/0061_rotate_list/rotate_list_test.go similarity index 100% rename from solutions/0061_rotate_list/rotate_list_test.go rename to src/0061_rotate_list/rotate_list_test.go diff --git a/solutions/0062_unique_paths/unique_paths.go b/src/0062_unique_paths/unique_paths.go similarity index 100% rename from solutions/0062_unique_paths/unique_paths.go rename to src/0062_unique_paths/unique_paths.go diff --git a/solutions/0062_unique_paths/unique_paths_test.go b/src/0062_unique_paths/unique_paths_test.go similarity index 100% rename from solutions/0062_unique_paths/unique_paths_test.go rename to src/0062_unique_paths/unique_paths_test.go diff --git a/solutions/0063_unique_paths_2/unique_paths2.go b/src/0063_unique_paths_2/unique_paths2.go similarity index 100% rename from solutions/0063_unique_paths_2/unique_paths2.go rename to src/0063_unique_paths_2/unique_paths2.go diff --git a/solutions/0063_unique_paths_2/unique_paths2_test.go b/src/0063_unique_paths_2/unique_paths2_test.go similarity index 100% rename from solutions/0063_unique_paths_2/unique_paths2_test.go rename to src/0063_unique_paths_2/unique_paths2_test.go diff --git a/solutions/0064_minimum_path_sum/minimum_path_sum.go b/src/0064_minimum_path_sum/minimum_path_sum.go similarity index 100% rename from solutions/0064_minimum_path_sum/minimum_path_sum.go rename to src/0064_minimum_path_sum/minimum_path_sum.go diff --git a/solutions/0064_minimum_path_sum/minimum_path_sum_test.go b/src/0064_minimum_path_sum/minimum_path_sum_test.go similarity index 100% rename from solutions/0064_minimum_path_sum/minimum_path_sum_test.go rename to src/0064_minimum_path_sum/minimum_path_sum_test.go diff --git a/solutions/0066_plus_one/plus_one.go b/src/0066_plus_one/plus_one.go similarity index 100% rename from solutions/0066_plus_one/plus_one.go rename to src/0066_plus_one/plus_one.go diff --git a/solutions/0066_plus_one/plus_one_test.go b/src/0066_plus_one/plus_one_test.go similarity index 100% rename from solutions/0066_plus_one/plus_one_test.go rename to src/0066_plus_one/plus_one_test.go diff --git a/solutions/0067_add_binary/add_binary.go b/src/0067_add_binary/add_binary.go similarity index 100% rename from solutions/0067_add_binary/add_binary.go rename to src/0067_add_binary/add_binary.go diff --git a/solutions/0067_add_binary/add_binary_test.go b/src/0067_add_binary/add_binary_test.go similarity index 100% rename from solutions/0067_add_binary/add_binary_test.go rename to src/0067_add_binary/add_binary_test.go diff --git a/solutions/0069_sqrtx/sqrtx.go b/src/0069_sqrtx/sqrtx.go similarity index 100% rename from solutions/0069_sqrtx/sqrtx.go rename to src/0069_sqrtx/sqrtx.go diff --git a/solutions/0069_sqrtx/sqrtx_test.go b/src/0069_sqrtx/sqrtx_test.go similarity index 100% rename from solutions/0069_sqrtx/sqrtx_test.go rename to src/0069_sqrtx/sqrtx_test.go diff --git a/solutions/0070_climbing_stairs/climbing_stairs.go b/src/0070_climbing_stairs/climbing_stairs.go similarity index 100% rename from solutions/0070_climbing_stairs/climbing_stairs.go rename to src/0070_climbing_stairs/climbing_stairs.go diff --git a/solutions/0070_climbing_stairs/climbing_stairs_test.go b/src/0070_climbing_stairs/climbing_stairs_test.go similarity index 100% rename from solutions/0070_climbing_stairs/climbing_stairs_test.go rename to src/0070_climbing_stairs/climbing_stairs_test.go diff --git a/solutions/0075_sort_colors/sort_colors.go b/src/0075_sort_colors/sort_colors.go similarity index 100% rename from solutions/0075_sort_colors/sort_colors.go rename to src/0075_sort_colors/sort_colors.go diff --git a/solutions/0075_sort_colors/sort_colors_test.go b/src/0075_sort_colors/sort_colors_test.go similarity index 100% rename from solutions/0075_sort_colors/sort_colors_test.go rename to src/0075_sort_colors/sort_colors_test.go diff --git a/solutions/0076_minimum_window_substring/minimum_window_substring.go b/src/0076_minimum_window_substring/minimum_window_substring.go similarity index 100% rename from solutions/0076_minimum_window_substring/minimum_window_substring.go rename to src/0076_minimum_window_substring/minimum_window_substring.go diff --git a/solutions/0076_minimum_window_substring/minimum_window_substring_test.go b/src/0076_minimum_window_substring/minimum_window_substring_test.go similarity index 100% rename from solutions/0076_minimum_window_substring/minimum_window_substring_test.go rename to src/0076_minimum_window_substring/minimum_window_substring_test.go diff --git a/solutions/0077_combinations/combinations.go b/src/0077_combinations/combinations.go similarity index 100% rename from solutions/0077_combinations/combinations.go rename to src/0077_combinations/combinations.go diff --git a/solutions/0077_combinations/combinations_test.go b/src/0077_combinations/combinations_test.go similarity index 100% rename from solutions/0077_combinations/combinations_test.go rename to src/0077_combinations/combinations_test.go diff --git a/solutions/0079_word_search/word_search.go b/src/0079_word_search/word_search.go similarity index 100% rename from solutions/0079_word_search/word_search.go rename to src/0079_word_search/word_search.go diff --git a/solutions/0079_word_search/word_search_test.go b/src/0079_word_search/word_search_test.go similarity index 100% rename from solutions/0079_word_search/word_search_test.go rename to src/0079_word_search/word_search_test.go diff --git a/solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2.go b/src/0080_remove_duplicates_from_sorted_array2/rdfsa2.go similarity index 100% rename from solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2.go rename to src/0080_remove_duplicates_from_sorted_array2/rdfsa2.go diff --git a/solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go b/src/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go similarity index 100% rename from solutions/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go rename to src/0080_remove_duplicates_from_sorted_array2/rdfsa2_test.go diff --git a/solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl.go b/src/0082_remove_duplicates_from_sorted_list_2/rdfsl.go similarity index 100% rename from solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl.go rename to src/0082_remove_duplicates_from_sorted_list_2/rdfsl.go diff --git a/solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go b/src/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go similarity index 100% rename from solutions/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go rename to src/0082_remove_duplicates_from_sorted_list_2/rdfsl_test.go diff --git a/solutions/0083_remove_duplicates_from_sorted_list/rdfsl.go b/src/0083_remove_duplicates_from_sorted_list/rdfsl.go similarity index 100% rename from solutions/0083_remove_duplicates_from_sorted_list/rdfsl.go rename to src/0083_remove_duplicates_from_sorted_list/rdfsl.go diff --git a/solutions/0083_remove_duplicates_from_sorted_list/rdfsl_test.go b/src/0083_remove_duplicates_from_sorted_list/rdfsl_test.go similarity index 100% rename from solutions/0083_remove_duplicates_from_sorted_list/rdfsl_test.go rename to src/0083_remove_duplicates_from_sorted_list/rdfsl_test.go diff --git a/solutions/0086_partition_list/partition_list.go b/src/0086_partition_list/partition_list.go similarity index 100% rename from solutions/0086_partition_list/partition_list.go rename to src/0086_partition_list/partition_list.go diff --git a/solutions/0086_partition_list/partition_list_test.go b/src/0086_partition_list/partition_list_test.go similarity index 100% rename from solutions/0086_partition_list/partition_list_test.go rename to src/0086_partition_list/partition_list_test.go diff --git a/solutions/0088_merge_sorted_array/msa.go b/src/0088_merge_sorted_array/msa.go similarity index 100% rename from solutions/0088_merge_sorted_array/msa.go rename to src/0088_merge_sorted_array/msa.go diff --git a/solutions/0088_merge_sorted_array/msa_test.go b/src/0088_merge_sorted_array/msa_test.go similarity index 100% rename from solutions/0088_merge_sorted_array/msa_test.go rename to src/0088_merge_sorted_array/msa_test.go diff --git a/solutions/0092_reverse_linked_list_2/reverse_linked_list2.go b/src/0092_reverse_linked_list_2/reverse_linked_list2.go similarity index 100% rename from solutions/0092_reverse_linked_list_2/reverse_linked_list2.go rename to src/0092_reverse_linked_list_2/reverse_linked_list2.go diff --git a/solutions/0092_reverse_linked_list_2/reverse_linked_list2_test.go b/src/0092_reverse_linked_list_2/reverse_linked_list2_test.go similarity index 100% rename from solutions/0092_reverse_linked_list_2/reverse_linked_list2_test.go rename to src/0092_reverse_linked_list_2/reverse_linked_list2_test.go diff --git a/solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go b/src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go similarity index 100% rename from solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go rename to src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal.go diff --git a/solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go b/src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go similarity index 100% rename from solutions/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go rename to src/0094_binary_tree_inorder_traversal/binary_tree_inorder_traversal_test.go diff --git a/solutions/0100_same_tree/same_tree.go b/src/0100_same_tree/same_tree.go similarity index 100% rename from solutions/0100_same_tree/same_tree.go rename to src/0100_same_tree/same_tree.go diff --git a/solutions/0100_same_tree/same_tree_test.go b/src/0100_same_tree/same_tree_test.go similarity index 100% rename from solutions/0100_same_tree/same_tree_test.go rename to src/0100_same_tree/same_tree_test.go diff --git a/solutions/0101_symmetric_tree/symmetric_tree.go b/src/0101_symmetric_tree/symmetric_tree.go similarity index 100% rename from solutions/0101_symmetric_tree/symmetric_tree.go rename to src/0101_symmetric_tree/symmetric_tree.go diff --git a/solutions/0101_symmetric_tree/symmetric_tree_test.go b/src/0101_symmetric_tree/symmetric_tree_test.go similarity index 100% rename from solutions/0101_symmetric_tree/symmetric_tree_test.go rename to src/0101_symmetric_tree/symmetric_tree_test.go diff --git a/solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go b/src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go similarity index 100% rename from solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go rename to src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal.go diff --git a/solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go b/src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go similarity index 100% rename from solutions/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go rename to src/0102_binary_tree_level_order_traversal/binary_tree_level_order_traversal_test.go diff --git a/solutions/0104_maximun_depth_of_binary_tree/maxdobt.go b/src/0104_maximun_depth_of_binary_tree/maxdobt.go similarity index 100% rename from solutions/0104_maximun_depth_of_binary_tree/maxdobt.go rename to src/0104_maximun_depth_of_binary_tree/maxdobt.go diff --git a/solutions/0104_maximun_depth_of_binary_tree/maxdobt_test.go b/src/0104_maximun_depth_of_binary_tree/maxdobt_test.go similarity index 100% rename from solutions/0104_maximun_depth_of_binary_tree/maxdobt_test.go rename to src/0104_maximun_depth_of_binary_tree/maxdobt_test.go diff --git a/solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go b/src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go similarity index 100% rename from solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go rename to src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2.go diff --git a/solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go b/src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go similarity index 100% rename from solutions/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go rename to src/0107_binary_tree_level_order_traversal_2/binary_tree_level_order_traversal2_test.go diff --git a/solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go b/src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go similarity index 100% rename from solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go rename to src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree.go diff --git a/solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go b/src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go similarity index 100% rename from solutions/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go rename to src/0111_minimum_depth_of_binary_tree/minimum_depth_of_binary_tree_test.go diff --git a/solutions/0112_path_sum/path_sum.go b/src/0112_path_sum/path_sum.go similarity index 100% rename from solutions/0112_path_sum/path_sum.go rename to src/0112_path_sum/path_sum.go diff --git a/solutions/0112_path_sum/path_sum_test.go b/src/0112_path_sum/path_sum_test.go similarity index 100% rename from solutions/0112_path_sum/path_sum_test.go rename to src/0112_path_sum/path_sum_test.go diff --git a/solutions/0120_triangle/triangle.go b/src/0120_triangle/triangle.go similarity index 100% rename from solutions/0120_triangle/triangle.go rename to src/0120_triangle/triangle.go diff --git a/solutions/0120_triangle/triangle_test.go b/src/0120_triangle/triangle_test.go similarity index 100% rename from solutions/0120_triangle/triangle_test.go rename to src/0120_triangle/triangle_test.go diff --git a/solutions/0121_best_time_to_buy_and_sell_stock/maxprofit.go b/src/0121_best_time_to_buy_and_sell_stock/maxprofit.go similarity index 100% rename from solutions/0121_best_time_to_buy_and_sell_stock/maxprofit.go rename to src/0121_best_time_to_buy_and_sell_stock/maxprofit.go diff --git a/solutions/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go b/src/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go similarity index 100% rename from solutions/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go rename to src/0121_best_time_to_buy_and_sell_stock/maxprofit_test.go diff --git a/solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go b/src/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go similarity index 100% rename from solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go rename to src/0122_best_time_to_buy_and_sell_stock_2/maxprofit.go diff --git a/solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go b/src/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go similarity index 100% rename from solutions/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go rename to src/0122_best_time_to_buy_and_sell_stock_2/maxprofit_test.go diff --git a/solutions/0125_valid_palindrome/valid_palindrome.go b/src/0125_valid_palindrome/valid_palindrome.go similarity index 100% rename from solutions/0125_valid_palindrome/valid_palindrome.go rename to src/0125_valid_palindrome/valid_palindrome.go diff --git a/solutions/0125_valid_palindrome/valid_palindrome_test.go b/src/0125_valid_palindrome/valid_palindrome_test.go similarity index 100% rename from solutions/0125_valid_palindrome/valid_palindrome_test.go rename to src/0125_valid_palindrome/valid_palindrome_test.go diff --git a/solutions/0136_single_number/single_number.go b/src/0136_single_number/single_number.go similarity index 100% rename from solutions/0136_single_number/single_number.go rename to src/0136_single_number/single_number.go diff --git a/solutions/0136_single_number/single_number_test.go b/src/0136_single_number/single_number_test.go similarity index 100% rename from solutions/0136_single_number/single_number_test.go rename to src/0136_single_number/single_number_test.go diff --git a/solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go b/src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go similarity index 100% rename from solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go rename to src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal.go diff --git a/solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go b/src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go similarity index 100% rename from solutions/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go rename to src/0144_binary_tree_preorder_traversal/binary_tree_preorder_traversal_test.go diff --git a/solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go b/src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go similarity index 100% rename from solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go rename to src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation.go diff --git a/solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go b/src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go similarity index 100% rename from solutions/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go rename to src/0150_evaluate_reverse_polish_notation/evaluate_reverse_polish_notation_test.go diff --git a/solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa.go b/src/0153_find_minimum_in_rotated_sorted_array/fmirsa.go similarity index 100% rename from solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa.go rename to src/0153_find_minimum_in_rotated_sorted_array/fmirsa.go diff --git a/solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go b/src/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go similarity index 100% rename from solutions/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go rename to src/0153_find_minimum_in_rotated_sorted_array/fmirsa_test.go diff --git a/solutions/0155_min_stack/min_stack.go b/src/0155_min_stack/min_stack.go similarity index 100% rename from solutions/0155_min_stack/min_stack.go rename to src/0155_min_stack/min_stack.go diff --git a/solutions/0155_min_stack/min_stack_test.go b/src/0155_min_stack/min_stack_test.go similarity index 100% rename from solutions/0155_min_stack/min_stack_test.go rename to src/0155_min_stack/min_stack_test.go diff --git a/solutions/0165_compare_version_numbers/compare_version_numbers.go b/src/0165_compare_version_numbers/compare_version_numbers.go similarity index 100% rename from solutions/0165_compare_version_numbers/compare_version_numbers.go rename to src/0165_compare_version_numbers/compare_version_numbers.go diff --git a/solutions/0165_compare_version_numbers/compare_version_numbers_test.go b/src/0165_compare_version_numbers/compare_version_numbers_test.go similarity index 100% rename from solutions/0165_compare_version_numbers/compare_version_numbers_test.go rename to src/0165_compare_version_numbers/compare_version_numbers_test.go diff --git a/solutions/0167_two_sum2/two_sum2.go b/src/0167_two_sum2/two_sum2.go similarity index 100% rename from solutions/0167_two_sum2/two_sum2.go rename to src/0167_two_sum2/two_sum2.go diff --git a/solutions/0167_two_sum2/two_sum2_test.go b/src/0167_two_sum2/two_sum2_test.go similarity index 100% rename from solutions/0167_two_sum2/two_sum2_test.go rename to src/0167_two_sum2/two_sum2_test.go diff --git a/solutions/0179_largest_number/ln.go b/src/0179_largest_number/ln.go similarity index 100% rename from solutions/0179_largest_number/ln.go rename to src/0179_largest_number/ln.go diff --git a/solutions/0179_largest_number/ln_test.go b/src/0179_largest_number/ln_test.go similarity index 100% rename from solutions/0179_largest_number/ln_test.go rename to src/0179_largest_number/ln_test.go diff --git a/solutions/0198_house_robber/house_robber.go b/src/0198_house_robber/house_robber.go similarity index 100% rename from solutions/0198_house_robber/house_robber.go rename to src/0198_house_robber/house_robber.go diff --git a/solutions/0198_house_robber/house_robber_test.go b/src/0198_house_robber/house_robber_test.go similarity index 100% rename from solutions/0198_house_robber/house_robber_test.go rename to src/0198_house_robber/house_robber_test.go diff --git a/solutions/0200_number_of_island/number_of_island.go b/src/0200_number_of_island/number_of_island.go similarity index 100% rename from solutions/0200_number_of_island/number_of_island.go rename to src/0200_number_of_island/number_of_island.go diff --git a/solutions/0200_number_of_island/number_of_island_test.go b/src/0200_number_of_island/number_of_island_test.go similarity index 100% rename from solutions/0200_number_of_island/number_of_island_test.go rename to src/0200_number_of_island/number_of_island_test.go diff --git a/solutions/0203_remove_linked_list_elements/remove_linked_list_elements.go b/src/0203_remove_linked_list_elements/remove_linked_list_elements.go similarity index 100% rename from solutions/0203_remove_linked_list_elements/remove_linked_list_elements.go rename to src/0203_remove_linked_list_elements/remove_linked_list_elements.go diff --git a/solutions/0203_remove_linked_list_elements/remove_linked_list_elements_test.go b/src/0203_remove_linked_list_elements/remove_linked_list_elements_test.go similarity index 100% rename from solutions/0203_remove_linked_list_elements/remove_linked_list_elements_test.go rename to src/0203_remove_linked_list_elements/remove_linked_list_elements_test.go diff --git a/solutions/0206_reverse_linked_list/reverse_linked_list.go b/src/0206_reverse_linked_list/reverse_linked_list.go similarity index 100% rename from solutions/0206_reverse_linked_list/reverse_linked_list.go rename to src/0206_reverse_linked_list/reverse_linked_list.go diff --git a/solutions/0206_reverse_linked_list/reverse_linked_list_test.go b/src/0206_reverse_linked_list/reverse_linked_list_test.go similarity index 100% rename from solutions/0206_reverse_linked_list/reverse_linked_list_test.go rename to src/0206_reverse_linked_list/reverse_linked_list_test.go diff --git a/solutions/0208_implement_trie_prefix_tree/impltrie.go b/src/0208_implement_trie_prefix_tree/impltrie.go similarity index 100% rename from solutions/0208_implement_trie_prefix_tree/impltrie.go rename to src/0208_implement_trie_prefix_tree/impltrie.go diff --git a/solutions/0208_implement_trie_prefix_tree/impltrie_test.go b/src/0208_implement_trie_prefix_tree/impltrie_test.go similarity index 100% rename from solutions/0208_implement_trie_prefix_tree/impltrie_test.go rename to src/0208_implement_trie_prefix_tree/impltrie_test.go diff --git a/solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go b/src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go similarity index 100% rename from solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go rename to src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum.go diff --git a/solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go b/src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go similarity index 100% rename from solutions/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go rename to src/0209_minimum_size_subarray_sum/minimum_size_subarray_sum_test.go diff --git a/solutions/0211_add_and_search_word/add_and_search_word.go b/src/0211_add_and_search_word/add_and_search_word.go similarity index 100% rename from solutions/0211_add_and_search_word/add_and_search_word.go rename to src/0211_add_and_search_word/add_and_search_word.go diff --git a/solutions/0211_add_and_search_word/add_and_search_word_test.go b/src/0211_add_and_search_word/add_and_search_word_test.go similarity index 100% rename from solutions/0211_add_and_search_word/add_and_search_word_test.go rename to src/0211_add_and_search_word/add_and_search_word_test.go diff --git a/solutions/0215_kth_largest_element_in_an_array/kthleiaa.go b/src/0215_kth_largest_element_in_an_array/kthleiaa.go similarity index 100% rename from solutions/0215_kth_largest_element_in_an_array/kthleiaa.go rename to src/0215_kth_largest_element_in_an_array/kthleiaa.go diff --git a/solutions/0215_kth_largest_element_in_an_array/kthleiaa_test.go b/src/0215_kth_largest_element_in_an_array/kthleiaa_test.go similarity index 100% rename from solutions/0215_kth_largest_element_in_an_array/kthleiaa_test.go rename to src/0215_kth_largest_element_in_an_array/kthleiaa_test.go diff --git a/solutions/0217_contains_duplicate/contains_duplicate.go b/src/0217_contains_duplicate/contains_duplicate.go similarity index 100% rename from solutions/0217_contains_duplicate/contains_duplicate.go rename to src/0217_contains_duplicate/contains_duplicate.go diff --git a/solutions/0217_contains_duplicate/contains_duplicate_test.go b/src/0217_contains_duplicate/contains_duplicate_test.go similarity index 100% rename from solutions/0217_contains_duplicate/contains_duplicate_test.go rename to src/0217_contains_duplicate/contains_duplicate_test.go diff --git a/solutions/0219_contains_duplicate_2/contains_duplicate_2.go b/src/0219_contains_duplicate_2/contains_duplicate_2.go similarity index 100% rename from solutions/0219_contains_duplicate_2/contains_duplicate_2.go rename to src/0219_contains_duplicate_2/contains_duplicate_2.go diff --git a/solutions/0219_contains_duplicate_2/contains_duplicate_2_test.go b/src/0219_contains_duplicate_2/contains_duplicate_2_test.go similarity index 100% rename from solutions/0219_contains_duplicate_2/contains_duplicate_2_test.go rename to src/0219_contains_duplicate_2/contains_duplicate_2_test.go diff --git a/solutions/0226_invert_binary_tree/invert_binary_tree.go b/src/0226_invert_binary_tree/invert_binary_tree.go similarity index 100% rename from solutions/0226_invert_binary_tree/invert_binary_tree.go rename to src/0226_invert_binary_tree/invert_binary_tree.go diff --git a/solutions/0226_invert_binary_tree/invert_binary_tree_test.go b/src/0226_invert_binary_tree/invert_binary_tree_test.go similarity index 100% rename from solutions/0226_invert_binary_tree/invert_binary_tree_test.go rename to src/0226_invert_binary_tree/invert_binary_tree_test.go diff --git a/solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go b/src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go similarity index 100% rename from solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go rename to src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst.go diff --git a/solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go b/src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go similarity index 100% rename from solutions/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go rename to src/0235_lowest_common_ancestor_of_a_binary_search_tree/lcaoabst_test.go diff --git a/solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go b/src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go similarity index 100% rename from solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go rename to src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca.go diff --git a/solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go b/src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go similarity index 100% rename from solutions/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go rename to src/0236_Lowest_Common_Ancestor_of_a_Binary_Tree/lca_test.go diff --git a/solutions/0237_delete_node_in_a_linked_list/dniall.go b/src/0237_delete_node_in_a_linked_list/dniall.go similarity index 95% rename from solutions/0237_delete_node_in_a_linked_list/dniall.go rename to src/0237_delete_node_in_a_linked_list/dniall.go index 12c4ade..f4ea8d5 100644 --- a/solutions/0237_delete_node_in_a_linked_list/dniall.go +++ b/src/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 the nodes' values will be unique. + // All of 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/solutions/0237_delete_node_in_a_linked_list/dniall_test.go b/src/0237_delete_node_in_a_linked_list/dniall_test.go similarity index 100% rename from solutions/0237_delete_node_in_a_linked_list/dniall_test.go rename to src/0237_delete_node_in_a_linked_list/dniall_test.go diff --git a/solutions/0257_binary_tree_paths/binary_tree_paths.go b/src/0257_binary_tree_paths/binary_tree_paths.go similarity index 100% rename from solutions/0257_binary_tree_paths/binary_tree_paths.go rename to src/0257_binary_tree_paths/binary_tree_paths.go diff --git a/solutions/0257_binary_tree_paths/binary_tree_paths_test.go b/src/0257_binary_tree_paths/binary_tree_paths_test.go similarity index 100% rename from solutions/0257_binary_tree_paths/binary_tree_paths_test.go rename to src/0257_binary_tree_paths/binary_tree_paths_test.go diff --git a/solutions/0258_add_digits/add_digits.go b/src/0258_add_digits/add_digits.go similarity index 100% rename from solutions/0258_add_digits/add_digits.go rename to src/0258_add_digits/add_digits.go diff --git a/solutions/0258_add_digits/add_digits_test.go b/src/0258_add_digits/add_digits_test.go similarity index 100% rename from solutions/0258_add_digits/add_digits_test.go rename to src/0258_add_digits/add_digits_test.go diff --git a/solutions/0283_move_zeroes/move_zeroes.go b/src/0283_move_zeroes/move_zeroes.go similarity index 100% rename from solutions/0283_move_zeroes/move_zeroes.go rename to src/0283_move_zeroes/move_zeroes.go diff --git a/solutions/0283_move_zeroes/move_zeroes2.go b/src/0283_move_zeroes/move_zeroes2.go similarity index 100% rename from solutions/0283_move_zeroes/move_zeroes2.go rename to src/0283_move_zeroes/move_zeroes2.go diff --git a/solutions/0283_move_zeroes/move_zeroes2_test.go b/src/0283_move_zeroes/move_zeroes2_test.go similarity index 100% rename from solutions/0283_move_zeroes/move_zeroes2_test.go rename to src/0283_move_zeroes/move_zeroes2_test.go diff --git a/solutions/0283_move_zeroes/move_zeroes_test.go b/src/0283_move_zeroes/move_zeroes_test.go similarity index 100% rename from solutions/0283_move_zeroes/move_zeroes_test.go rename to src/0283_move_zeroes/move_zeroes_test.go diff --git a/solutions/0300_longest_increasing_subsequence/lis.go b/src/0300_longest_increasing_subsequence/lis.go similarity index 100% rename from solutions/0300_longest_increasing_subsequence/lis.go rename to src/0300_longest_increasing_subsequence/lis.go diff --git a/solutions/0300_longest_increasing_subsequence/lis_test.go b/src/0300_longest_increasing_subsequence/lis_test.go similarity index 100% rename from solutions/0300_longest_increasing_subsequence/lis_test.go rename to src/0300_longest_increasing_subsequence/lis_test.go diff --git a/solutions/0303_range_sum_query/rsqim.go b/src/0303_range_sum_query/rsqim.go similarity index 100% rename from solutions/0303_range_sum_query/rsqim.go rename to src/0303_range_sum_query/rsqim.go diff --git a/solutions/0303_range_sum_query/rsqim_test.go b/src/0303_range_sum_query/rsqim_test.go similarity index 100% rename from solutions/0303_range_sum_query/rsqim_test.go rename to src/0303_range_sum_query/rsqim_test.go diff --git a/solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go b/src/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go similarity index 100% rename from solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go rename to src/0307_Range_Sum_Query_Mutable/range_sum_query_mut.go diff --git a/solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go b/src/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go similarity index 100% rename from solutions/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go rename to src/0307_Range_Sum_Query_Mutable/range_sum_query_mut_test.go diff --git a/solutions/0328_odd_even_linked_list/odd_even_linked_list.go b/src/0328_odd_even_linked_list/odd_even_linked_list.go similarity index 100% rename from solutions/0328_odd_even_linked_list/odd_even_linked_list.go rename to src/0328_odd_even_linked_list/odd_even_linked_list.go diff --git a/solutions/0328_odd_even_linked_list/odd_even_linked_list_test.go b/src/0328_odd_even_linked_list/odd_even_linked_list_test.go similarity index 100% rename from solutions/0328_odd_even_linked_list/odd_even_linked_list_test.go rename to src/0328_odd_even_linked_list/odd_even_linked_list_test.go diff --git a/solutions/0343_integer_break/integer_break.go b/src/0343_integer_break/integer_break.go similarity index 100% rename from solutions/0343_integer_break/integer_break.go rename to src/0343_integer_break/integer_break.go diff --git a/solutions/0343_integer_break/integer_break_test.go b/src/0343_integer_break/integer_break_test.go similarity index 100% rename from solutions/0343_integer_break/integer_break_test.go rename to src/0343_integer_break/integer_break_test.go diff --git a/solutions/0344_reverse_string/reverse_string.go b/src/0344_reverse_string/reverse_string.go similarity index 100% rename from solutions/0344_reverse_string/reverse_string.go rename to src/0344_reverse_string/reverse_string.go diff --git a/solutions/0344_reverse_string/reverse_string_test.go b/src/0344_reverse_string/reverse_string_test.go similarity index 100% rename from solutions/0344_reverse_string/reverse_string_test.go rename to src/0344_reverse_string/reverse_string_test.go diff --git a/solutions/0345_reverse_vowels_of_a_string/reverse_vowels.go b/src/0345_reverse_vowels_of_a_string/reverse_vowels.go similarity index 100% rename from solutions/0345_reverse_vowels_of_a_string/reverse_vowels.go rename to src/0345_reverse_vowels_of_a_string/reverse_vowels.go diff --git a/solutions/0345_reverse_vowels_of_a_string/reverse_vowels_test.go b/src/0345_reverse_vowels_of_a_string/reverse_vowels_test.go similarity index 100% rename from solutions/0345_reverse_vowels_of_a_string/reverse_vowels_test.go rename to src/0345_reverse_vowels_of_a_string/reverse_vowels_test.go diff --git a/solutions/0347_top_k_frequent_elements/topkfe.go b/src/0347_top_k_frequent_elements/topkfe.go similarity index 100% rename from solutions/0347_top_k_frequent_elements/topkfe.go rename to src/0347_top_k_frequent_elements/topkfe.go diff --git a/solutions/0347_top_k_frequent_elements/topkfe_test.go b/src/0347_top_k_frequent_elements/topkfe_test.go similarity index 100% rename from solutions/0347_top_k_frequent_elements/topkfe_test.go rename to src/0347_top_k_frequent_elements/topkfe_test.go diff --git a/solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays.go b/src/0349_intersection_of_2_arrays/intersection_of_two_arrays.go similarity index 100% rename from solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays.go rename to src/0349_intersection_of_2_arrays/intersection_of_two_arrays.go diff --git a/solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go b/src/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go similarity index 100% rename from solutions/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go rename to src/0349_intersection_of_2_arrays/intersection_of_two_arrays_test.go diff --git a/solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go b/src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go similarity index 100% rename from solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go rename to src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2.go diff --git a/solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go b/src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go similarity index 100% rename from solutions/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go rename to src/0350_intersection_of_two_arrays2/intersection_of_two_arrays2_test.go diff --git a/solutions/0376_wiggle_subsequence/wiggle_subsequence.go b/src/0376_wiggle_subsequence/wiggle_subsequence.go similarity index 100% rename from solutions/0376_wiggle_subsequence/wiggle_subsequence.go rename to src/0376_wiggle_subsequence/wiggle_subsequence.go diff --git a/solutions/0376_wiggle_subsequence/wiggle_subsequence_test.go b/src/0376_wiggle_subsequence/wiggle_subsequence_test.go similarity index 100% rename from solutions/0376_wiggle_subsequence/wiggle_subsequence_test.go rename to src/0376_wiggle_subsequence/wiggle_subsequence_test.go diff --git a/solutions/0392_is_subsequence/is_subsequence.go b/src/0392_is_subsequence/is_subsequence.go similarity index 100% rename from solutions/0392_is_subsequence/is_subsequence.go rename to src/0392_is_subsequence/is_subsequence.go diff --git a/solutions/0392_is_subsequence/is_subsequence_test.go b/src/0392_is_subsequence/is_subsequence_test.go similarity index 100% rename from solutions/0392_is_subsequence/is_subsequence_test.go rename to src/0392_is_subsequence/is_subsequence_test.go diff --git a/solutions/0404_sum_of_left_leaves/sum_of_left_leaves.go b/src/0404_sum_of_left_leaves/sum_of_left_leaves.go similarity index 100% rename from solutions/0404_sum_of_left_leaves/sum_of_left_leaves.go rename to src/0404_sum_of_left_leaves/sum_of_left_leaves.go diff --git a/solutions/0404_sum_of_left_leaves/sum_of_left_leaves_test.go b/src/0404_sum_of_left_leaves/sum_of_left_leaves_test.go similarity index 100% rename from solutions/0404_sum_of_left_leaves/sum_of_left_leaves_test.go rename to src/0404_sum_of_left_leaves/sum_of_left_leaves_test.go diff --git a/solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum.go b/src/0416_partition_equal_subset_sum/partition_equal_subset_sum.go similarity index 100% rename from solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum.go rename to src/0416_partition_equal_subset_sum/partition_equal_subset_sum.go diff --git a/solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go b/src/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go similarity index 100% rename from solutions/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go rename to src/0416_partition_equal_subset_sum/partition_equal_subset_sum_test.go diff --git a/solutions/0435_non_overlapping_intervals/dp_solution.go b/src/0435_non_overlapping_intervals/dp_solution.go similarity index 100% rename from solutions/0435_non_overlapping_intervals/dp_solution.go rename to src/0435_non_overlapping_intervals/dp_solution.go diff --git a/solutions/0435_non_overlapping_intervals/greedy_solution.go b/src/0435_non_overlapping_intervals/greedy_solution.go similarity index 100% rename from solutions/0435_non_overlapping_intervals/greedy_solution.go rename to src/0435_non_overlapping_intervals/greedy_solution.go diff --git a/solutions/0435_non_overlapping_intervals/interval.go b/src/0435_non_overlapping_intervals/interval.go similarity index 100% rename from solutions/0435_non_overlapping_intervals/interval.go rename to src/0435_non_overlapping_intervals/interval.go diff --git a/solutions/0435_non_overlapping_intervals/solution_test.go b/src/0435_non_overlapping_intervals/solution_test.go similarity index 100% rename from solutions/0435_non_overlapping_intervals/solution_test.go rename to src/0435_non_overlapping_intervals/solution_test.go diff --git a/solutions/0437_path_sum_3/path_sum_3.go b/src/0437_path_sum_3/path_sum_3.go similarity index 100% rename from solutions/0437_path_sum_3/path_sum_3.go rename to src/0437_path_sum_3/path_sum_3.go diff --git a/solutions/0437_path_sum_3/path_sum_3_test.go b/src/0437_path_sum_3/path_sum_3_test.go similarity index 100% rename from solutions/0437_path_sum_3/path_sum_3_test.go rename to src/0437_path_sum_3/path_sum_3_test.go diff --git a/solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go b/src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go similarity index 100% rename from solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go rename to src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string.go diff --git a/solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go b/src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go similarity index 100% rename from solutions/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go rename to src/0438_all_anagrams_in_a_string/all_anagrams_in_a_string_test.go diff --git a/solutions/0447_number_of_boomerangs/number_of_boomerangs.go b/src/0447_number_of_boomerangs/number_of_boomerangs.go similarity index 100% rename from solutions/0447_number_of_boomerangs/number_of_boomerangs.go rename to src/0447_number_of_boomerangs/number_of_boomerangs.go diff --git a/solutions/0447_number_of_boomerangs/number_of_boomerangs_test.go b/src/0447_number_of_boomerangs/number_of_boomerangs_test.go similarity index 100% rename from solutions/0447_number_of_boomerangs/number_of_boomerangs_test.go rename to src/0447_number_of_boomerangs/number_of_boomerangs_test.go diff --git a/solutions/0454_4sum2/4sum2.go b/src/0454_4sum2/4sum2.go similarity index 100% rename from solutions/0454_4sum2/4sum2.go rename to src/0454_4sum2/4sum2.go diff --git a/solutions/0454_4sum2/4sum2_test.go b/src/0454_4sum2/4sum2_test.go similarity index 100% rename from solutions/0454_4sum2/4sum2_test.go rename to src/0454_4sum2/4sum2_test.go diff --git a/solutions/0455_assign_cookies/assign_cookies.go b/src/0455_assign_cookies/assign_cookies.go similarity index 100% rename from solutions/0455_assign_cookies/assign_cookies.go rename to src/0455_assign_cookies/assign_cookies.go diff --git a/solutions/0455_assign_cookies/assign_cookies_test.go b/src/0455_assign_cookies/assign_cookies_test.go similarity index 100% rename from solutions/0455_assign_cookies/assign_cookies_test.go rename to src/0455_assign_cookies/assign_cookies_test.go diff --git a/solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go b/src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go similarity index 100% rename from solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go rename to src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3.go diff --git a/solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go b/src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go similarity index 100% rename from solutions/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go rename to src/0557_reverse_words_in_a_string_3/reverse_words_in_a_string_3_test.go diff --git a/solutions/0674_longest_continuous_increasing_subsequence/lcis.go b/src/0674_longest_continuous_increasing_subsequence/lcis.go similarity index 100% rename from solutions/0674_longest_continuous_increasing_subsequence/lcis.go rename to src/0674_longest_continuous_increasing_subsequence/lcis.go diff --git a/solutions/0674_longest_continuous_increasing_subsequence/lcis_test.go b/src/0674_longest_continuous_increasing_subsequence/lcis_test.go similarity index 100% rename from solutions/0674_longest_continuous_increasing_subsequence/lcis_test.go rename to src/0674_longest_continuous_increasing_subsequence/lcis_test.go diff --git a/solutions/0677_map_sum_pairs/map_sum_pairs.go b/src/0677_map_sum_pairs/map_sum_pairs.go similarity index 100% rename from solutions/0677_map_sum_pairs/map_sum_pairs.go rename to src/0677_map_sum_pairs/map_sum_pairs.go diff --git a/solutions/0677_map_sum_pairs/map_sum_pairs_test.go b/src/0677_map_sum_pairs/map_sum_pairs_test.go similarity index 100% rename from solutions/0677_map_sum_pairs/map_sum_pairs_test.go rename to src/0677_map_sum_pairs/map_sum_pairs_test.go diff --git a/solutions/0704_binary_search/binary_search.go b/src/0704_binary_search/binary_search.go similarity index 100% rename from solutions/0704_binary_search/binary_search.go rename to src/0704_binary_search/binary_search.go diff --git a/solutions/0704_binary_search/binary_search_test.go b/src/0704_binary_search/binary_search_test.go similarity index 100% rename from solutions/0704_binary_search/binary_search_test.go rename to src/0704_binary_search/binary_search_test.go diff --git a/solutions/0713_subarray_product_less_than_k/spltk.go b/src/0713_subarray_product_less_than_k/spltk.go similarity index 100% rename from solutions/0713_subarray_product_less_than_k/spltk.go rename to src/0713_subarray_product_less_than_k/spltk.go diff --git a/solutions/0713_subarray_product_less_than_k/spltk_test.go b/src/0713_subarray_product_less_than_k/spltk_test.go similarity index 100% rename from solutions/0713_subarray_product_less_than_k/spltk_test.go rename to src/0713_subarray_product_less_than_k/spltk_test.go diff --git a/solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc.go b/src/0717_1_bit_and_2_bit_characters/1bitand2bitc.go similarity index 100% rename from solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc.go rename to src/0717_1_bit_and_2_bit_characters/1bitand2bitc.go diff --git a/solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go b/src/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go similarity index 100% rename from solutions/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go rename to src/0717_1_bit_and_2_bit_characters/1bitand2bitc_test.go diff --git a/solutions/0728_self_dividing_numbers/self_dividing_numbers.go b/src/0728_self_dividing_numbers/self_dividing_numbers.go similarity index 100% rename from solutions/0728_self_dividing_numbers/self_dividing_numbers.go rename to src/0728_self_dividing_numbers/self_dividing_numbers.go diff --git a/solutions/0728_self_dividing_numbers/self_dividing_numbers_test.go b/src/0728_self_dividing_numbers/self_dividing_numbers_test.go similarity index 100% rename from solutions/0728_self_dividing_numbers/self_dividing_numbers_test.go rename to src/0728_self_dividing_numbers/self_dividing_numbers_test.go diff --git a/solutions/0735_asteroid_collision/ac.go b/src/0735_asteroid_collision/ac.go similarity index 100% rename from solutions/0735_asteroid_collision/ac.go rename to src/0735_asteroid_collision/ac.go diff --git a/solutions/0735_asteroid_collision/ac_test.go b/src/0735_asteroid_collision/ac_test.go similarity index 100% rename from solutions/0735_asteroid_collision/ac_test.go rename to src/0735_asteroid_collision/ac_test.go diff --git a/solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go b/src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go similarity index 100% rename from solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go rename to src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others.go diff --git a/solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go b/src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go similarity index 100% rename from solutions/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go rename to src/0747_largest_number_at_least_twice_of_others/largest_number_at_least_twice_of_others_test.go diff --git a/solutions/0872_leaf_similar_trees/leaf_similar_trees.go b/src/0872_leaf_similar_trees/leaf_similar_trees.go similarity index 100% rename from solutions/0872_leaf_similar_trees/leaf_similar_trees.go rename to src/0872_leaf_similar_trees/leaf_similar_trees.go diff --git a/solutions/0872_leaf_similar_trees/leaf_similar_trees_test.go b/src/0872_leaf_similar_trees/leaf_similar_trees_test.go similarity index 100% rename from solutions/0872_leaf_similar_trees/leaf_similar_trees_test.go rename to src/0872_leaf_similar_trees/leaf_similar_trees_test.go diff --git a/solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go b/src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go similarity index 100% rename from solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go rename to src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses.go diff --git a/solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go b/src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go similarity index 100% rename from solutions/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go rename to src/1021_Remove_Outermost_Parentheses/remove_outmost_parentheses_test.go diff --git a/solutions/148_Sort_List/sortlist.go b/src/148_Sort_List/sortlist.go similarity index 100% rename from solutions/148_Sort_List/sortlist.go rename to src/148_Sort_List/sortlist.go diff --git a/solutions/148_Sort_List/sortlist_test.go b/src/148_Sort_List/sortlist_test.go similarity index 100% rename from solutions/148_Sort_List/sortlist_test.go rename to src/148_Sort_List/sortlist_test.go diff --git a/solutions/304_Range_Sum_Query_2D/rsq.go b/src/304_Range_Sum_Query_2D/rsq.go similarity index 100% rename from solutions/304_Range_Sum_Query_2D/rsq.go rename to src/304_Range_Sum_Query_2D/rsq.go diff --git a/solutions/304_Range_Sum_Query_2D/rsq_test.go b/src/304_Range_Sum_Query_2D/rsq_test.go similarity index 100% rename from solutions/304_Range_Sum_Query_2D/rsq_test.go rename to src/304_Range_Sum_Query_2D/rsq_test.go diff --git a/solutions/README.md b/src/README.md similarity index 98% rename from solutions/README.md rename to src/README.md index 44002aa..0ab80f3 100644 --- a/solutions/README.md +++ b/src/README.md @@ -1,8 +1,8 @@ -### Solutions for LeetCode algorithm problems, continually updating. +### Solution 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 06cd6e7..e44248f 100644 --- a/utils/maxint_test.go +++ b/utils/maxint_test.go @@ -15,10 +15,3 @@ 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...) - } -}