From d7a0d6cfe3068854ec0cd4d85c6d875e20900dc7 Mon Sep 17 00:00:00 2001 From: Sainnhe Park Date: Mon, 21 Nov 2022 21:15:56 +0800 Subject: [PATCH] Fix headers --- include/s0004_median_of_two_sorted_arrays.hpp | 4 ++-- include/s0005_longest_palindromic_substring.hpp | 4 ++-- include/s0006_zigzag_conversion.hpp | 4 ++-- include/s0007_reverse_integer.hpp | 4 ++-- include/s0008_string_to_integer.hpp | 4 ++-- include/s0009_palindrome_number.hpp | 4 ++-- include/s0010_regular_expression_matching.hpp | 4 ++-- include/s0011_container_with_most_water.hpp | 4 ++-- include/s0012_integer_to_roman.hpp | 4 ++-- include/s0013_roman_to_integer.hpp | 4 ++-- include/s0014_longest_common_prefix.hpp | 4 ++-- include/s0015_3sum.hpp | 4 ++-- include/s0016_3sum_closest.hpp | 4 ++-- include/s0017_letter_combinations_of_a_phone_number.hpp | 4 ++-- include/s0018_4sum.hpp | 4 ++-- include/s0019_remove_nth_node_from_end_of_list.hpp | 4 ++-- include/s0020_valid_parentheses.hpp | 4 ++-- include/s0021_merge_two_sorted_lists.hpp | 4 ++-- include/s0022_generate_parentheses.hpp | 4 ++-- include/s0023_merge_k_sorted_lists.hpp | 4 ++-- include/s0024_swap_nodes_in_pairs.hpp | 4 ++-- include/s0025_reverse_nodes_in_k-group.hpp | 4 ++-- include/s0026_remove_duplicates_from_sorted_array.hpp | 4 ++-- include/s0027_remove_element.hpp | 4 ++-- ...028_find_the_index_of_the_first_occurrence_in_a_string.hpp | 4 ++-- include/s0029_divide_two_integers.hpp | 4 ++-- include/s0030_substring_with_concatenation_of_all_words.hpp | 4 ++-- include/s0031_next_permutation.hpp | 4 ++-- include/s0032_longest_valid_parentheses.hpp | 4 ++-- include/s0033_search_in_rotated_sorted_array.hpp | 4 ++-- ...ind_first_and_last_position_of_element_in_sorted_array.hpp | 4 ++-- 31 files changed, 62 insertions(+), 62 deletions(-) diff --git a/include/s0004_median_of_two_sorted_arrays.hpp b/include/s0004_median_of_two_sorted_arrays.hpp index 5305e1b..edf4260 100644 --- a/include/s0004_median_of_two_sorted_arrays.hpp +++ b/include/s0004_median_of_two_sorted_arrays.hpp @@ -1,5 +1,5 @@ -#ifndef S0004_MEDIAN_OF_TWO_SORTED_ARRAYS -#define S0004_MEDIAN_OF_TWO_SORTED_ARRAYS +#ifndef S0004_MEDIAN_OF_TWO_SORTED_ARRAYS_HPP +#define S0004_MEDIAN_OF_TWO_SORTED_ARRAYS_HPP #include diff --git a/include/s0005_longest_palindromic_substring.hpp b/include/s0005_longest_palindromic_substring.hpp index af6962b..5b57ff1 100644 --- a/include/s0005_longest_palindromic_substring.hpp +++ b/include/s0005_longest_palindromic_substring.hpp @@ -1,5 +1,5 @@ -#ifndef S0005_LONGEST_PALINDROMIC_SUBSTRING -#define S0005_LONGEST_PALINDROMIC_SUBSTRING +#ifndef S0005_LONGEST_PALINDROMIC_SUBSTRING_HPP +#define S0005_LONGEST_PALINDROMIC_SUBSTRING_HPP #include #include diff --git a/include/s0006_zigzag_conversion.hpp b/include/s0006_zigzag_conversion.hpp index 430a408..7348532 100644 --- a/include/s0006_zigzag_conversion.hpp +++ b/include/s0006_zigzag_conversion.hpp @@ -1,5 +1,5 @@ -#ifndef S0006_ZIGZAG_CONVERSION -#define S0006_ZIGZAG_CONVERSION +#ifndef S0006_ZIGZAG_CONVERSION_HPP +#define S0006_ZIGZAG_CONVERSION_HPP #include diff --git a/include/s0007_reverse_integer.hpp b/include/s0007_reverse_integer.hpp index cf93189..19130d0 100644 --- a/include/s0007_reverse_integer.hpp +++ b/include/s0007_reverse_integer.hpp @@ -1,5 +1,5 @@ -#ifndef S0007_REVERSE_INTEGER -#define S0007_REVERSE_INTEGER +#ifndef S0007_REVERSE_INTEGER_HPP +#define S0007_REVERSE_INTEGER_HPP #include #include diff --git a/include/s0008_string_to_integer.hpp b/include/s0008_string_to_integer.hpp index 1b25b40..b36906a 100644 --- a/include/s0008_string_to_integer.hpp +++ b/include/s0008_string_to_integer.hpp @@ -1,5 +1,5 @@ -#ifndef S0008_STRING_TO_INTEGER -#define S0008_STRING_TO_INTEGER +#ifndef S0008_STRING_TO_INTEGER_HPP +#define S0008_STRING_TO_INTEGER_HPP #include #include diff --git a/include/s0009_palindrome_number.hpp b/include/s0009_palindrome_number.hpp index 6d12351..fe6a430 100644 --- a/include/s0009_palindrome_number.hpp +++ b/include/s0009_palindrome_number.hpp @@ -1,5 +1,5 @@ -#ifndef S0009_PALINDROME_NUMBER -#define S0009_PALINDROME_NUMBER +#ifndef S0009_PALINDROME_NUMBER_HPP +#define S0009_PALINDROME_NUMBER_HPP #include #include diff --git a/include/s0010_regular_expression_matching.hpp b/include/s0010_regular_expression_matching.hpp index 157c74a..1908a47 100644 --- a/include/s0010_regular_expression_matching.hpp +++ b/include/s0010_regular_expression_matching.hpp @@ -1,5 +1,5 @@ -#ifndef S0010_REGULAR_EXPRESSION_MATCHING -#define S0010_REGULAR_EXPRESSION_MATCHING +#ifndef S0010_REGULAR_EXPRESSION_MATCHING_HPP +#define S0010_REGULAR_EXPRESSION_MATCHING_HPP #include #include diff --git a/include/s0011_container_with_most_water.hpp b/include/s0011_container_with_most_water.hpp index f8c8a47..6ac9311 100644 --- a/include/s0011_container_with_most_water.hpp +++ b/include/s0011_container_with_most_water.hpp @@ -1,5 +1,5 @@ -#ifndef S0011_CONTAINER_WITH_MOST_WATER -#define S0011_CONTAINER_WITH_MOST_WATER +#ifndef S0011_CONTAINER_WITH_MOST_WATER_HPP +#define S0011_CONTAINER_WITH_MOST_WATER_HPP #include diff --git a/include/s0012_integer_to_roman.hpp b/include/s0012_integer_to_roman.hpp index 46d773f..7a6f2eb 100644 --- a/include/s0012_integer_to_roman.hpp +++ b/include/s0012_integer_to_roman.hpp @@ -1,5 +1,5 @@ -#ifndef S0012_INTEGER_TO_ROMAN -#define S0012_INTEGER_TO_ROMAN +#ifndef S0012_INTEGER_TO_ROMAN_HPP +#define S0012_INTEGER_TO_ROMAN_HPP #include diff --git a/include/s0013_roman_to_integer.hpp b/include/s0013_roman_to_integer.hpp index 487e5de..1df6629 100644 --- a/include/s0013_roman_to_integer.hpp +++ b/include/s0013_roman_to_integer.hpp @@ -1,5 +1,5 @@ -#ifndef S0013_ROMAN_TO_INTEGER -#define S0013_ROMAN_TO_INTEGER +#ifndef S0013_ROMAN_TO_INTEGER_HPP +#define S0013_ROMAN_TO_INTEGER_HPP #include #include diff --git a/include/s0014_longest_common_prefix.hpp b/include/s0014_longest_common_prefix.hpp index 65d2fc3..5180e5f 100644 --- a/include/s0014_longest_common_prefix.hpp +++ b/include/s0014_longest_common_prefix.hpp @@ -1,5 +1,5 @@ -#ifndef S0014_LONGEST_COMMON_PREFIX -#define S0014_LONGEST_COMMON_PREFIX +#ifndef S0014_LONGEST_COMMON_PREFIX_HPP +#define S0014_LONGEST_COMMON_PREFIX_HPP #include #include diff --git a/include/s0015_3sum.hpp b/include/s0015_3sum.hpp index b1a4607..54636c6 100644 --- a/include/s0015_3sum.hpp +++ b/include/s0015_3sum.hpp @@ -1,5 +1,5 @@ -#ifndef S0015_3SUM -#define S0015_3SUM +#ifndef S0015_3SUM_HPP +#define S0015_3SUM_HPP #include #include diff --git a/include/s0016_3sum_closest.hpp b/include/s0016_3sum_closest.hpp index b274cbc..68d16e4 100644 --- a/include/s0016_3sum_closest.hpp +++ b/include/s0016_3sum_closest.hpp @@ -1,5 +1,5 @@ -#ifndef S0016_3SUM_CLOSEST -#define S0016_3SUM_CLOSEST +#ifndef S0016_3SUM_CLOSEST_HPP +#define S0016_3SUM_CLOSEST_HPP #include #include diff --git a/include/s0017_letter_combinations_of_a_phone_number.hpp b/include/s0017_letter_combinations_of_a_phone_number.hpp index 44c0c86..e877c65 100644 --- a/include/s0017_letter_combinations_of_a_phone_number.hpp +++ b/include/s0017_letter_combinations_of_a_phone_number.hpp @@ -1,5 +1,5 @@ -#ifndef S0017_LETTER_COMBINATIONS_OF_A_PHONE_NUMBER -#define S0017_LETTER_COMBINATIONS_OF_A_PHONE_NUMBER +#ifndef S0017_LETTER_COMBINATIONS_OF_A_PHONE_NUMBER_HPP +#define S0017_LETTER_COMBINATIONS_OF_A_PHONE_NUMBER_HPP #include #include diff --git a/include/s0018_4sum.hpp b/include/s0018_4sum.hpp index a446e24..bfa0570 100644 --- a/include/s0018_4sum.hpp +++ b/include/s0018_4sum.hpp @@ -1,5 +1,5 @@ -#ifndef S0018_4SUM -#define S0018_4SUM +#ifndef S0018_4SUM_HPP +#define S0018_4SUM_HPP #include #include diff --git a/include/s0019_remove_nth_node_from_end_of_list.hpp b/include/s0019_remove_nth_node_from_end_of_list.hpp index 95109f4..17121be 100644 --- a/include/s0019_remove_nth_node_from_end_of_list.hpp +++ b/include/s0019_remove_nth_node_from_end_of_list.hpp @@ -1,5 +1,5 @@ -#ifndef S0019_REMOVE_NTH_NODE_FROM_END_OF_LIST -#define S0019_REMOVE_NTH_NODE_FROM_END_OF_LIST +#ifndef S0019_REMOVE_NTH_NODE_FROM_END_OF_LIST_HPP +#define S0019_REMOVE_NTH_NODE_FROM_END_OF_LIST_HPP struct ListNode { int val; diff --git a/include/s0020_valid_parentheses.hpp b/include/s0020_valid_parentheses.hpp index 5f06b46..d370b18 100644 --- a/include/s0020_valid_parentheses.hpp +++ b/include/s0020_valid_parentheses.hpp @@ -1,5 +1,5 @@ -#ifndef S0020_VALID_PARENTHESES -#define S0020_VALID_PARENTHESES +#ifndef S0020_VALID_PARENTHESES_HPP +#define S0020_VALID_PARENTHESES_HPP #include #include diff --git a/include/s0021_merge_two_sorted_lists.hpp b/include/s0021_merge_two_sorted_lists.hpp index 152ca8b..b0a388b 100644 --- a/include/s0021_merge_two_sorted_lists.hpp +++ b/include/s0021_merge_two_sorted_lists.hpp @@ -1,5 +1,5 @@ -#ifndef S0021_MERGE_TWO_SORTED_LISTS -#define S0021_MERGE_TWO_SORTED_LISTS +#ifndef S0021_MERGE_TWO_SORTED_LISTS_HPP +#define S0021_MERGE_TWO_SORTED_LISTS_HPP struct ListNode { int val; diff --git a/include/s0022_generate_parentheses.hpp b/include/s0022_generate_parentheses.hpp index f5329d6..7a8a9b5 100644 --- a/include/s0022_generate_parentheses.hpp +++ b/include/s0022_generate_parentheses.hpp @@ -1,5 +1,5 @@ -#ifndef S0022_GENERATE_PARENTHESES -#define S0022_GENERATE_PARENTHESES +#ifndef S0022_GENERATE_PARENTHESES_HPP +#define S0022_GENERATE_PARENTHESES_HPP #include #include diff --git a/include/s0023_merge_k_sorted_lists.hpp b/include/s0023_merge_k_sorted_lists.hpp index 3ddf1d7..aaa2f21 100644 --- a/include/s0023_merge_k_sorted_lists.hpp +++ b/include/s0023_merge_k_sorted_lists.hpp @@ -1,5 +1,5 @@ -#ifndef S0023_MERGE_K_SORTED_LISTS -#define S0023_MERGE_K_SORTED_LISTS +#ifndef S0023_MERGE_K_SORTED_LISTS_HPP +#define S0023_MERGE_K_SORTED_LISTS_HPP #include diff --git a/include/s0024_swap_nodes_in_pairs.hpp b/include/s0024_swap_nodes_in_pairs.hpp index 88e0a0b..38040df 100644 --- a/include/s0024_swap_nodes_in_pairs.hpp +++ b/include/s0024_swap_nodes_in_pairs.hpp @@ -1,5 +1,5 @@ -#ifndef S0024_SWAP_NODES_IN_PAIRS -#define S0024_SWAP_NODES_IN_PAIRS +#ifndef S0024_SWAP_NODES_IN_PAIRS_HPP +#define S0024_SWAP_NODES_IN_PAIRS_HPP struct ListNode { int val; diff --git a/include/s0025_reverse_nodes_in_k-group.hpp b/include/s0025_reverse_nodes_in_k-group.hpp index 3dc5418..5d1b558 100644 --- a/include/s0025_reverse_nodes_in_k-group.hpp +++ b/include/s0025_reverse_nodes_in_k-group.hpp @@ -1,5 +1,5 @@ -#ifndef S0025_REVERSE_NODES_IN_K_GROUP -#define S0025_REVERSE_NODES_IN_K_GROUP +#ifndef S0025_REVERSE_NODES_IN_K_GROUP_HPP +#define S0025_REVERSE_NODES_IN_K_GROUP_HPP #include #include diff --git a/include/s0026_remove_duplicates_from_sorted_array.hpp b/include/s0026_remove_duplicates_from_sorted_array.hpp index e046e01..bc7e688 100644 --- a/include/s0026_remove_duplicates_from_sorted_array.hpp +++ b/include/s0026_remove_duplicates_from_sorted_array.hpp @@ -1,5 +1,5 @@ -#ifndef S0026_REMOVE_DUPLICATES_FROM_SORTED_ARRAY -#define S0026_REMOVE_DUPLICATES_FROM_SORTED_ARRAY +#ifndef S0026_REMOVE_DUPLICATES_FROM_SORTED_ARRAY_HPP +#define S0026_REMOVE_DUPLICATES_FROM_SORTED_ARRAY_HPP #include diff --git a/include/s0027_remove_element.hpp b/include/s0027_remove_element.hpp index 26bd932..b5dd814 100644 --- a/include/s0027_remove_element.hpp +++ b/include/s0027_remove_element.hpp @@ -1,5 +1,5 @@ -#ifndef S0027_REMOVE_ELEMENT -#define S0027_REMOVE_ELEMENT +#ifndef S0027_REMOVE_ELEMENT_HPP +#define S0027_REMOVE_ELEMENT_HPP #include diff --git a/include/s0028_find_the_index_of_the_first_occurrence_in_a_string.hpp b/include/s0028_find_the_index_of_the_first_occurrence_in_a_string.hpp index 5c3211b..219e0f1 100644 --- a/include/s0028_find_the_index_of_the_first_occurrence_in_a_string.hpp +++ b/include/s0028_find_the_index_of_the_first_occurrence_in_a_string.hpp @@ -1,5 +1,5 @@ -#ifndef S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING -#define S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING +#ifndef S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING_HPP +#define S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING_HPP #include diff --git a/include/s0029_divide_two_integers.hpp b/include/s0029_divide_two_integers.hpp index b78f606..4b9457c 100644 --- a/include/s0029_divide_two_integers.hpp +++ b/include/s0029_divide_two_integers.hpp @@ -1,5 +1,5 @@ -#ifndef S0029_DIVIDE_TWO_INTEGERS -#define S0029_DIVIDE_TWO_INTEGERS +#ifndef S0029_DIVIDE_TWO_INTEGERS_HPP +#define S0029_DIVIDE_TWO_INTEGERS_HPP #include diff --git a/include/s0030_substring_with_concatenation_of_all_words.hpp b/include/s0030_substring_with_concatenation_of_all_words.hpp index 1e1cacc..49797bf 100644 --- a/include/s0030_substring_with_concatenation_of_all_words.hpp +++ b/include/s0030_substring_with_concatenation_of_all_words.hpp @@ -1,5 +1,5 @@ -#ifndef S0030_SUBSTRING_WITH_CONCATENATION_OF_ALL_WORDS -#define S0030_SUBSTRING_WITH_CONCATENATION_OF_ALL_WORDS +#ifndef S0030_SUBSTRING_WITH_CONCATENATION_OF_ALL_WORDS_HPP +#define S0030_SUBSTRING_WITH_CONCATENATION_OF_ALL_WORDS_HPP #include #include diff --git a/include/s0031_next_permutation.hpp b/include/s0031_next_permutation.hpp index 338bac1..32f1fa5 100644 --- a/include/s0031_next_permutation.hpp +++ b/include/s0031_next_permutation.hpp @@ -1,5 +1,5 @@ -#ifndef S0031_NEXT_PERMUTATION -#define S0031_NEXT_PERMUTATION +#ifndef S0031_NEXT_PERMUTATION_HPP +#define S0031_NEXT_PERMUTATION_HPP #include #include diff --git a/include/s0032_longest_valid_parentheses.hpp b/include/s0032_longest_valid_parentheses.hpp index 8aef8f7..94eb9c3 100644 --- a/include/s0032_longest_valid_parentheses.hpp +++ b/include/s0032_longest_valid_parentheses.hpp @@ -1,5 +1,5 @@ -#ifndef S0032_LONGEST_VALID_PARENTHESES -#define S0032_LONGEST_VALID_PARENTHESES +#ifndef S0032_LONGEST_VALID_PARENTHESES_HPP +#define S0032_LONGEST_VALID_PARENTHESES_HPP #include #include diff --git a/include/s0033_search_in_rotated_sorted_array.hpp b/include/s0033_search_in_rotated_sorted_array.hpp index 1464332..5a728c3 100644 --- a/include/s0033_search_in_rotated_sorted_array.hpp +++ b/include/s0033_search_in_rotated_sorted_array.hpp @@ -1,5 +1,5 @@ -#ifndef S0033_SEARCH_IN_ROTATED_SORTED_ARRAY -#define S0033_SEARCH_IN_ROTATED_SORTED_ARRAY +#ifndef S0033_SEARCH_IN_ROTATED_SORTED_ARRAY_HPP +#define S0033_SEARCH_IN_ROTATED_SORTED_ARRAY_HPP #include #include diff --git a/include/s0034_find_first_and_last_position_of_element_in_sorted_array.hpp b/include/s0034_find_first_and_last_position_of_element_in_sorted_array.hpp index 3e3955b..b891ecc 100644 --- a/include/s0034_find_first_and_last_position_of_element_in_sorted_array.hpp +++ b/include/s0034_find_first_and_last_position_of_element_in_sorted_array.hpp @@ -1,5 +1,5 @@ -#ifndef S0034_FIND_FIRST_AND_LAST_POSITION_OF_ELEMENT_IN_SORTED_ARRAY -#define S0034_FIND_FIRST_AND_LAST_POSITION_OF_ELEMENT_IN_SORTED_ARRAY +#ifndef S0034_FIND_FIRST_AND_LAST_POSITION_OF_ELEMENT_IN_SORTED_ARRAY_HPP +#define S0034_FIND_FIRST_AND_LAST_POSITION_OF_ELEMENT_IN_SORTED_ARRAY_HPP #include #include