leetcode/src/problem/mod.rs

146 lines
5.3 KiB
Rust
Raw Normal View History

2024-04-04 11:25:03 +08:00
mod p1_two_sum;
mod p9_palindrome_number;
mod p20_valid_parentheses;
2024-01-12 23:09:43 +08:00
mod p2697_lexicographically_smallest_palindrome;
2024-04-04 11:25:03 +08:00
mod p2_add_two_numbers;
mod p3_longest_substring_without_repeating_characters;
mod p162_find_peak_element;
2024-01-12 23:09:43 +08:00
mod p2828_check_if_a_string_is_an_acronym_of_words;
2024-04-05 11:19:09 +08:00
mod p52_n_queens_ii;
2024-04-04 11:25:03 +08:00
mod p912_sort_an_array;
2024-01-12 23:09:43 +08:00
mod p1276_number_of_burgers_with_no_waste_of_ingredients;
2024-04-04 11:25:03 +08:00
mod p6_zigzag_conversion;
mod p7_reverse_integer;
mod p4_median_of_two_sorted_arrays;
mod p743_network_delay_time;
mod p447_number_of_boomerangs;
2024-01-12 23:09:43 +08:00
mod p2085_count_common_words_with_one_occurrence;
2024-01-15 12:00:43 +08:00
mod p2182_construct_string_with_repeat_limit;
mod p83_remove_duplicates_from_sorted_list;
2024-01-16 13:03:18 +08:00
mod p82_remove_duplicates_from_sorted_list_ii;
2024-01-17 10:48:46 +08:00
mod p2719_count_of_integers;
2024-01-18 11:44:50 +08:00
mod p2744_find_maximum_number_of_string_pairs;
2024-01-19 12:16:20 +08:00
mod p2171_removing_minimum_number_of_magic_beans;
2024-01-20 10:25:01 +08:00
mod p2809_minimum_time_to_make_array_sum_at_most_x;
2024-01-21 16:41:47 +08:00
mod p2788_split_strings_by_separator;
2024-01-22 11:05:07 +08:00
mod p410_split_array_largest_sum;
2024-01-23 11:16:04 +08:00
mod p670_maximum_swap;
2024-01-24 10:39:34 +08:00
mod p2765_longest_alternating_subarray;
2024-01-25 11:20:42 +08:00
mod p2865_beautiful_towers_i;
2024-01-26 12:54:27 +08:00
mod p2859_sum_of_values_at_indices_with_k_set_bits;
2024-01-27 12:59:57 +08:00
mod p2846_minimum_edge_weight_equilibrium_queries_in_a_tree;
2024-01-28 10:24:47 +08:00
mod p2861_maximum_number_of_alloys;
2024-01-29 14:54:25 +08:00
mod p365_water_and_jug_problem;
2024-01-30 11:01:40 +08:00
mod p514_freedom_trail;
2024-01-31 10:26:18 +08:00
mod p2808_minimum_seconds_to_equalize_a_circular_array;
2024-02-01 11:13:56 +08:00
mod p2670_find_the_distinct_difference_array;
2024-02-02 21:17:19 +08:00
mod lcp24_nums_game;
2024-02-03 10:44:02 +08:00
mod p1686_stone_game_vi;
2024-02-04 10:37:50 +08:00
mod p1690_stone_game_vii;
2024-02-05 11:38:48 +08:00
mod p292_nim_game;
2024-02-06 11:07:21 +08:00
mod p1696_jump_game_vi;
2024-02-07 11:33:09 +08:00
mod lcp30_magic_tower;
2024-02-08 10:36:24 +08:00
mod p2641_cousins_in_binary_tree_ii;
2024-02-09 10:31:26 +08:00
mod p993_cousins_in_binary_tree;
2024-02-10 20:05:29 +08:00
mod p236_lowest_common_ancestor_of_a_binary_tree;
2024-02-11 13:17:27 +08:00
mod p94_binary_tree_inorder_traversal;
2024-02-12 12:24:56 +08:00
mod p144_binary_tree_preorder_traversal;
2024-02-13 11:03:03 +08:00
mod p145_binary_tree_postorder_traversal;
2024-02-14 12:27:50 +08:00
mod p987_vertical_order_traversal_of_a_binary_tree;
2024-02-15 11:27:21 +08:00
mod p102_binary_tree_level_order_traversal;
2024-02-16 10:28:57 +08:00
mod p107_binary_tree_level_order_traversal_ii;
2024-02-20 11:50:13 +08:00
mod p103_binary_tree_zigzag_level_order_traversal;
2024-02-21 21:19:54 +08:00
mod p105_construct_binary_tree_from_preorder_and_inorder_traversal;
2024-02-22 18:50:11 +08:00
mod p106_construct_binary_tree_from_inorder_and_postorder_traversal;
2024-02-25 15:15:14 +08:00
mod p235_lowest_common_ancestor_of_a_binary_search_tree;
mod p2583_kth_largest_sum_in_a_binary_tree;
2024-02-26 09:16:06 +08:00
mod p2476_closest_nodes_queries_in_a_binary_search_tree;
mod p938_range_sum_of_bst;
2024-02-27 09:21:05 +08:00
mod p889_construct_binary_tree_from_preorder_and_postorder_traversal;
2024-02-28 10:12:27 +08:00
mod p2867_count_valid_paths_in_a_tree;
2024-02-29 11:20:16 +08:00
mod p2673_make_costs_of_paths_equal_in_a_binary_tree;
2024-03-01 08:23:03 +08:00
mod p2581_count_number_of_possible_root_nodes;
2024-03-02 10:13:37 +08:00
mod p2369_check_if_there_is_a_valid_partition_for_the_array;
2024-03-03 10:20:05 +08:00
mod p2368_reachable_nodes_with_restrictions;
2024-03-04 10:59:17 +08:00
mod p225_implement_stack_using_queues;
2024-03-05 13:35:09 +08:00
mod p232_implement_queue_using_stacks;
2024-03-06 09:58:10 +08:00
mod p1976_number_of_ways_to_arrive_at_destination;
2024-03-07 10:17:45 +08:00
mod p2917_find_the_k_or_of_an_array;
2024-03-08 08:46:20 +08:00
mod p2575_find_the_divisibility_array_of_a_string;
2024-03-09 11:25:22 +08:00
mod p2834_find_the_minimum_possible_sum_of_a_beautiful_array;
2024-03-10 10:41:58 +08:00
mod p2386_find_the_k_sum_of_an_array;
2024-03-11 11:13:02 +08:00
mod p299_bulls_and_cows;
2024-03-12 15:14:49 +08:00
mod p2129_capitalize_the_title;
2024-03-16 11:37:58 +08:00
mod p1261_find_elements_in_a_contaminated_binary_tree;
2024-03-14 10:01:52 +08:00
mod p2864_maximum_odd_binary_number;
2024-03-15 08:42:59 +08:00
mod p2789_largest_element_in_an_array_after_merge_operations;
mod p2312_selling_pieces_of_wood;
2024-03-17 11:26:12 +08:00
mod p2684_maximum_number_of_moves_in_a_grid;
2024-03-18 10:50:21 +08:00
mod p310_minimum_height_trees;
2024-03-19 14:12:26 +08:00
mod p303_range_sum_query_immutable;
2024-03-23 11:01:30 +08:00
mod p1793_maximum_score_of_a_good_subarray;
2024-03-21 11:04:22 +08:00
mod p1969_minimum_non_zero_product_of_the_array_elements;
2024-03-22 08:50:36 +08:00
mod p2671_frequency_tracker;
mod p2617_minimum_number_of_visited_cells_in_a_grid;
2024-03-24 12:07:56 +08:00
mod p2549_count_distinct_numbers_on_board;
2024-03-25 11:03:11 +08:00
mod p322_coin_change;
2024-03-26 12:33:45 +08:00
mod p518_coin_change_ii;
2024-03-27 10:46:20 +08:00
mod p2642_design_graph_with_shortest_path_calculator;
2024-03-28 10:27:48 +08:00
mod p2580_count_ways_to_group_overlapping_ranges;
2024-03-29 12:07:15 +08:00
mod p1997_first_day_where_you_have_been_in_all_the_rooms;
2024-03-30 12:06:47 +08:00
mod p2908_minimum_sum_of_mountain_triplets_i;
2024-03-31 11:46:39 +08:00
mod p2952_minimum_number_of_coins_to_be_added;
2024-04-01 11:23:10 +08:00
mod p331_verify_preorder_serialization_of_a_binary_tree;
2024-04-04 11:18:09 +08:00
mod p88_merge_sorted_array;
mod p26_remove_duplicates_from_sorted_array;
2024-04-05 11:18:42 +08:00
mod p27_remove_element;
2024-04-07 11:35:33 +08:00
mod p80_remove_duplicates_from_sorted_array_ii;
2024-04-08 11:02:39 +08:00
mod p169_majority_element;
2024-04-09 16:09:15 +08:00
mod p189_rotate_array;
2024-04-13 11:15:25 +08:00
mod p121_best_time_to_buy_and_sell_stock;
2024-04-11 10:15:33 +08:00
mod p122_best_time_to_buy_and_sell_stock_ii;
2024-04-12 08:15:14 +08:00
mod p55_jump_game;
mod p45_jump_game_ii;
2024-04-14 12:20:08 +08:00
mod p274_h_index;
2024-04-15 10:29:11 +08:00
mod p380_insert_delete_getrandom_o1;
2024-04-17 10:26:22 +08:00
mod p238_product_of_array_except_self;
2024-04-18 11:24:59 +08:00
mod p134_gas_station;
2024-04-19 08:13:18 +08:00
mod p135_candy;
2024-04-20 10:50:10 +08:00
mod p42_trapping_rain_water;
2024-04-21 13:49:42 +08:00
mod p58_length_of_last_word;
2024-04-22 10:00:39 +08:00
mod p151_reverse_words_in_a_string;
2024-04-23 20:10:00 +08:00
mod p28_find_the_index_of_the_first_occurrence_in_a_string;
2024-04-24 10:05:18 +08:00
mod p68_text_justification;
2024-04-25 10:02:32 +08:00
mod p125_valid_palindrome;
2024-04-26 08:11:30 +08:00
mod p392_is_subsequence;
2024-04-27 09:20:30 +08:00
mod p167_two_sum_ii_input_array_is_sorted;
2024-04-28 11:05:24 +08:00
mod p209_minimum_size_subarray_sum;
2024-04-29 11:42:45 +08:00
mod p30_substring_with_concatenation_of_all_words;
2024-04-30 12:40:16 +08:00
mod p76_minimum_window_substring;
2024-05-01 20:28:07 +08:00
mod p36_valid_sudoku;
2024-05-02 20:17:28 +08:00
mod p54_spiral_matrix;
2024-05-03 12:04:47 +08:00
mod p48_rotate_image;
2024-05-04 11:32:25 +08:00
mod p73_set_matrix_zeroes;
2024-05-05 11:57:17 +08:00
mod p289_game_of_life;
2024-05-07 14:18:09 +08:00
mod p383_ransom_note;
mod p290_word_pattern;
2024-05-08 10:01:30 +08:00
mod p205_isomorphic_strings;
2024-05-09 23:39:23 +08:00
mod p242_valid_anagram;
2024-05-10 13:20:17 +08:00
mod p49_group_anagrams;
2024-05-11 10:52:31 +08:00
mod p202_happy_number;
2024-05-12 10:48:36 +08:00
mod p219_contains_duplicate_ii;
2024-05-16 10:29:00 +08:00
mod p128_longest_consecutive_sequence;
2024-05-14 18:14:00 +08:00
mod p228_summary_ranges;
2024-05-15 14:23:43 +08:00
mod p56_merge_intervals;
mod p57_insert_interval;
2024-05-17 08:24:53 +08:00
mod p452_minimum_number_of_arrows_to_burst_balloons;
2024-05-18 10:05:58 +08:00
mod p71_simplify_path;
2024-05-20 11:19:27 +08:00
mod p155_min_stack;
2024-05-22 11:17:56 +08:00
mod p150_evaluate_reverse_polish_notation;
2024-05-24 09:25:16 +08:00
mod p224_basic_calculator;
2024-06-03 11:27:57 +08:00
mod p21_merge_two_sorted_lists;
2024-06-04 15:23:53 +08:00
mod p104_maximum_depth_of_binary_tree;
2024-06-05 10:56:24 +08:00
mod p100_same_tree;
2024-06-06 10:46:19 +08:00
mod p226_invert_binary_tree;
2024-06-08 11:35:49 +08:00
mod p101_symmetric_tree;
mod p114_flatten_binary_tree_to_linked_list;