Directories ¶ Show internal Expand all Path Synopsis codility codingame puzzles/easy command puzzles/medium command puzzles/optimization command puzzles/tutorial command codingdojang etc leetcode 01_matrix command 132_pattern command 1_bit_and_2_bit_characters command 2_keys_keyboard command 3sum command 3sum_closest command 4sum command 4sum_ii command add_binary command add_digits command add_strings command all_paths_from_source_to_target command arithmetic_slices command arranging_coins command array_nesting command array_partition command assign_cookies command available_captures_for_rook command backspace_string_compare command base_7 command baseball_game command battleships_in_a_board command beautiful_arrangement command best_time_to_buy_and_sell_stock command best_time_to_buy_and_sell_stock_ii command best_time_to_buy_and_sell_stock_with_cooldown command binary_prefix_divisible_by_5 command binary_search command binary_tree_inorder_traversal command binary_tree_paths command binary_tree_postorder_traversal command binary_tree_preorder_traversal command binary_watch command bitwise_and_of_numbers_range command break_a_palindrome command bulb_switcher command bulls_and_cows command can_make_arithmetic_progression_from_sequence command can_place_flowers command check_if_n_and_its_double_exist command check_if_the_sentence_is_pangram command check_if_two_string_arrays_are_equivalent command climbing_stairs command clone_graph command coin_change command coin_change_ii command combination_sum command combination_sum_ii command combination_sum_iii command combination_sum_iv command combinations command compare_version_numbers command complex_number_multiplication command concatenation_of_consecutive_binary_numbers command consecutive_characters command construct_the_rectangle command container_with_most_water command contains_duplicate command contains_duplicate_ii command contains_duplicate_iii command contiguous_array command continuous_subarray_sum command convert_a_number_to_hexadecimal command copy_list_with_random_pointer command count_and_say command count_binary_substring command count_negative_numbers_in_a_sorted_matrix command count_numbers_with_unique_digits command count_odd_numbers_in_an_interval_range command count_primes command count_sorted_vowel_strings command count_submatrices_with_all_ones command counting_bits command custom_sort_string command daily_temperatures command day_of_the_year command decode_string command decode_the_message command decode_ways command defanging_an_ip_address command delete_and_earn command delete_columns_to_make_sorted command delete_operation_for_two_strings command design_circular_queue command design_hashmap command design_hashset command design_underground_system command detect_capital command determine_if_string_halves_are_alike command di_string_match command diagonal_traverse command different_ways_to_add_parentheses command distribute_candies command divide_two_integers command divisor_game command domino_and_tromino_tiling command duplicate_zeros command edit_distance command element_appearing_more_than_25_in_sorted_array command elimination_game command encode_and_decode_tinyurl command equal_row_and_column_pairs command evaluate_reverse_polish_notation command excel_sheet_column_number command excel_sheet_column_title command extra_characters_in_a_string command factorial_trailing_zeroes command fibonacci_number command find_all_anagrams_in_a_string command find_all_duplicates_in_an_array command find_all_numbers_disappeared_in_an_array command find_and_replace_pattern command find_first_and_last_position_of_element_in_sorted_array command find_k_closest_elements command find_lucky_integer_in_an_array command find_minimum_in_rotated_sorted_array command find_minimum_operations_to_make_all_elements_divisible_by_three command find_peak_element command find_pivot_index command find_right_interval command find_smallest_letter_greater_than_target command find_the_difference command find_the_distance_value_between_two_arrays command find_the_duplicate_number command find_the_town_judge command find_unique_binary_string command first_bad_version command first_unique_character_in_a_string command fizz_buzz command flatten_nested_list_iterator command flip_string_to_monotone_increasing command flood_fill command fraction_addition_and_subtraction command fraction_to_recurring_decimal command gas_station command generate_parentheses command gray_code command greatest_english_letter_in_upper_and_lower_case command greatest_sum_divisible_by_three command group_anagrams command group_of_special_equivalent_strings command guess_number_higher_or_lower command h_index command h_index_ii command hamming_distance command happy_number command height_checker command house_robber command house_robber_ii command how_many_numbers_are_smaller_than_the_current_number command image_overlap command image_smoother command implement_queue_using_stacks command implement_stack_using_queues command implement_strstr command increasing_subsequences command increasing_triplet_subsequence command insert_delete_getrandom_o1 command insert_interval command integer_break command integer_replacement command integer_to_roman command interleaving_string command intersection_of_two_arrays command intersection_of_two_arrays_ii command invert_binary_tree command is_subsequence command island_perimeter command isomorphic_strings command jewels_and_stones command jump_game command jump_game_ii command k_closest_points_to_origin command k_th_symbol_in_grammar command keep_multiplying_found_values_by_two command keyboard_row command keys_and_rooms command kth_largest_element_in_a_stream command kth_largest_element_in_an_array command kth_missing_positive_number command kth_smallest_element_in_a_sorted_matrix command largest_divisible_subset command largest_local_values_in_a_matrix command largest_number command largest_number_at_least_twice_of_others command largest_perimeter_triangle command lemonade_change command length_of_last_word command letter_case_permutation command letter_combinations_of_a_phone_number command letter_tile_possibilities command lexicographical_numbers command license_key_formatting command longest_absolute_file_path command longest_common_prefix command longest_common_subsequence command longest_consecutive_sequence command longest_continuous_increasing_subsequence command longest_harmonious_subsequence command longest_increasing_subsequence command longest_palindrome command longest_palindrome_by_concatenating_two_letter_words command longest_palindromic_subsequence command longest_palindromic_substring command longest_string_chain command longest_subsequence_with_limited_sum command longest_substring_without_repeating_characters command longest_uncommon_subsequence_i command longest_word_in_dictionary command longest_word_in_dictionary_through_deleting command lru_cache command magical_string command majority_element command majority_element_ii command make_the_string_great command matchsticks_to_square command matrix_diagonal_sum command max_area_of_island command max_consecutive_ones command maximal_square command maximize_sum_of_array_after_k_negations command maximum_69_number command maximum_ascending_subarray_sum command maximum_average_subarray_i command maximum_bags_with_full_capacity_of_rocks command maximum_depth_of_binary_tree command maximum_distance_between_a_pair_of_values command maximum_erasure_value command maximum_ice_cream_bars command maximum_length_of_a_concatenated_string_with_unique_characters command maximum_number_of_operations_to_move_ones_to_the_end command maximum_number_of_words_found_in_sentences command maximum_points_you_can_obtain_from_cards command maximum_product_of_three_numbers command maximum_product_of_word_lengths command maximum_product_subarray command maximum_subarray command maximum_subarray_sum_with_one_deletion command maximum_sum_with_exactly_k_elements command maximum_units_on_a_truck command maximum_xor_of_two_numbers_in_an_array command merge_intervals command merge_sorted_array command min_cost_climbing_stairs command min_cost_to_connect_all_points command min_stack command minimum_ascii_delete_sum_for_two_strings command minimum_cost_for_tickets command minimum_cost_to_move_chips_to_the_same_position command minimum_deletions_to_make_character_frequencies_unique command minimum_flips_to_make_a_or_b_equal_to_c command minimum_genetic_mutation command minimum_increment_to_make_array_unique command minimum_index_sum_of_two_lists command minimum_moves_to_equal_array_elements_ii command minimum_number_of_arrows_to_burst_balloons command minimum_operations_to_make_array_sum_divisible_by_k command minimum_operations_to_reduce_x_to_zero command minimum_path_sum command minimum_rounds_to_complete_all_tasks command minimum_size_subarray_sum command minimum_time_difference command minimum_time_to_make_rope_colorful command missing_number command most_common_word command most_frequent_number_following_key_in_an_array command move_zeroes command multiply_strings command n_th_tribonacci_number command next_greater_element_i command next_greater_element_ii command next_permutation command nim_game command non_overlapping_intervals command number_complement command number_of_1_bits command number_of_boomerangs command number_of_dice_rolls_with_target_sum command number_of_enclaves command number_of_islands command number_of_longest_increasing_subsequence command number_of_matching_subsequences command number_of_nodes_in_the_sub_tree_with_the_same_label command number_of_segments_in_a_string command number_of_steps_to_reduce_a_number_to_zero command numbers_with_same_consecutive_differences command occurrences_after_bigram command online_stock_span command optimal_division command out_of_boundary_paths command palindrome_number command palindrome_partitioning command palindromic_substrings command pancake_sorting command partition_equal_subset_sum command partition_labels command partitioning_into_minimum_number_of_deci_binary_numbers command pascals_triangle command pascals_triangle_ii command path_with_minimum_effort command peak_index_in_a_mountain_array command peeking_iterator command perfect_number command perfect_squares command permutation command permutation_in_string command permutations_ii command plus_one command populating_next_right_pointers_in_each_node command populating_next_right_pointers_in_each_node_ii command possible_bipartition command power_of_four command power_of_three command power_of_two command powx_n command predict_the_winner command product_of_array_except_self command queue_reconstruction_by_height command random_pick_index command range_addition_ii command range_sum_of_sorted_subarray_sums command range_sum_query_immutable command range_sum_query_mutable command ransom_note command rectangle_area command reduce_array_size_to_the_half command reducing_dishes command relative_ranks command remove_all_adjacent_duplicates_in_string command remove_all_adjacent_duplicates_in_string_ii command remove_duplicate_letters command remove_duplicates_from_sorted_array command remove_duplicates_from_sorted_array_ii command remove_element command remove_k_digits command remove_palindromic_subsequences command removing_stars_from_a_string command repeated_dna_sequences command repeated_substring_pattern command replace_all_digits_with_characters command replace_words command reshape_the_matrix command restore_ip_addresses command reverse_bits command reverse_integer command reverse_linked_list command reverse_string command reverse_string_ii command reverse_vowels_of_a_string command reverse_words_in_a_string command reverse_words_in_a_string_iii command robot_return_to_origin command roman_to_integer command rotate_array command rotate_function command rotate_image command rotate_string command rotting_oranges command running_sum_of_1d_array command satisfiability_of_equality_equations command score_of_parentheses command search_a_2d_matrix command search_a_2d_matrix_ii command search_in_rotated_sorted_array command search_in_rotated_sorted_array_ii command search_insert_position command search_suggestions_system command set_mismatch command shortest_distance_to_a_character command shortest_path_in_binary_matrix command shuffle_an_array command shuffle_string command shuffle_the_array command sign_of_the_product_of_an_array command simplify_path command single_element_in_a_sorted_array command single_number command single_number_ii command single_number_iii command smallest_even_multiple command sort_an_array command sort_array_by_parity command sort_characters_by_frequency command sort_colors command special_array_with_x_elements_greater_than_or_equal_x command spiral_matrix command spiral_matrix_ii command split_a_string_in_balanced_strings command split_array_into_consecutive_subsequences command sqrtx command squares_of_a_sorted_array command string_compression command string_to_integer_atoi command student_attendance_record_i command subarray_sum_equals_k command subsets command subsets_ii command sum_of_even_numbers_after_queries command sum_of_square_numbers command sum_of_two_integers command summary_ranges command super_pow command super_ugly_number command surrounded_regions command symmetric_tree command target_sum command task_scheduler command teemo_attacking command the_k_weakest_rows_in_a_matrix command third_maximum_number command time_based_key_value_store command to_lower_case command toeplitz_matrix command top_k_frequent_elements command total_hamming_distance command transpose_matrix command trapping_rain_water command triangle command two_sum command two_sum_ii_input_array_is_sorted command ugly_number command ugly_number_ii command uncommon_words_from_two_sentences command unique_binary_search_trees command unique_morse_code_words command unique_number_of_occurrences command unique_paths command unique_paths_ii command utf_8_validation command valid_anagram command valid_palindrome command valid_palindrome_ii command valid_parentheses command valid_perfect_square command valid_square command valid_sudoku command verify_preorder_serialization_of_a_binary_tree command verifying_an_alien_dictionary command wiggle_subsequence command word_break command word_break_ii command word_pattern command word_search command zigzag_conversion command Click to show internal directories. Click to hide internal directories.