File tree
164 files changed
+1711
-1314
lines changed- src/Algorithms
- s0001_two_sum
- s0002_add_two_numbers
- s0003_longest_substring_without_repeating_characters
- s0004_median_of_two_sorted_arrays
- s0005_longest_palindromic_substring
- s0006_zigzag_conversion
- s0007_reverse_integer
- s0008_string_to_integer_atoi
- s0009_palindrome_number
- s0010_regular_expression_matching
- s0011_container_with_most_water
- s0012_integer_to_roman
- s0013_roman_to_integer
- s0014_longest_common_prefix
- s0015_3sum
- s0016_3sum_closest
- s0017_letter_combinations_of_a_phone_number
- s0018_4sum
- s0019_remove_nth_node_from_end_of_list
- s0020_valid_parentheses
- s0021_merge_two_sorted_lists
- s0022_generate_parentheses
- s0023_merge_k_sorted_lists
- s0024_swap_nodes_in_pairs
- s0025_reverse_nodes_in_k_group
- s0026_remove_duplicates_from_sorted_array
- s0027_remove_element
- s0028_find_the_index_of_the_first_occurrence_in_a_string
- s0029_divide_two_integers
- s0030_substring_with_concatenation_of_all_words
- s0031_next_permutation
- s0032_longest_valid_parentheses
- s0033_search_in_rotated_sorted_array
- s0034_find_first_and_last_position_of_element_in_sorted_array
- s0035_search_insert_position
- s0036_valid_sudoku
- s0037_sudoku_solver
- s0038_count_and_say
- s0039_combination_sum
- s0040_combination_sum_ii
- s0041_first_missing_positive
- s0042_trapping_rain_water
- s0043_multiply_strings
- s0044_wildcard_matching
- s0045_jump_game_ii
- s0046_permutations
- s0047_permutations_ii
- s0048_rotate_image
- s0049_group_anagrams
- s0050_powx_n
- s0051_n_queens
- s0052_n_queens_ii
- s0053_maximum_subarray
- s0054_spiral_matrix
- s0055_jump_game
- s0056_merge_intervals
- s0057_insert_interval
- s0058_length_of_last_word
- s0059_spiral_matrix_ii
- s0060_permutation_sequence
- s0061_rotate_list
- s0062_unique_paths
- s0063_unique_paths_ii
- s0064_minimum_path_sum
- s0065_valid_number
- s0066_plus_one
- s0067_add_binary
- s0068_text_justification
- s0069_sqrtx
- s0070_climbing_stairs
- s0071_simplify_path
- s0072_edit_distance
- s0073_set_matrix_zeroes
- s0074_search_a_2d_matrix
- s0075_sort_colors
- s0076_minimum_window_substring
- s0077_combinations
- s0078_subsets
- s0079_word_search
- s0080_remove_duplicates_from_sorted_array_ii
- s0081_search_in_rotated_sorted_array_ii
- s0082_remove_duplicates_from_sorted_list_ii
- s0083_remove_duplicates_from_sorted_list
- s0084_largest_rectangle_in_histogram
- s0085_maximal_rectangle
- s0086_partition_list
- s0087_scramble_string
- s0088_merge_sorted_array
- s0089_gray_code
- s0090_subsets_ii
- s0091_decode_ways
- s0092_reverse_linked_list_ii
- s0093_restore_ip_addresses
- s0094_binary_tree_inorder_traversal
- s0095_unique_binary_search_trees_ii
- s0096_unique_binary_search_trees
- s0097_interleaving_string
- s0098_validate_binary_search_tree
- s0099_recover_binary_search_tree
- s0100_same_tree
- s0101_symmetric_tree
- s0102_binary_tree_level_order_traversal
- s0103_binary_tree_zigzag_level_order_traversal
- s0104_maximum_depth_of_binary_tree
- s0105_construct_binary_tree_from_preorder_and_inorder_traversal
- s0106_construct_binary_tree_from_inorder_and_postorder_traversal
- s0107_binary_tree_level_order_traversal_ii
- s0108_convert_sorted_array_to_binary_search_tree
- s0109_convert_sorted_list_to_binary_search_tree
- s0110_balanced_binary_tree
- s0111_minimum_depth_of_binary_tree
- s0112_path_sum
- s0113_path_sum_ii
- s0114_flatten_binary_tree_to_linked_list
- s0115_distinct_subsequences
- s0116_populating_next_right_pointers_in_each_node
- s0117_populating_next_right_pointers_in_each_node_ii
- s0118_pascals_triangle
- s0119_pascals_triangle_ii
- s0120_triangle
- s0121_best_time_to_buy_and_sell_stock
- s0122_best_time_to_buy_and_sell_stock_ii
- s0123_best_time_to_buy_and_sell_stock_iii
- s0124_binary_tree_maximum_path_sum
- s0125_valid_palindrome
- s0128_longest_consecutive_sequence
- s0129_sum_root_to_leaf_numbers
- s0130_surrounded_regions
- s0131_palindrome_partitioning
- s0132_palindrome_partitioning_ii
- s0133_clone_graph
- s0134_gas_station
- s0135_candy
- s0136_single_number
- s0137_single_number_ii
- s0138_copy_list_with_random_pointer
- s0139_word_break
- s0140_word_break_ii
- s0143_reorder_list
- s0144_binary_tree_preorder_traversal
- s0145_binary_tree_postorder_traversal
- s0146_lru_cache
- s0147_insertion_sort_list
- s0148_sort_list
- s0149_max_points_on_a_line
- s0150_evaluate_reverse_polish_notation
- s0151_reverse_words_in_a_string
- s0152_maximum_product_subarray
- s0153_find_minimum_in_rotated_sorted_array
- s0154_find_minimum_in_rotated_sorted_array_ii
- s0162_find_peak_element
- s0164_maximum_gap
- s0165_compare_version_numbers
- s0166_fraction_to_recurring_decimal
- s0167_two_sum_ii_input_array_is_sorted
- s0168_excel_sheet_column_title
- s0169_majority_element
- s0171_excel_sheet_column_number
- s0172_factorial_trailing_zeroes
- s0174_dungeon_game
- s0179_largest_number
- s0771_jewels_and_stones
- s0864_shortest_path_to_get_all_keys
- s0973_k_closest_points_to_origin
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
164 files changed
+1711
-1314
lines changedLines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 |
| |
2 | 8 |
| |
3 | 9 |
| |
| |||
13 | 19 |
| |
14 | 20 |
| |
15 | 21 |
| |
16 |
| - | |
| 22 | + | |
17 | 23 |
| |
18 | 24 |
| |
19 |
| - | |
| 25 | + | |
20 | 26 |
| |
21 | 27 |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 |
| |
2 | 8 |
| |
3 | 9 |
| |
| |||
15 | 21 |
| |
16 | 22 |
| |
17 | 23 |
| |
18 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 |
| |
20 | 28 |
| |
21 | 29 |
| |
|
Lines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 |
| |
2 | 8 |
| |
3 | 9 |
| |
4 | 10 |
| |
5 | 11 |
| |
6 | 12 |
| |
7 | 13 |
| |
8 |
| - | |
| 14 | + | |
9 | 15 |
| |
10 | 16 |
| |
11 |
| - | |
12 |
| - | |
| 17 | + | |
| 18 | + | |
13 | 19 |
| |
14 | 20 |
| |
15 | 21 |
| |
16 | 22 |
| |
17 | 23 |
| |
18 | 24 |
| |
19 | 25 |
| |
20 |
| - | |
| 26 | + |
Lines changed: 15 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 |
| |
2 | 7 |
| |
3 | 8 |
| |
| |||
7 | 12 |
| |
8 | 13 |
| |
9 | 14 |
| |
10 |
| - | |
| 15 | + | |
| 16 | + | |
11 | 17 |
| |
12 | 18 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
| 23 | + | |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
34 | 32 |
| |
35 | 33 |
| |
36 | 34 |
| |
|
Lines changed: 18 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 |
| |
2 | 9 |
| |
3 | 10 |
| |
4 | 11 |
| |
5 | 12 |
| |
6 | 13 |
| |
7 | 14 |
| |
8 |
| - | |
| 15 | + | |
9 | 16 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 |
| |
19 | 27 |
| |
20 | 28 |
| |
| |||
23 | 31 |
| |
24 | 32 |
| |
25 | 33 |
| |
26 |
| - | |
| 34 | + | |
27 | 35 |
| |
28 |
| - | |
| 36 | + |
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 |
| |
2 | 6 |
| |
3 | 7 |
| |
| |||
21 | 25 |
| |
22 | 26 |
| |
23 | 27 |
| |
24 |
| - | |
| 28 | + |
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 |
| |
2 | 7 |
| |
3 | 8 |
| |
4 | 9 |
| |
5 | 10 |
| |
6 | 11 |
| |
7 | 12 |
| |
8 |
| - | |
| 13 | + | |
9 | 14 |
| |
10 | 15 |
| |
11 | 16 |
| |
12 | 17 |
| |
13 |
| - | |
14 |
| - | |
| 18 | + | |
| 19 | + | |
15 | 20 |
| |
16 | 21 |
|
Lines changed: 24 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 |
| |
2 | 6 |
| |
3 | 7 |
| |
4 | 8 |
| |
5 | 9 |
| |
6 | 10 |
| |
7 | 11 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 |
| |
26 | 33 |
|
Lines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 |
| |
2 | 6 |
| |
3 | 7 |
| |
4 | 8 |
| |
5 | 9 |
| |
6 | 10 |
| |
7 | 11 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 |
| |
12 | 18 |
| |
13 | 19 |
| |
14 |
| - | |
| 20 | + | |
15 | 21 |
| |
16 |
| - | |
| 22 | + |
Lines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 |
| |
2 | 8 |
| |
3 | 9 |
| |
| |||
9 | 15 |
| |
10 | 16 |
| |
11 | 17 |
| |
12 |
| - | |
13 |
| - | |
| 18 | + | |
| 19 | + | |
14 | 20 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 |
| |
20 |
| - | |
| 26 | + | |
21 | 27 |
| |
22 | 28 |
| |
23 | 29 |
| |
24 | 30 |
| |
25 | 31 |
| |
26 |
| - | |
| 32 | + |
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 |
| |
2 | 4 |
| |
3 | 5 |
| |
4 | 6 |
| |
5 | 7 |
| |
6 | 8 |
| |
7 | 9 |
| |
8 |
| - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 |
| |
10 | 14 |
| |
11 | 15 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 |
| |
2 | 4 |
| |
3 | 5 |
| |
| |||
9 | 11 |
| |
10 | 12 |
| |
11 | 13 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
20 |
| - | |
| 22 | + | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
|
0 commit comments