Fix headers
This commit is contained in:
parent
9fc414b433
commit
d7a0d6cfe3
@ -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 <vector>
|
||||
|
||||
|
@ -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 <string>
|
||||
#include <algorithm>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0006_ZIGZAG_CONVERSION
|
||||
#define S0006_ZIGZAG_CONVERSION
|
||||
#ifndef S0006_ZIGZAG_CONVERSION_HPP
|
||||
#define S0006_ZIGZAG_CONVERSION_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0007_REVERSE_INTEGER
|
||||
#define S0007_REVERSE_INTEGER
|
||||
#ifndef S0007_REVERSE_INTEGER_HPP
|
||||
#define S0007_REVERSE_INTEGER_HPP
|
||||
|
||||
#include <queue>
|
||||
#include <cmath>
|
||||
|
@ -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 <string>
|
||||
#include <unordered_map>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0009_PALINDROME_NUMBER
|
||||
#define S0009_PALINDROME_NUMBER
|
||||
#ifndef S0009_PALINDROME_NUMBER_HPP
|
||||
#define S0009_PALINDROME_NUMBER_HPP
|
||||
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
@ -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 <string>
|
||||
#include <vector>
|
||||
|
@ -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 <vector>
|
||||
|
||||
|
@ -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 <string>
|
||||
|
||||
|
@ -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 <string>
|
||||
#include <unordered_map>
|
||||
|
@ -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 <string>
|
||||
#include <vector>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0015_3SUM
|
||||
#define S0015_3SUM
|
||||
#ifndef S0015_3SUM_HPP
|
||||
#define S0015_3SUM_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0016_3SUM_CLOSEST
|
||||
#define S0016_3SUM_CLOSEST
|
||||
#ifndef S0016_3SUM_CLOSEST_HPP
|
||||
#define S0016_3SUM_CLOSEST_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
@ -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 <vector>
|
||||
#include <string>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0018_4SUM
|
||||
#define S0018_4SUM
|
||||
#ifndef S0018_4SUM_HPP
|
||||
#define S0018_4SUM_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0020_VALID_PARENTHESES
|
||||
#define S0020_VALID_PARENTHESES
|
||||
#ifndef S0020_VALID_PARENTHESES_HPP
|
||||
#define S0020_VALID_PARENTHESES_HPP
|
||||
|
||||
#include <stack>
|
||||
#include <string>
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0022_GENERATE_PARENTHESES
|
||||
#define S0022_GENERATE_PARENTHESES
|
||||
#ifndef S0022_GENERATE_PARENTHESES_HPP
|
||||
#define S0022_GENERATE_PARENTHESES_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -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 <vector>
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 <utility>
|
||||
#include <tuple>
|
||||
|
@ -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 <vector>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0027_REMOVE_ELEMENT
|
||||
#define S0027_REMOVE_ELEMENT
|
||||
#ifndef S0027_REMOVE_ELEMENT_HPP
|
||||
#define S0027_REMOVE_ELEMENT_HPP
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
@ -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 <string>
|
||||
|
||||
|
@ -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 <climits>
|
||||
|
||||
|
@ -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 <vector>
|
||||
#include <string>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef S0031_NEXT_PERMUTATION
|
||||
#define S0031_NEXT_PERMUTATION
|
||||
#ifndef S0031_NEXT_PERMUTATION_HPP
|
||||
#define S0031_NEXT_PERMUTATION_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
@ -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 <string>
|
||||
#include <vector>
|
||||
|
@ -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 <vector>
|
||||
#include <cmath>
|
||||
|
@ -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 <vector>
|
||||
#include <cmath>
|
||||
|
Loading…
Reference in New Issue
Block a user