├── .github └── workflows │ └── go.yml ├── .gitignore ├── LICENSE ├── README.md ├── go.mod ├── helper └── README.md ├── internal ├── base │ ├── base.go │ ├── cmd.go │ └── run.go ├── browser │ └── browser.go ├── build │ └── build.go ├── clean │ └── clean.go ├── client │ └── client.go ├── description │ └── description.go ├── help │ └── help.go ├── helper │ └── helper.go ├── kit │ ├── doc.go │ ├── is_equal.go │ ├── is_equal_test.go │ ├── list_node.go │ ├── list_node_test.go │ ├── tree_node.go │ └── tree_node_test.go ├── leetcode │ ├── base.go │ ├── config.go │ ├── doc.go │ ├── lang_kit.go │ ├── login.go │ ├── problems_algorithms.go │ ├── problems_all.go │ ├── problems_database.go │ ├── problems_shell.go │ ├── problems_status.go │ ├── question_article.go │ ├── question_data.go │ ├── question_translation.go │ └── topic_tag.go ├── open │ └── open.go ├── page │ └── page.go ├── post │ └── post.go ├── question │ └── question.go ├── readme │ └── readme.go ├── tag │ └── tag.go ├── test │ └── test.go ├── update │ └── update.go └── version │ └── version.go ├── main.go ├── problems ├── 01-matrix │ ├── 01_matrix.go │ ├── 01_matrix_test.go │ └── README.md ├── 1-bit-and-2-bit-characters │ ├── 1_bit_and_2_bit_characters.go │ ├── 1_bit_and_2_bit_characters_test.go │ └── README.md ├── 132-pattern │ ├── 132_pattern.go │ ├── 132_pattern_test.go │ └── README.md ├── 2-keys-keyboard │ ├── 2_keys_keyboard.go │ ├── 2_keys_keyboard_test.go │ └── README.md ├── 24-game │ ├── 24_game.go │ ├── 24_game_test.go │ └── README.md ├── 3sum-closest │ ├── 3sum_closest.go │ ├── 3sum_closest_test.go │ └── README.md ├── 3sum-smaller │ ├── 3sum_smaller.go │ ├── 3sum_smaller_test.go │ └── README.md ├── 3sum-with-multiplicity │ ├── 3sum_with_multiplicity.go │ ├── 3sum_with_multiplicity_test.go │ └── README.md ├── 3sum │ ├── 3sum.go │ ├── 3sum_test.go │ └── README.md ├── 4-keys-keyboard │ ├── 4_keys_keyboard.go │ ├── 4_keys_keyboard_test.go │ └── README.md ├── 4sum-ii │ ├── 4sum_ii.go │ ├── 4sum_ii_test.go │ └── README.md ├── 4sum │ ├── 4sum.go │ ├── 4sum_test.go │ └── README.md ├── a-number-after-a-double-reversal │ └── README.md ├── abbreviating-the-product-of-a-range │ └── README.md ├── accepted-candidates-from-the-interviews │ ├── README.md │ └── mysql_schemas.sql ├── account-balance │ ├── README.md │ └── mysql_schemas.sql ├── accounts-merge │ ├── README.md │ ├── accounts_merge.go │ └── accounts_merge_test.go ├── active-businesses │ ├── README.md │ ├── active_businesses.sql │ └── mysql_schemas.sql ├── active-users │ ├── README.md │ └── mysql_schemas.sql ├── activity-participants │ ├── README.md │ └── mysql_schemas.sql ├── actors-and-directors-who-cooperated-at-least-three-times │ ├── README.md │ ├── actors_and_directors_who_cooperated_at_least_three_times.sql │ └── mysql_schemas.sql ├── ad-free-sessions │ ├── README.md │ └── mysql_schemas.sql ├── add-and-search-word-data-structure-design │ ├── README.md │ ├── add_and_search_word_data_structure_design.go │ └── add_and_search_word_data_structure_design_test.go ├── add-binary │ ├── README.md │ ├── add_binary.go │ └── add_binary_test.go ├── add-bold-tag-in-string │ ├── README.md │ ├── add_bold_tag_in_string.go │ └── add_bold_tag_in_string_test.go ├── add-digits │ ├── README.md │ ├── add_digits.go │ └── add_digits_test.go ├── add-minimum-number-of-rungs │ └── README.md ├── add-one-row-to-tree │ ├── README.md │ ├── add_one_row_to_tree.go │ └── add_one_row_to_tree_test.go ├── add-strings │ ├── README.md │ ├── add_strings.go │ └── add_strings_test.go ├── add-to-array-form-of-integer │ ├── README.md │ ├── add_to_array_form_of_integer.go │ └── add_to_array_form_of_integer_test.go ├── add-two-numbers-ii │ ├── README.md │ ├── add_two_numbers_ii.go │ └── add_two_numbers_ii_test.go ├── add-two-numbers │ ├── README.md │ ├── add_two_numbers.go │ └── add_two_numbers_test.go ├── add-two-polynomials-represented-as-linked-lists │ └── README.md ├── adding-spaces-to-a-string │ └── README.md ├── adding-two-negabinary-numbers │ ├── README.md │ └── adding_two_negabinary_numbers.go ├── additive-number │ ├── README.md │ ├── additive_number.go │ └── additive_number_test.go ├── ads-performance │ ├── README.md │ └── mysql_schemas.sql ├── advantage-shuffle │ ├── README.md │ ├── advantage_shuffle.go │ └── advantage_shuffle_test.go ├── airplane-seat-assignment-probability │ └── README.md ├── alert-using-same-key-card-three-or-more-times-in-a-one-hour-period │ └── README.md ├── alien-dictionary │ ├── README.md │ ├── alien_dictionary.go │ └── alien_dictionary_test.go ├── all-divisions-with-the-highest-score-of-a-binary-array │ └── README.md ├── all-elements-in-two-binary-search-trees │ └── README.md ├── all-nodes-distance-k-in-binary-tree │ ├── README.md │ ├── all_nodes_distance_k_in_binary_tree.go │ └── all_nodes_distance_k_in_binary_tree_test.go ├── all-oone-data-structure │ ├── README.md │ ├── all_oone_data_structure.go │ └── all_oone_data_structure_test.go ├── all-paths-from-source-lead-to-destination │ └── README.md ├── all-paths-from-source-to-target │ ├── README.md │ ├── all_paths_from_source_to_target.go │ └── all_paths_from_source_to_target_test.go ├── all-people-report-to-the-given-manager │ ├── README.md │ └── mysql_schemas.sql ├── all-possible-full-binary-trees │ ├── README.md │ ├── all_possible_full_binary_trees.go │ └── all_possible_full_binary_trees_test.go ├── all-the-pairs-with-the-maximum-number-of-common-followers │ ├── README.md │ └── mysql_schemas.sql ├── all-valid-triplets-that-can-represent-a-country │ ├── README.md │ └── mysql_schemas.sql ├── allocate-mailboxes │ └── README.md ├── alphabet-board-path │ ├── README.md │ └── alphabet_board_path.go ├── ambiguous-coordinates │ ├── README.md │ ├── ambiguous_coordinates.go │ └── ambiguous_coordinates_test.go ├── amount-of-new-area-painted-each-day │ └── README.md ├── analyze-user-website-visit-pattern │ └── README.md ├── android-unlock-patterns │ ├── README.md │ ├── android_unlock_patterns.go │ └── android_unlock_patterns_test.go ├── angle-between-hands-of-a-clock │ └── README.md ├── apples-oranges │ ├── README.md │ └── mysql_schemas.sql ├── apply-discount-every-n-orders │ └── README.md ├── arithmetic-slices-ii-subsequence │ ├── README.md │ ├── arithmetic_slices_ii_subsequence.go │ └── arithmetic_slices_ii_subsequence_test.go ├── arithmetic-slices │ ├── README.md │ ├── arithmetic_slices.go │ └── arithmetic_slices_test.go ├── arithmetic-subarrays │ └── README.md ├── armstrong-number │ └── README.md ├── arranging-coins │ ├── README.md │ ├── arranging_coins.go │ └── arranging_coins_test.go ├── array-nesting │ ├── README.md │ ├── array_nesting.go │ └── array_nesting_test.go ├── array-of-doubled-pairs │ ├── README.md │ ├── array_of_doubled_pairs.go │ └── array_of_doubled_pairs_test.go ├── array-partition-i │ ├── README.md │ ├── array_partition_i.go │ └── array_partition_i_test.go ├── array-transformation │ └── README.md ├── array-with-elements-not-equal-to-average-of-neighbors │ └── README.md ├── article-views-i │ ├── README.md │ └── mysql_schemas.sql ├── article-views-ii │ ├── README.md │ └── mysql_schemas.sql ├── as-far-from-land-as-possible │ └── README.md ├── assign-cookies │ ├── README.md │ ├── assign_cookies.go │ └── assign_cookies_test.go ├── asteroid-collision │ ├── README.md │ ├── asteroid_collision.go │ └── asteroid_collision_test.go ├── available-captures-for-rook │ ├── README.md │ ├── available_captures_for_rook.go │ └── available_captures_for_rook_test.go ├── average-height-of-buildings-in-each-segment │ └── README.md ├── average-of-levels-in-binary-tree │ ├── README.md │ ├── average_of_levels_in_binary_tree.go │ └── average_of_levels_in_binary_tree_test.go ├── average-salary-departments-vs-company │ ├── README.md │ ├── average_salary_departments_vs_company.sql │ └── mysql_schemas.sql ├── average-salary-excluding-the-minimum-and-maximum-salary │ └── README.md ├── average-selling-price │ ├── README.md │ └── mysql_schemas.sql ├── average-time-of-process-per-machine │ ├── README.md │ └── mysql_schemas.sql ├── average-waiting-time │ └── README.md ├── avoid-flood-in-the-city │ └── README.md ├── backspace-string-compare │ ├── README.md │ ├── backspace_string_compare.go │ └── backspace_string_compare_test.go ├── bag-of-tokens │ ├── README.md │ ├── bag_of_tokens.go │ └── bag_of_tokens_test.go ├── balance-a-binary-search-tree │ └── README.md ├── balanced-binary-tree │ ├── README.md │ ├── balanced_binary_tree.go │ └── balanced_binary_tree_test.go ├── bank-account-summary-ii │ ├── README.md │ └── mysql_schemas.sql ├── bank-account-summary │ ├── README.md │ └── mysql_schemas.sql ├── base-7 │ ├── README.md │ ├── base_7.go │ └── base_7_test.go ├── baseball-game │ ├── README.md │ ├── baseball_game.go │ └── baseball_game_test.go ├── basic-calculator-ii │ ├── README.md │ ├── basic_calculator_ii.go │ └── basic_calculator_ii_test.go ├── basic-calculator-iii │ ├── README.md │ ├── basic_calculator_iii.go │ └── basic_calculator_iii_test.go ├── basic-calculator-iv │ ├── README.md │ ├── basic_calculator_iv.go │ └── basic_calculator_iv_test.go ├── basic-calculator │ ├── README.md │ ├── basic_calculator.go │ └── basic_calculator_test.go ├── battleships-in-a-board │ ├── README.md │ ├── battleships_in_a_board.go │ └── battleships_in_a_board_test.go ├── beautiful-arrangement-ii │ ├── README.md │ ├── beautiful_arrangement_ii.go │ └── beautiful_arrangement_ii_test.go ├── beautiful-arrangement │ ├── README.md │ ├── beautiful_arrangement.go │ └── beautiful_arrangement_test.go ├── beautiful-array │ ├── README.md │ ├── beautiful_array.go │ └── beautiful_array_test.go ├── before-and-after-puzzle │ └── README.md ├── best-meeting-point │ ├── README.md │ ├── best_meeting_point.go │ └── best_meeting_point_test.go ├── best-position-for-a-service-centre │ └── README.md ├── best-sightseeing-pair │ ├── README.md │ └── best_sightseeing_pair.go ├── best-team-with-no-conflicts │ └── README.md ├── best-time-to-buy-and-sell-stock-ii │ ├── README.md │ ├── best_time_to_buy_and_sell_stock_ii.go │ └── best_time_to_buy_and_sell_stock_ii_test.go ├── best-time-to-buy-and-sell-stock-iii │ ├── README.md │ ├── best_time_to_buy_and_sell_stock_iii.go │ └── best_time_to_buy_and_sell_stock_iii_test.go ├── best-time-to-buy-and-sell-stock-iv │ ├── README.md │ ├── best_time_to_buy_and_sell_stock_iv.go │ └── best_time_to_buy_and_sell_stock_iv_test.go ├── best-time-to-buy-and-sell-stock-with-cooldown │ ├── README.md │ ├── best_time_to_buy_and_sell_stock_with_cooldown.go │ └── best_time_to_buy_and_sell_stock_with_cooldown_test.go ├── best-time-to-buy-and-sell-stock-with-transaction-fee │ ├── README.md │ ├── best_time_to_buy_and_sell_stock_with_transaction_fee.go │ └── best_time_to_buy_and_sell_stock_with_transaction_fee_test.go ├── best-time-to-buy-and-sell-stock │ ├── README.md │ ├── best_time_to_buy_and_sell_stock.go │ └── best_time_to_buy_and_sell_stock_test.go ├── big-countries │ ├── README.md │ ├── big_countries.sql │ └── mysql_schemas.sql ├── biggest-single-number │ ├── README.md │ ├── biggest_single_number.sql │ └── mysql_schemas.sql ├── biggest-window-between-visits │ ├── README.md │ └── mysql_schemas.sql ├── binary-gap │ ├── README.md │ ├── binary_gap.go │ └── binary_gap_test.go ├── binary-number-with-alternating-bits │ ├── README.md │ ├── binary_number_with_alternating_bits.go │ └── binary_number_with_alternating_bits_test.go ├── binary-prefix-divisible-by-5 │ ├── README.md │ ├── binary_prefix_divisible_by_5.go │ └── binary_prefix_divisible_by_5_test.go ├── binary-search-tree-iterator-ii │ └── README.md ├── binary-search-tree-iterator │ ├── README.md │ ├── binary_search_tree_iterator.go │ └── binary_search_tree_iterator_test.go ├── binary-search-tree-to-greater-sum-tree │ └── README.md ├── binary-search │ ├── README.md │ ├── binary_search.go │ └── binary_search_test.go ├── binary-searchable-numbers-in-an-unsorted-array │ └── README.md ├── binary-string-with-substrings-representing-1-to-n │ ├── README.md │ └── binary_string_with_substrings_representing_1_to_n.go ├── binary-subarrays-with-sum │ ├── README.md │ ├── binary_subarrays_with_sum.go │ └── binary_subarrays_with_sum_test.go ├── binary-tree-cameras │ ├── README.md │ └── binary_tree_cameras.go ├── binary-tree-coloring-game │ └── README.md ├── binary-tree-inorder-traversal │ ├── README.md │ ├── binary_tree_inorder_traversal.go │ └── binary_tree_inorder_traversal_test.go ├── binary-tree-level-order-traversal-ii │ ├── README.md │ ├── binary_tree_level_order_traversal_ii.go │ └── binary_tree_level_order_traversal_ii_test.go ├── binary-tree-level-order-traversal │ ├── README.md │ ├── binary_tree_level_order_traversal.go │ └── binary_tree_level_order_traversal_test.go ├── binary-tree-longest-consecutive-sequence-ii │ ├── README.md │ ├── binary_tree_longest_consecutive_sequence_ii.go │ └── binary_tree_longest_consecutive_sequence_ii_test.go ├── binary-tree-longest-consecutive-sequence │ ├── README.md │ ├── binary_tree_longest_consecutive_sequence.go │ └── binary_tree_longest_consecutive_sequence_test.go ├── binary-tree-maximum-path-sum │ ├── README.md │ ├── binary_tree_maximum_path_sum.go │ └── binary_tree_maximum_path_sum_test.go ├── binary-tree-paths │ ├── README.md │ ├── binary_tree_paths.go │ └── binary_tree_paths_test.go ├── binary-tree-postorder-traversal │ ├── README.md │ ├── binary_tree_postorder_traversal.go │ └── binary_tree_postorder_traversal_test.go ├── binary-tree-preorder-traversal │ ├── README.md │ ├── binary_tree_preorder_traversal.go │ └── binary_tree_preorder_traversal_test.go ├── binary-tree-pruning │ ├── README.md │ ├── binary_tree_pruning.go │ └── binary_tree_pruning_test.go ├── binary-tree-right-side-view │ ├── README.md │ ├── binary_tree_right_side_view.go │ └── binary_tree_right_side_view_test.go ├── binary-tree-tilt │ ├── README.md │ ├── binary_tree_tilt.go │ └── binary_tree_tilt_test.go ├── binary-tree-upside-down │ ├── README.md │ ├── binary_tree_upside_down.go │ └── binary_tree_upside_down_test.go ├── binary-tree-vertical-order-traversal │ ├── README.md │ ├── binary_tree_vertical_order_traversal.go │ └── binary_tree_vertical_order_traversal_test.go ├── binary-tree-zigzag-level-order-traversal │ ├── README.md │ ├── binary_tree_zigzag_level_order_traversal.go │ └── binary_tree_zigzag_level_order_traversal_test.go ├── binary-trees-with-factors │ ├── README.md │ ├── binary_trees_with_factors.go │ └── binary_trees_with_factors_test.go ├── binary-watch │ ├── README.md │ ├── binary_watch.go │ └── binary_watch_test.go ├── bitwise-and-of-numbers-range │ ├── README.md │ ├── bitwise_and_of_numbers_range.go │ └── bitwise_and_of_numbers_range_test.go ├── bitwise-ors-of-subarrays │ ├── README.md │ ├── bitwise_ors_of_subarrays.go │ └── bitwise_ors_of_subarrays_test.go ├── boats-to-save-people │ ├── README.md │ ├── boats_to_save_people.go │ └── boats_to_save_people_test.go ├── bold-words-in-string │ ├── README.md │ ├── bold_words_in_string.go │ └── bold_words_in_string_test.go ├── bomb-enemy │ ├── README.md │ ├── bomb_enemy.go │ └── bomb_enemy_test.go ├── boundary-of-binary-tree │ ├── README.md │ ├── boundary_of_binary_tree.go │ └── boundary_of_binary_tree_test.go ├── brace-expansion-ii │ ├── README.md │ └── brace_expansion_ii.go ├── brace-expansion │ └── README.md ├── break-a-palindrome │ └── README.md ├── brick-wall │ ├── README.md │ ├── brick_wall.go │ └── brick_wall_test.go ├── bricks-falling-when-hit │ ├── README.md │ ├── bricks_falling_when_hit.go │ └── bricks_falling_when_hit_test.go ├── brightest-position-on-street │ └── README.md ├── broken-calculator │ ├── README.md │ └── broken_calculator.go ├── buddy-strings │ ├── README.md │ ├── buddy_strings.go │ └── buddy_strings_test.go ├── build-an-array-with-stack-operations │ └── README.md ├── build-array-from-permutation │ └── README.md ├── build-array-where-you-can-find-the-maximum-exactly-k-comparisons │ └── README.md ├── build-binary-expression-tree-from-infix-expression │ └── README.md ├── build-the-equation │ ├── README.md │ └── mysql_schemas.sql ├── building-boxes │ └── README.md ├── building-h2o │ ├── README.md │ └── building_h2o.py ├── buildings-with-an-ocean-view │ └── README.md ├── bulb-switcher-ii │ ├── README.md │ ├── bulb_switcher_ii.go │ └── bulb_switcher_ii_test.go ├── bulb-switcher-iii │ └── README.md ├── bulb-switcher-iv │ └── README.md ├── bulb-switcher │ ├── README.md │ ├── bulb_switcher.go │ └── bulb_switcher_test.go ├── bulls-and-cows │ ├── README.md │ ├── bulls_and_cows.go │ └── bulls_and_cows_test.go ├── burst-balloons │ ├── README.md │ ├── burst_balloons.go │ └── burst_balloons_test.go ├── bus-routes │ ├── README.md │ ├── bus_routes.go │ └── bus_routes_test.go ├── calculate-money-in-leetcode-bank │ └── README.md ├── calculate-salaries │ ├── README.md │ └── mysql_schemas.sql ├── calculate-special-bonus │ ├── README.md │ └── mysql_schemas.sql ├── camelcase-matching │ ├── README.md │ ├── camelcase_matching.go │ └── camelcase_matching_test.go ├── campus-bikes-ii │ └── README.md ├── campus-bikes │ └── README.md ├── can-convert-string-in-k-moves │ └── README.md ├── can-i-win │ ├── README.md │ ├── can_i_win.go │ └── can_i_win_test.go ├── can-make-arithmetic-progression-from-sequence │ └── README.md ├── can-make-palindrome-from-substring │ └── README.md ├── can-place-flowers │ ├── README.md │ ├── can_place_flowers.go │ └── can_place_flowers_test.go ├── can-you-eat-your-favorite-candy-on-your-favorite-day │ └── README.md ├── candy-crush │ ├── README.md │ ├── candy_crush.go │ └── candy_crush_test.go ├── candy │ ├── README.md │ ├── candy.go │ └── candy_test.go ├── capacity-to-ship-packages-within-d-days │ ├── README.md │ └── capacity_to_ship_packages_within_d_days.go ├── capital-gainloss │ ├── README.md │ └── mysql_schemas.sql ├── capitalize-the-title │ └── README.md ├── car-fleet-ii │ └── README.md ├── car-fleet │ ├── README.md │ ├── car_fleet.go │ └── car_fleet_test.go ├── car-pooling │ ├── README.md │ └── car_pooling.go ├── card-flipping-game │ ├── README.md │ ├── card_flipping_game.go │ └── card_flipping_game_test.go ├── cat-and-mouse-ii │ └── README.md ├── cat-and-mouse │ ├── README.md │ ├── cat_and_mouse.go │ └── cat_and_mouse_test.go ├── cells-with-odd-values-in-a-matrix │ └── README.md ├── chalkboard-xor-game │ ├── README.md │ ├── chalkboard_xor_game.go │ └── chalkboard_xor_game_test.go ├── champagne-tower │ ├── README.md │ ├── champagne_tower.go │ └── champagne_tower_test.go ├── change-minimum-characters-to-satisfy-one-of-three-conditions │ └── README.md ├── change-the-root-of-a-binary-tree │ └── README.md ├── cheapest-flights-within-k-stops │ ├── README.md │ ├── cheapest_flights_within_k_stops.go │ └── cheapest_flights_within_k_stops_test.go ├── check-array-formation-through-concatenation │ └── README.md ├── check-completeness-of-a-binary-tree │ ├── README.md │ ├── check_completeness_of_a_binary_tree.go │ └── check_completeness_of_a_binary_tree_test.go ├── check-if-a-number-is-majority-element-in-a-sorted-array │ └── README.md ├── check-if-a-parentheses-string-can-be-valid │ └── README.md ├── check-if-a-string-can-break-another-string │ └── README.md ├── check-if-a-string-contains-all-binary-codes-of-size-k │ └── README.md ├── check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree │ └── README.md ├── check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence │ ├── README.md │ ├── check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence.go │ └── check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence_test.go ├── check-if-all-1s-are-at-least-length-k-places-away │ └── README.md ├── check-if-all-as-appears-before-all-bs │ └── README.md ├── check-if-all-characters-have-equal-number-of-occurrences │ └── README.md ├── check-if-all-the-integers-in-a-range-are-covered │ └── README.md ├── check-if-an-original-string-exists-given-two-encoded-strings │ └── README.md ├── check-if-array-is-sorted-and-rotated │ └── README.md ├── check-if-array-pairs-are-divisible-by-k │ └── README.md ├── check-if-binary-string-has-at-most-one-segment-of-ones │ └── README.md ├── check-if-every-row-and-column-contains-all-numbers │ └── README.md ├── check-if-it-is-a-good-array │ └── README.md ├── check-if-it-is-a-straight-line │ └── README.md ├── check-if-move-is-legal │ └── README.md ├── check-if-n-and-its-double-exist │ └── README.md ├── check-if-number-is-a-sum-of-powers-of-three │ └── README.md ├── check-if-numbers-are-ascending-in-a-sentence │ └── README.md ├── check-if-one-string-swap-can-make-strings-equal │ └── README.md ├── check-if-string-is-a-prefix-of-array │ └── README.md ├── check-if-string-is-decomposable-into-value-equal-substrings │ └── README.md ├── check-if-string-is-transformable-with-substring-sort-operations │ └── README.md ├── check-if-the-sentence-is-pangram │ └── README.md ├── check-if-there-is-a-valid-path-in-a-grid │ └── README.md ├── check-if-two-expression-trees-are-equivalent │ └── README.md ├── check-if-two-string-arrays-are-equivalent │ ├── README.md │ ├── check_if_two_string_arrays_are_equivalent.go │ └── check_if_two_string_arrays_are_equivalent_test.go ├── check-if-word-can-be-placed-in-crossword │ └── README.md ├── check-if-word-equals-summation-of-two-words │ └── README.md ├── check-if-word-is-valid-after-substitutions │ ├── README.md │ └── check_if_word_is_valid_after_substitutions.go ├── check-whether-two-strings-are-almost-equivalent │ └── README.md ├── checking-existence-of-edge-length-limited-paths-ii │ └── README.md ├── checking-existence-of-edge-length-limited-paths │ └── README.md ├── cherry-pickup-ii │ └── README.md ├── cherry-pickup │ ├── README.md │ ├── cherry_pickup.go │ └── cherry_pickup_test.go ├── choose-numbers-from-two-arrays-in-range │ └── README.md ├── cinema-seat-allocation │ └── README.md ├── circle-and-rectangle-overlapping │ └── README.md ├── circular-array-loop │ ├── README.md │ ├── circular_array_loop.go │ └── circular_array_loop_test.go ├── circular-permutation-in-binary-representation │ └── README.md ├── classes-more-than-5-students │ ├── README.md │ ├── classes_more_than_5_students.sql │ └── mysql_schemas.sql ├── climbing-stairs │ ├── README.md │ ├── climbing_stairs.go │ └── climbing_stairs_test.go ├── clone-binary-tree-with-random-pointer │ └── README.md ├── clone-graph │ ├── README.md │ ├── clone_graph.go │ ├── clone_graph.py │ └── clone_graph_test.go ├── clone-n-ary-tree │ └── README.md ├── closest-binary-search-tree-value-ii │ ├── README.md │ ├── closest_binary_search_tree_value_ii.go │ └── closest_binary_search_tree_value_ii_test.go ├── closest-binary-search-tree-value │ ├── README.md │ ├── closest_binary_search_tree_value.go │ └── closest_binary_search_tree_value_test.go ├── closest-dessert-cost │ └── README.md ├── closest-divisors │ └── README.md ├── closest-leaf-in-a-binary-tree │ ├── README.md │ ├── closest_leaf_in_a_binary_tree.go │ └── closest_leaf_in_a_binary_tree_test.go ├── closest-room │ └── README.md ├── closest-subsequence-sum │ └── README.md ├── clumsy-factorial │ ├── README.md │ └── clumsy_factorial.go ├── coin-change-2 │ ├── README.md │ ├── coin_change_2.go │ └── coin_change_2_test.go ├── coin-change │ ├── README.md │ ├── coin_change.go │ └── coin_change_test.go ├── coin-path │ ├── README.md │ ├── coin_path.go │ └── coin_path_test.go ├── coloring-a-border │ ├── README.md │ └── coloring_a_border.go ├── combination-sum-ii │ ├── README.md │ ├── combination_sum_ii.go │ └── combination_sum_ii_test.go ├── combination-sum-iii │ ├── README.md │ ├── combination_sum_iii.go │ └── combination_sum_iii_test.go ├── combination-sum-iv │ ├── README.md │ ├── combination_sum_iv.go │ └── combination_sum_iv_test.go ├── combination-sum │ ├── README.md │ ├── combination_sum.go │ └── combination_sum_test.go ├── combinations │ ├── README.md │ ├── combinations.go │ └── combinations_test.go ├── combine-two-tables │ ├── README.md │ ├── combine_two_tables.sql │ └── mysql_schemas.sql ├── compare-strings-by-frequency-of-the-smallest-character │ ├── README.md │ ├── compare_strings_by_frequency_of_the_smallest_character.go │ └── compare_strings_by_frequency_of_the_smallest_character_test.go ├── compare-version-numbers │ ├── README.md │ ├── compare_version_numbers.go │ └── compare_version_numbers_test.go ├── complement-of-base-10-integer │ ├── README.md │ ├── complement_of_base_10_integer.go │ └── complement_of_base_10_integer_test.go ├── complete-binary-tree-inserter │ ├── README.md │ ├── complete_binary_tree_inserter.go │ └── complete_binary_tree_inserter_test.go ├── complex-number-multiplication │ ├── README.md │ ├── complex_number_multiplication.go │ └── complex_number_multiplication_test.go ├── concatenated-words │ ├── README.md │ ├── concatenated_words.go │ └── concatenated_words_test.go ├── concatenation-of-array │ └── README.md ├── concatenation-of-consecutive-binary-numbers │ └── README.md ├── confirmation-rate │ ├── README.md │ └── mysql_schemas.sql ├── confusing-number-ii │ └── README.md ├── confusing-number │ └── README.md ├── connecting-cities-with-minimum-cost │ └── README.md ├── consecutive-available-seats │ ├── README.md │ ├── consecutive_available_seats.sql │ └── mysql_schemas.sql ├── consecutive-characters │ └── README.md ├── consecutive-numbers-sum │ ├── README.md │ ├── consecutive_numbers_sum.go │ └── consecutive_numbers_sum_test.go ├── consecutive-numbers │ ├── README.md │ ├── consecutive_numbers.sql │ └── mysql_schemas.sql ├── constrained-subsequence-sum │ └── README.md ├── construct-binary-search-tree-from-preorder-traversal │ └── README.md ├── construct-binary-tree-from-inorder-and-postorder-traversal │ ├── README.md │ ├── construct_binary_tree_from_inorder_and_postorder_traversal.go │ └── construct_binary_tree_from_inorder_and_postorder_traversal_test.go ├── construct-binary-tree-from-preorder-and-inorder-traversal │ ├── README.md │ ├── construct_binary_tree_from_preorder_and_inorder_traversal.go │ └── construct_binary_tree_from_preorder_and_inorder_traversal_test.go ├── construct-binary-tree-from-preorder-and-postorder-traversal │ ├── README.md │ ├── construct_binary_tree_from_preorder_and_postorder_traversal.go │ └── construct_binary_tree_from_preorder_and_postorder_traversal_test.go ├── construct-binary-tree-from-string │ ├── README.md │ ├── construct_binary_tree_from_string.go │ └── construct_binary_tree_from_string_test.go ├── construct-k-palindrome-strings │ └── README.md ├── construct-quad-tree │ ├── README.md │ ├── construct_quad_tree.go │ ├── construct_quad_tree.py │ └── construct_quad_tree_test.go ├── construct-string-from-binary-tree │ ├── README.md │ ├── construct_string_from_binary_tree.go │ └── construct_string_from_binary_tree_test.go ├── construct-target-array-with-multiple-sums │ └── README.md ├── construct-the-lexicographically-largest-valid-sequence │ └── README.md ├── construct-the-rectangle │ ├── README.md │ ├── construct_the_rectangle.go │ └── construct_the_rectangle_test.go ├── contain-virus │ ├── README.md │ ├── contain_virus.go │ └── contain_virus_test.go ├── container-with-most-water │ ├── README.md │ ├── container_with_most_water.go │ └── container_with_most_water_test.go ├── contains-duplicate-ii │ ├── README.md │ ├── contains_duplicate_ii.go │ └── contains_duplicate_ii_test.go ├── contains-duplicate-iii │ ├── README.md │ ├── contains_duplicate_iii.go │ └── contains_duplicate_iii_test.go ├── contains-duplicate │ ├── README.md │ ├── contains_duplicate.go │ └── contains_duplicate_test.go ├── contiguous-array │ ├── README.md │ ├── contiguous_array.go │ └── contiguous_array_test.go ├── continuous-subarray-sum │ ├── README.md │ ├── continuous_subarray_sum.go │ └── continuous_subarray_sum_test.go ├── convert-1d-array-into-2d-array │ └── README.md ├── convert-a-number-to-hexadecimal │ ├── README.md │ ├── convert_a_number_to_hexadecimal.go │ └── convert_a_number_to_hexadecimal_test.go ├── convert-binary-number-in-a-linked-list-to-integer │ └── README.md ├── convert-binary-search-tree-to-sorted-doubly-linked-list │ ├── README.md │ ├── convert_binary_search_tree_to_sorted_doubly_linked_list.go │ └── convert_binary_search_tree_to_sorted_doubly_linked_list_test.go ├── convert-bst-to-greater-tree │ ├── README.md │ ├── convert_bst_to_greater_tree.go │ └── convert_bst_to_greater_tree_test.go ├── convert-date-format │ ├── README.md │ └── mysql_schemas.sql ├── convert-integer-to-the-sum-of-two-no-zero-integers │ └── README.md ├── convert-sorted-array-to-binary-search-tree │ ├── README.md │ ├── convert_sorted_array_to_binary_search_tree.go │ └── convert_sorted_array_to_binary_search_tree_test.go ├── convert-sorted-list-to-binary-search-tree │ ├── README.md │ ├── convert_sorted_list_to_binary_search_tree.go │ └── convert_sorted_list_to_binary_search_tree_test.go ├── convert-to-base-2 │ ├── README.md │ └── convert_to_base_2.go ├── convex-polygon │ ├── README.md │ ├── convex_polygon.go │ └── convex_polygon_test.go ├── coordinate-with-maximum-network-quality │ └── README.md ├── copy-list-with-random-pointer │ ├── README.md │ ├── copy_list_with_random_pointer.go │ ├── copy_list_with_random_pointer.py │ └── copy_list_with_random_pointer_test.go ├── corporate-flight-bookings │ ├── README.md │ └── corporate_flight_bookings.go ├── correct-a-binary-tree │ └── README.md ├── count-all-possible-routes │ └── README.md ├── count-all-valid-pickup-and-delivery-options │ └── README.md ├── count-and-say │ ├── README.md │ ├── count_and_say.go │ └── count_and_say_test.go ├── count-apples-and-oranges │ ├── README.md │ └── mysql_schemas.sql ├── count-binary-substrings │ ├── README.md │ ├── count_binary_substrings.go │ └── count_binary_substrings_test.go ├── count-common-words-with-one-occurrence │ └── README.md ├── count-complete-tree-nodes │ ├── README.md │ ├── count_complete_tree_nodes.go │ └── count_complete_tree_nodes_test.go ├── count-different-palindromic-subsequences │ ├── README.md │ ├── count_different_palindromic_subsequences.go │ └── count_different_palindromic_subsequences_test.go ├── count-elements-with-strictly-smaller-and-greater-elements │ └── README.md ├── count-fertile-pyramids-in-a-land │ └── README.md ├── count-good-meals │ └── README.md ├── count-good-nodes-in-binary-tree │ └── README.md ├── count-good-numbers │ └── README.md ├── count-good-triplets │ └── README.md ├── count-items-matching-a-rule │ └── README.md ├── count-largest-group │ ├── README.md │ ├── count_largest_group.go │ └── count_largest_group_test.go ├── count-negative-numbers-in-a-sorted-matrix │ └── README.md ├── count-nice-pairs-in-an-array │ └── README.md ├── count-nodes-equal-to-sum-of-descendants │ └── README.md ├── count-nodes-with-the-highest-score │ └── README.md ├── count-number-of-homogenous-substrings │ └── README.md ├── count-number-of-maximum-bitwise-or-subsets │ └── README.md ├── count-number-of-nice-subarrays │ └── README.md ├── count-number-of-pairs-with-absolute-difference-k │ └── README.md ├── count-number-of-special-subsequences │ └── README.md ├── count-number-of-teams │ └── README.md ├── count-numbers-with-unique-digits │ ├── README.md │ ├── count_numbers_with_unique_digits.go │ └── count_numbers_with_unique_digits_test.go ├── count-odd-numbers-in-an-interval-range │ └── README.md ├── count-of-matches-in-tournament │ └── README.md ├── count-of-range-sum │ ├── README.md │ ├── count_of_range_sum.go │ └── count_of_range_sum_test.go ├── count-of-smaller-numbers-after-self │ ├── README.md │ ├── count_of_smaller_numbers_after_self.go │ └── count_of_smaller_numbers_after_self_test.go ├── count-operations-to-obtain-zero │ └── README.md ├── count-pairs-in-two-arrays │ └── README.md ├── count-pairs-of-equal-substrings-with-minimum-difference │ └── README.md ├── count-pairs-of-nodes │ └── README.md ├── count-pairs-with-xor-in-a-range │ └── README.md ├── count-primes │ ├── README.md │ ├── count_primes.go │ └── count_primes_test.go ├── count-salary-categories │ ├── README.md │ └── mysql_schemas.sql ├── count-servers-that-communicate │ └── README.md ├── count-sorted-vowel-strings │ └── README.md ├── count-special-quadruplets │ └── README.md ├── count-square-submatrices-with-all-ones │ └── README.md ├── count-square-sum-triples │ └── README.md ├── count-student-number-in-departments │ ├── README.md │ ├── count_student_number_in_departments.sql │ └── mysql_schemas.sql ├── count-sub-islands │ └── README.md ├── count-subarrays-with-more-ones-than-zeros │ └── README.md ├── count-submatrices-with-all-ones │ └── README.md ├── count-substrings-that-differ-by-one-character │ └── README.md ├── count-substrings-with-only-one-distinct-letter │ └── README.md ├── count-subtrees-with-max-distance-between-cities │ └── README.md ├── count-the-hidden-sequences │ └── README.md ├── count-the-number-of-consistent-strings │ └── README.md ├── count-the-number-of-experiments │ ├── README.md │ └── mysql_schemas.sql ├── count-the-repetitions │ ├── README.md │ ├── count_the_repetitions.go │ └── count_the_repetitions_test.go ├── count-triplets-that-can-form-two-arrays-of-equal-xor │ └── README.md ├── count-unhappy-friends │ └── README.md ├── count-unique-characters-of-all-substrings-of-a-given-string │ └── README.md ├── count-univalue-subtrees │ ├── README.md │ ├── count_univalue_subtrees.go │ └── count_univalue_subtrees_test.go ├── count-vowel-substrings-of-a-string │ └── README.md ├── count-vowels-permutation │ └── README.md ├── count-ways-to-build-rooms-in-an-ant-colony │ └── README.md ├── count-ways-to-distribute-candies │ └── README.md ├── count-ways-to-make-array-with-product │ └── README.md ├── count-words-obtained-after-adding-a-letter │ └── README.md ├── counting-bits │ ├── README.md │ ├── counting_bits.go │ └── counting_bits_test.go ├── counting-elements │ └── README.md ├── countries-you-can-safely-invest-in │ ├── README.md │ └── mysql_schemas.sql ├── couples-holding-hands │ ├── README.md │ ├── couples_holding_hands.go │ └── couples_holding_hands_test.go ├── course-schedule-ii │ ├── README.md │ ├── course_schedule_ii.go │ └── course_schedule_ii_test.go ├── course-schedule-iii │ ├── README.md │ ├── course_schedule_iii.go │ └── course_schedule_iii_test.go ├── course-schedule-iv │ └── README.md ├── course-schedule │ ├── README.md │ ├── course_schedule.go │ └── course_schedule_test.go ├── cousins-in-binary-tree │ ├── README.md │ ├── cousins_in_binary_tree.go │ └── cousins_in_binary_tree_test.go ├── cracking-the-safe │ ├── README.md │ ├── cracking_the_safe.go │ └── cracking_the_safe_test.go ├── crawler-log-folder │ └── README.md ├── create-a-session-bar-chart │ ├── README.md │ └── mysql_schemas.sql ├── create-maximum-number │ ├── README.md │ ├── create_maximum_number.go │ └── create_maximum_number_test.go ├── create-sorted-array-through-instructions │ └── README.md ├── create-target-array-in-the-given-order │ ├── README.md │ ├── create_target_array_in_the_given_order.go │ └── create_target_array_in_the_given_order_test.go ├── critical-connections-in-a-network │ └── README.md ├── custom-sort-string │ ├── README.md │ ├── custom_sort_string.go │ └── custom_sort_string_test.go ├── customer-order-frequency │ ├── README.md │ └── mysql_schemas.sql ├── customer-placing-the-largest-number-of-orders │ ├── README.md │ ├── customer_placing_the_largest_number_of_orders.sql │ └── mysql_schemas.sql ├── customer-who-visited-but-did-not-make-any-transactions │ ├── README.md │ └── mysql_schemas.sql ├── customers-who-bought-all-products │ ├── README.md │ ├── customers_who_bought_all_products.sql │ └── mysql_schemas.sql ├── customers-who-bought-products-a-and-b-but-not-c │ ├── README.md │ └── mysql_schemas.sql ├── customers-who-never-order │ ├── README.md │ ├── customers_who_never_order.sql │ └── mysql_schemas.sql ├── cut-off-trees-for-golf-event │ ├── README.md │ ├── cut_off_trees_for_golf_event.go │ └── cut_off_trees_for_golf_event_test.go ├── cutting-ribbons │ └── README.md ├── cyclically-rotating-a-grid │ └── README.md ├── daily-leads-and-partners │ ├── README.md │ └── mysql_schemas.sql ├── daily-temperatures │ ├── README.md │ ├── daily_temperatures.go │ └── daily_temperatures_test.go ├── data-stream-as-disjoint-intervals │ ├── README.md │ ├── data_stream_as_disjoint_intervals.go │ └── data_stream_as_disjoint_intervals_test.go ├── day-of-the-week │ ├── README.md │ ├── day_of_the_week.go │ └── day_of_the_week_test.go ├── day-of-the-year │ ├── README.md │ ├── day_of_the_year.go │ └── day_of_the_year_test.go ├── decode-string │ ├── README.md │ ├── decode_string.go │ └── decode_string_test.go ├── decode-the-slanted-ciphertext │ └── README.md ├── decode-ways-ii │ ├── README.md │ ├── decode_ways_ii.go │ └── decode_ways_ii_test.go ├── decode-ways │ ├── README.md │ ├── decode_ways.go │ └── decode_ways_test.go ├── decode-xored-array │ └── README.md ├── decode-xored-permutation │ └── README.md ├── decoded-string-at-index │ ├── README.md │ ├── decoded_string_at_index.go │ └── decoded_string_at_index_test.go ├── decompress-run-length-encoded-list │ └── README.md ├── decrease-elements-to-make-array-zigzag │ └── README.md ├── decrypt-string-from-alphabet-to-integer-mapping │ ├── README.md │ ├── decrypt_string_from_alphabet_to_integer_mapping.go │ └── decrypt_string_from_alphabet_to_integer_mapping_test.go ├── deepest-leaves-sum │ └── README.md ├── defanging-an-ip-address │ ├── README.md │ ├── defanging_an_ip_address.go │ └── defanging_an_ip_address_test.go ├── defuse-the-bomb │ └── README.md ├── degree-of-an-array │ ├── README.md │ ├── degree_of_an_array.go │ └── degree_of_an_array_test.go ├── delete-and-earn │ ├── README.md │ ├── delete_and_earn.go │ └── delete_and_earn_test.go ├── delete-characters-to-make-fancy-string │ └── README.md ├── delete-columns-to-make-sorted-ii │ ├── README.md │ ├── delete_columns_to_make_sorted_ii.go │ └── delete_columns_to_make_sorted_ii_test.go ├── delete-columns-to-make-sorted-iii │ ├── README.md │ ├── delete_columns_to_make_sorted_iii.go │ └── delete_columns_to_make_sorted_iii_test.go ├── delete-columns-to-make-sorted │ ├── README.md │ ├── delete_columns_to_make_sorted.go │ └── delete_columns_to_make_sorted_test.go ├── delete-duplicate-emails │ ├── README.md │ ├── delete_duplicate_emails.sql │ └── mysql_schemas.sql ├── delete-duplicate-folders-in-system │ └── README.md ├── delete-leaves-with-a-given-value │ └── README.md ├── delete-n-nodes-after-m-nodes-of-a-linked-list │ └── README.md ├── delete-node-in-a-bst │ ├── README.md │ ├── delete_node_in_a_bst.go │ └── delete_node_in_a_bst_test.go ├── delete-node-in-a-linked-list │ ├── README.md │ ├── delete_node_in_a_linked_list.go │ └── delete_node_in_a_linked_list_test.go ├── delete-nodes-and-return-forest │ ├── README.md │ └── delete_nodes_and_return_forest.go ├── delete-operation-for-two-strings │ ├── README.md │ ├── delete_operation_for_two_strings.go │ └── delete_operation_for_two_strings_test.go ├── delete-the-middle-node-of-a-linked-list │ └── README.md ├── delete-tree-nodes │ └── README.md ├── delivering-boxes-from-storage-to-ports │ └── README.md ├── department-highest-salary │ ├── README.md │ ├── department_highest_salary.sql │ └── mysql_schemas.sql ├── department-top-three-salaries │ ├── README.md │ ├── department_top_three_salaries.sql │ └── mysql_schemas.sql ├── depth-of-bst-given-insertion-order │ └── README.md ├── describe-the-painting │ └── README.md ├── design-a-file-sharing-system │ └── README.md ├── design-a-leaderboard │ └── README.md ├── design-a-stack-with-increment-operation │ └── README.md ├── design-add-and-search-words-data-structure │ └── README.md ├── design-an-expression-tree-with-evaluate-function │ └── README.md ├── design-an-ordered-stream │ └── README.md ├── design-authentication-manager │ └── README.md ├── design-bitset │ └── README.md ├── design-bounded-blocking-queue │ └── README.md ├── design-browser-history │ └── README.md ├── design-circular-deque │ ├── README.md │ ├── design_circular_deque.go │ └── design_circular_deque_test.go ├── design-circular-queue │ ├── README.md │ ├── design_circular_queue.go │ └── design_circular_queue_test.go ├── design-compressed-string-iterator │ ├── README.md │ ├── design_compressed_string_iterator.go │ └── design_compressed_string_iterator_test.go ├── design-excel-sum-formula │ ├── README.md │ ├── design_excel_sum_formula.go │ └── design_excel_sum_formula_test.go ├── design-file-system │ └── README.md ├── design-front-middle-back-queue │ └── README.md ├── design-hashmap │ ├── README.md │ ├── design_hashmap.go │ └── design_hashmap_test.go ├── design-hashset │ ├── README.md │ ├── design_hashset.go │ └── design_hashset_test.go ├── design-hit-counter │ ├── README.md │ ├── design_hit_counter.go │ └── design_hit_counter_test.go ├── design-in-memory-file-system │ ├── README.md │ ├── design_in_memory_file_system.go │ └── design_in_memory_file_system_test.go ├── design-linked-list │ ├── README.md │ ├── design_linked_list.go │ └── design_linked_list_test.go ├── design-log-storage-system │ ├── README.md │ ├── design_log_storage_system.go │ └── design_log_storage_system_test.go ├── design-most-recently-used-queue │ └── README.md ├── design-movie-rental-system │ └── README.md ├── design-parking-system │ └── README.md ├── design-phone-directory │ ├── README.md │ ├── design_phone_directory.go │ └── design_phone_directory_test.go ├── design-search-autocomplete-system │ ├── README.md │ ├── design_search_autocomplete_system.go │ └── design_search_autocomplete_system_test.go ├── design-skiplist │ └── README.md ├── design-snake-game │ ├── README.md │ ├── design_snake_game.go │ └── design_snake_game_test.go ├── design-tic-tac-toe │ ├── README.md │ ├── design_tic_tac_toe.go │ └── design_tic_tac_toe_test.go ├── design-twitter │ ├── README.md │ ├── design_twitter.go │ └── design_twitter_test.go ├── design-underground-system │ └── README.md ├── destination-city │ ├── README.md │ ├── destination_city.go │ └── destination_city_test.go ├── destroying-asteroids │ └── README.md ├── detect-capital │ ├── README.md │ ├── detect_capital.go │ └── detect_capital_test.go ├── detect-cycles-in-2d-grid │ └── README.md ├── detect-pattern-of-length-m-repeated-k-or-more-times │ └── README.md ├── detect-squares │ └── README.md ├── determine-color-of-a-chessboard-square │ └── README.md ├── determine-if-string-halves-are-alike │ └── README.md ├── determine-if-two-strings-are-close │ └── README.md ├── determine-whether-matrix-can-be-obtained-by-rotation │ └── README.md ├── detonate-the-maximum-bombs │ └── README.md ├── di-string-match │ ├── README.md │ ├── di_string_match.go │ └── di_string_match_test.go ├── diagonal-traverse-ii │ └── README.md ├── diagonal-traverse │ ├── README.md │ ├── diagonal_traverse.go │ └── diagonal_traverse_test.go ├── diameter-of-binary-tree │ ├── README.md │ ├── diameter_of_binary_tree.go │ └── diameter_of_binary_tree_test.go ├── diameter-of-n-ary-tree │ └── README.md ├── dice-roll-simulation │ └── README.md ├── diet-plan-performance │ └── README.md ├── different-ways-to-add-parentheses │ ├── README.md │ ├── different_ways_to_add_parentheses.go │ └── different_ways_to_add_parentheses_test.go ├── digit-count-in-range │ └── README.md ├── dinner-plate-stacks │ └── README.md ├── display-table-of-food-orders-in-a-restaurant │ └── README.md ├── distance-between-bus-stops │ └── README.md ├── distant-barcodes │ ├── README.md │ └── distant_barcodes.go ├── distinct-echo-substrings │ └── README.md ├── distinct-numbers-in-each-subarray │ └── README.md ├── distinct-subsequences-ii │ ├── README.md │ ├── distinct_subsequences_ii.go │ └── distinct_subsequences_ii_test.go ├── distinct-subsequences │ ├── README.md │ ├── distinct_subsequences.go │ └── distinct_subsequences_test.go ├── distribute-candies-to-people │ ├── README.md │ └── distribute_candies_to_people.go ├── distribute-candies │ ├── README.md │ ├── distribute_candies.go │ └── distribute_candies_test.go ├── distribute-coins-in-binary-tree │ ├── README.md │ └── distribute_coins_in_binary_tree.go ├── distribute-repeating-integers │ └── README.md ├── divide-a-string-into-groups-of-size-k │ └── README.md ├── divide-array-in-sets-of-k-consecutive-numbers │ └── README.md ├── divide-array-into-increasing-sequences │ └── README.md ├── divide-chocolate │ └── README.md ├── divide-two-integers │ ├── README.md │ ├── divide_two_integers.go │ └── divide_two_integers_test.go ├── divisor-game │ ├── README.md │ ├── divisor_game.go │ └── divisor_game_test.go ├── domino-and-tromino-tiling │ ├── README.md │ ├── domino_and_tromino_tiling.go │ └── domino_and_tromino_tiling_test.go ├── dot-product-of-two-sparse-vectors │ └── README.md ├── dota2-senate │ ├── README.md │ ├── dota2_senate.go │ └── dota2_senate_test.go ├── drop-type-1-orders-for-customers-with-type-0-orders │ ├── README.md │ └── mysql_schemas.sql ├── dungeon-game │ ├── README.md │ ├── dungeon_game.go │ └── dungeon_game_test.go ├── duplicate-emails │ ├── README.md │ ├── duplicate_emails.sql │ └── mysql_schemas.sql ├── duplicate-zeros │ ├── README.md │ └── duplicate_zeros.go ├── earliest-possible-day-of-full-bloom │ └── README.md ├── edit-distance │ ├── README.md │ ├── edit_distance.go │ └── edit_distance_test.go ├── egg-drop-with-2-eggs-and-n-floors │ └── README.md ├── element-appearing-more-than-25-in-sorted-array │ └── README.md ├── elements-in-array-after-removing-and-replacing-elements │ └── README.md ├── eliminate-maximum-number-of-monsters │ └── README.md ├── elimination-game │ ├── README.md │ ├── elimination_game.go │ └── elimination_game_test.go ├── employee-bonus │ ├── README.md │ ├── employee_bonus.sql │ └── mysql_schemas.sql ├── employee-free-time │ ├── README.md │ ├── employee_free_time.go │ └── employee_free_time_test.go ├── employee-importance │ ├── README.md │ ├── employee_importance.go │ ├── employee_importance.py │ └── employee_importance_test.go ├── employees-earning-more-than-their-managers │ ├── README.md │ ├── employees_earning_more_than_their_managers.sql │ └── mysql_schemas.sql ├── employees-whose-manager-left-the-company │ ├── README.md │ └── mysql_schemas.sql ├── employees-with-missing-information │ ├── README.md │ └── mysql_schemas.sql ├── encode-and-decode-strings │ ├── README.md │ ├── encode_and_decode_strings.go │ └── encode_and_decode_strings_test.go ├── encode-and-decode-tinyurl │ ├── README.md │ ├── encode_and_decode_tinyurl.go │ ├── encode_and_decode_tinyurl.py │ └── encode_and_decode_tinyurl_test.go ├── encode-n-ary-tree-to-binary-tree │ ├── README.md │ ├── encode_n_ary_tree_to_binary_tree.go │ └── encode_n_ary_tree_to_binary_tree_test.go ├── encode-number │ └── README.md ├── encode-string-with-shortest-length │ ├── README.md │ ├── encode_string_with_shortest_length.go │ └── encode_string_with_shortest_length_test.go ├── equal-rational-numbers │ ├── README.md │ └── equal_rational_numbers.go ├── equal-sum-arrays-with-minimum-number-of-operations │ └── README.md ├── equal-tree-partition │ ├── README.md │ ├── equal_tree_partition.go │ └── equal_tree_partition_test.go ├── erect-the-fence-ii │ └── README.md ├── erect-the-fence │ ├── README.md │ ├── erect_the_fence.go │ └── erect_the_fence_test.go ├── escape-a-large-maze │ ├── README.md │ └── escape_a_large_maze.go ├── escape-the-ghosts │ ├── README.md │ ├── escape_the_ghosts.go │ └── escape_the_ghosts_test.go ├── evaluate-boolean-expression │ ├── README.md │ └── mysql_schemas.sql ├── evaluate-division │ ├── README.md │ ├── evaluate_division.go │ └── evaluate_division_test.go ├── evaluate-reverse-polish-notation │ ├── README.md │ ├── evaluate_reverse_polish_notation.go │ └── evaluate_reverse_polish_notation_test.go ├── evaluate-the-bracket-pairs-of-a-string │ └── README.md ├── even-odd-tree │ └── README.md ├── exam-room │ ├── README.md │ ├── exam_room.go │ └── exam_room_test.go ├── excel-sheet-column-number │ ├── README.md │ ├── excel_sheet_column_number.go │ └── excel_sheet_column_number_test.go ├── excel-sheet-column-title │ ├── README.md │ ├── excel_sheet_column_title.go │ └── excel_sheet_column_title_test.go ├── exchange-seats │ ├── README.md │ ├── exchange_seats.sql │ └── mysql_schemas.sql ├── exclusive-time-of-functions │ ├── README.md │ ├── exclusive_time_of_functions.go │ └── exclusive_time_of_functions_test.go ├── execution-of-all-suffix-instructions-staying-in-a-grid │ └── README.md ├── expression-add-operators │ ├── README.md │ ├── expression_add_operators.go │ └── expression_add_operators_test.go ├── expressive-words │ ├── README.md │ ├── expressive_words.go │ └── expressive_words_test.go ├── factor-combinations │ ├── README.md │ ├── factor_combinations.go │ └── factor_combinations_test.go ├── factorial-trailing-zeroes │ ├── README.md │ ├── factorial_trailing_zeroes.go │ └── factorial_trailing_zeroes_test.go ├── fair-candy-swap │ ├── README.md │ ├── fair_candy_swap.go │ └── fair_candy_swap_test.go ├── falling-squares │ ├── README.md │ ├── falling_squares.go │ └── falling_squares_test.go ├── fancy-sequence │ └── README.md ├── faulty-sensor │ └── README.md ├── fibonacci-number │ ├── README.md │ ├── fibonacci_number.go │ └── fibonacci_number_test.go ├── filling-bookcase-shelves │ ├── README.md │ └── filling_bookcase_shelves.go ├── filter-restaurants-by-vegan-friendly-price-and-distance │ └── README.md ├── final-prices-with-a-special-discount-in-a-shop │ └── README.md ├── final-value-of-variable-after-performing-operations │ └── README.md ├── find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree │ └── README.md ├── find-a-peak-element-ii │ └── README.md ├── find-a-value-of-a-mysterious-function-closest-to-target │ └── README.md ├── find-all-anagrams-in-a-string │ ├── README.md │ ├── find_all_anagrams_in_a_string.go │ └── find_all_anagrams_in_a_string_test.go ├── find-all-duplicates-in-an-array │ ├── README.md │ ├── find_all_duplicates_in_an_array.go │ └── find_all_duplicates_in_an_array_test.go ├── find-all-good-strings │ └── README.md ├── find-all-groups-of-farmland │ └── README.md ├── find-all-lonely-numbers-in-the-array │ └── README.md ├── find-all-numbers-disappeared-in-an-array │ ├── README.md │ ├── find_all_numbers_disappeared_in_an_array.go │ └── find_all_numbers_disappeared_in_an_array_test.go ├── find-all-people-with-secret │ └── README.md ├── find-all-possible-recipes-from-given-supplies │ └── README.md ├── find-all-the-lonely-nodes │ └── README.md ├── find-anagram-mappings │ ├── README.md │ ├── find_anagram_mappings.go │ └── find_anagram_mappings_test.go ├── find-and-replace-in-string │ ├── README.md │ ├── find_and_replace_in_string.go │ └── find_and_replace_in_string_test.go ├── find-and-replace-pattern │ ├── README.md │ ├── find_and_replace_pattern.go │ └── find_and_replace_pattern_test.go ├── find-array-given-subset-sums │ └── README.md ├── find-bottom-left-tree-value │ ├── README.md │ ├── find_bottom_left_tree_value.go │ └── find_bottom_left_tree_value_test.go ├── find-center-of-star-graph │ └── README.md ├── find-common-characters │ ├── README.md │ ├── find_common_characters.go │ └── find_common_characters_test.go ├── find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree │ └── README.md ├── find-cumulative-salary-of-an-employee │ ├── README.md │ ├── find_cumulative_salary_of_an_employee.sql │ └── mysql_schemas.sql ├── find-customer-referee │ ├── README.md │ ├── find_customer_referee.sql │ └── mysql_schemas.sql ├── find-customers-with-positive-revenue-this-year │ ├── README.md │ └── mysql_schemas.sql ├── find-cutoff-score-for-each-school │ ├── README.md │ └── mysql_schemas.sql ├── find-distance-in-a-binary-tree │ └── README.md ├── find-duplicate-file-in-system │ ├── README.md │ ├── find_duplicate_file_in_system.go │ └── find_duplicate_file_in_system_test.go ├── find-duplicate-subtrees │ ├── README.md │ ├── find_duplicate_subtrees.go │ └── find_duplicate_subtrees_test.go ├── find-elements-in-a-contaminated-binary-tree │ └── README.md ├── find-eventual-safe-states │ ├── README.md │ ├── find_eventual_safe_states.go │ └── find_eventual_safe_states_test.go ├── find-first-and-last-position-of-element-in-sorted-array │ ├── README.md │ ├── find_first_and_last_position_of_element_in_sorted_array.go │ └── find_first_and_last_position_of_element_in_sorted_array_test.go ├── find-first-palindromic-string-in-the-array │ └── README.md ├── find-followers-count │ ├── README.md │ └── mysql_schemas.sql ├── find-good-days-to-rob-the-bank │ └── README.md ├── find-greatest-common-divisor-of-array │ └── README.md ├── find-if-path-exists-in-graph │ └── README.md ├── find-in-mountain-array │ ├── README.md │ └── find_in_mountain_array.go ├── find-interview-candidates │ ├── README.md │ └── mysql_schemas.sql ├── find-k-closest-elements │ ├── README.md │ ├── find_k_closest_elements.go │ └── find_k_closest_elements_test.go ├── find-k-length-substrings-with-no-repeated-characters │ └── README.md ├── find-k-pairs-with-smallest-sums │ ├── README.md │ ├── find_k_pairs_with_smallest_sums.go │ └── find_k_pairs_with_smallest_sums_test.go ├── find-k-th-smallest-pair-distance │ ├── README.md │ ├── find_k_th_smallest_pair_distance.go │ └── find_k_th_smallest_pair_distance_test.go ├── find-kth-bit-in-nth-binary-string │ └── README.md ├── find-kth-largest-xor-coordinate-value │ └── README.md ├── find-largest-value-in-each-tree-row │ ├── README.md │ ├── find_largest_value_in_each_tree_row.go │ └── find_largest_value_in_each_tree_row_test.go ├── find-latest-group-of-size-m │ └── README.md ├── find-leaves-of-binary-tree │ ├── README.md │ ├── find_leaves_of_binary_tree.go │ └── find_leaves_of_binary_tree_test.go ├── find-longest-awesome-substring │ └── README.md ├── find-lucky-integer-in-an-array │ ├── README.md │ ├── find_lucky_integer_in_an_array.go │ └── find_lucky_integer_in_an_array_test.go ├── find-median-from-data-stream │ ├── README.md │ ├── find_median_from_data_stream.go │ └── find_median_from_data_stream_test.go ├── find-median-given-frequency-of-numbers │ ├── README.md │ ├── find_median_given_frequency_of_numbers.sql │ └── mysql_schemas.sql ├── find-minimum-in-rotated-sorted-array-ii │ ├── README.md │ ├── find_minimum_in_rotated_sorted_array_ii.go │ └── find_minimum_in_rotated_sorted_array_ii_test.go ├── find-minimum-in-rotated-sorted-array │ ├── README.md │ ├── find_minimum_in_rotated_sorted_array.go │ └── find_minimum_in_rotated_sorted_array_test.go ├── find-minimum-time-to-finish-all-jobs │ └── README.md ├── find-missing-observations │ └── README.md ├── find-mode-in-binary-search-tree │ ├── README.md │ ├── find_mode_in_binary_search_tree.go │ └── find_mode_in_binary_search_tree_test.go ├── find-n-unique-integers-sum-up-to-zero │ └── README.md ├── find-nearest-point-that-has-the-same-x-or-y-coordinate │ └── README.md ├── find-nearest-right-node-in-binary-tree │ └── README.md ├── find-numbers-with-even-number-of-digits │ └── README.md ├── find-original-array-from-doubled-array │ └── README.md ├── find-peak-element │ ├── README.md │ ├── find_peak_element.go │ └── find_peak_element_test.go ├── find-permutation │ ├── README.md │ ├── find_permutation.go │ └── find_permutation_test.go ├── find-pivot-index │ ├── README.md │ ├── find_pivot_index.go │ └── find_pivot_index_test.go ├── find-positive-integer-solution-for-a-given-equation │ └── README.md ├── find-right-interval │ ├── README.md │ ├── find_right_interval.go │ └── find_right_interval_test.go ├── find-root-of-n-ary-tree │ └── README.md ├── find-servers-that-handled-most-number-of-requests │ └── README.md ├── find-smallest-common-element-in-all-rows │ └── README.md ├── find-smallest-letter-greater-than-target │ ├── README.md │ ├── find_smallest_letter_greater_than_target.go │ └── find_smallest_letter_greater_than_target_test.go ├── find-subsequence-of-length-k-with-the-largest-sum │ └── README.md ├── find-substring-with-given-hash-value │ └── README.md ├── find-target-indices-after-sorting-array │ └── README.md ├── find-the-celebrity │ ├── README.md │ ├── find_the_celebrity.go │ └── find_the_celebrity_test.go ├── find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance │ └── README.md ├── find-the-closest-palindrome │ ├── README.md │ ├── find_the_closest_palindrome.go │ └── find_the_closest_palindrome_test.go ├── find-the-derangement-of-an-array │ ├── README.md │ ├── find_the_derangement_of_an_array.go │ └── find_the_derangement_of_an_array_test.go ├── find-the-difference │ ├── README.md │ ├── find_the_difference.go │ └── find_the_difference_test.go ├── find-the-distance-value-between-two-arrays │ └── README.md ├── find-the-duplicate-number │ ├── README.md │ ├── find_the_duplicate_number.go │ └── find_the_duplicate_number_test.go ├── find-the-highest-altitude │ └── README.md ├── find-the-index-of-the-large-integer │ └── README.md ├── find-the-kth-largest-integer-in-the-array │ └── README.md ├── find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows │ └── README.md ├── find-the-longest-substring-containing-vowels-in-even-counts │ └── README.md ├── find-the-longest-valid-obstacle-course-at-each-position │ └── README.md ├── find-the-middle-index-in-array │ └── README.md ├── find-the-minimum-and-maximum-number-of-nodes-between-critical-points │ └── README.md ├── find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k │ └── README.md ├── find-the-missing-ids │ ├── README.md │ └── mysql_schemas.sql ├── find-the-most-competitive-subsequence │ └── README.md ├── find-the-quiet-students-in-all-exams │ ├── README.md │ └── mysql_schemas.sql ├── find-the-shortest-superstring │ ├── README.md │ ├── find_the_shortest_superstring.go │ └── find_the_shortest_superstring_test.go ├── find-the-smallest-divisor-given-a-threshold │ └── README.md ├── find-the-start-and-end-number-of-continuous-ranges │ ├── README.md │ └── mysql_schemas.sql ├── find-the-student-that-will-replace-the-chalk │ └── README.md ├── find-the-subtasks-that-did-not-execute │ ├── README.md │ └── mysql_schemas.sql ├── find-the-team-size │ ├── README.md │ └── mysql_schemas.sql ├── find-the-town-judge │ ├── README.md │ ├── find_the_town_judge.go │ └── find_the_town_judge_test.go ├── find-the-winner-of-an-array-game │ └── README.md ├── find-the-winner-of-the-circular-game │ └── README.md ├── find-total-time-spent-by-each-employee │ ├── README.md │ └── mysql_schemas.sql ├── find-two-non-overlapping-sub-arrays-each-with-target-sum │ └── README.md ├── find-unique-binary-string │ └── README.md ├── find-users-with-valid-e-mails │ ├── README.md │ └── mysql_schemas.sql ├── find-valid-matrix-given-row-and-column-sums │ └── README.md ├── find-winner-on-a-tic-tac-toe-game │ └── README.md ├── find-words-that-can-be-formed-by-characters │ └── README.md ├── find-xor-sum-of-all-pairs-bitwise-and │ └── README.md ├── finding-3-digit-even-numbers │ └── README.md ├── finding-mk-average │ └── README.md ├── finding-pairs-with-a-certain-sum │ └── README.md ├── finding-the-users-active-minutes │ └── README.md ├── first-and-last-call-on-the-same-day │ ├── README.md │ └── mysql_schemas.sql ├── first-bad-version │ ├── README.md │ ├── first_bad_version.go │ ├── first_bad_version.py │ └── first_bad_version_test.go ├── first-day-where-you-have-been-in-all-the-rooms │ └── README.md ├── first-missing-positive │ ├── README.md │ ├── first_missing_positive.go │ └── first_missing_positive_test.go ├── first-unique-character-in-a-string │ ├── README.md │ ├── first_unique_character_in_a_string.go │ └── first_unique_character_in_a_string_test.go ├── first-unique-number │ └── README.md ├── fix-names-in-a-table │ ├── README.md │ └── mysql_schemas.sql ├── fix-product-name-format │ ├── README.md │ └── mysql_schemas.sql ├── fixed-point │ └── README.md ├── fizz-buzz-multithreaded │ └── README.md ├── fizz-buzz │ ├── README.md │ ├── fizz_buzz.go │ └── fizz_buzz_test.go ├── flatten-2d-vector │ ├── README.md │ ├── flatten_2d_vector.go │ └── flatten_2d_vector_test.go ├── flatten-a-multilevel-doubly-linked-list │ ├── README.md │ ├── flatten_a_multilevel_doubly_linked_list.go │ ├── flatten_a_multilevel_doubly_linked_list.py │ └── flatten_a_multilevel_doubly_linked_list_test.go ├── flatten-binary-tree-to-linked-list │ ├── README.md │ ├── flatten_binary_tree_to_linked_list.go │ └── flatten_binary_tree_to_linked_list_test.go ├── flatten-nested-list-iterator │ ├── README.md │ ├── flatten_nested_list_iterator.go │ ├── flatten_nested_list_iterator.py │ └── flatten_nested_list_iterator_test.go ├── flip-binary-tree-to-match-preorder-traversal │ ├── README.md │ └── flip_binary_tree_to_match_preorder_traversal.go ├── flip-columns-for-maximum-number-of-equal-rows │ ├── README.md │ └── flip_columns_for_maximum_number_of_equal_rows.go ├── flip-equivalent-binary-trees │ ├── README.md │ ├── flip_equivalent_binary_trees.go │ └── flip_equivalent_binary_trees_test.go ├── flip-game-ii │ ├── README.md │ ├── flip_game_ii.go │ └── flip_game_ii_test.go ├── flip-game │ ├── README.md │ ├── flip_game.go │ └── flip_game_test.go ├── flip-string-to-monotone-increasing │ ├── README.md │ ├── flip_string_to_monotone_increasing.go │ └── flip_string_to_monotone_increasing_test.go ├── flipping-an-image │ ├── README.md │ ├── flipping_an_image.go │ └── flipping_an_image_test.go ├── flood-fill │ ├── README.md │ ├── flood_fill.go │ └── flood_fill_test.go ├── flower-planting-with-no-adjacent │ ├── README.md │ ├── flower_planting_with_no_adjacent.go │ └── flower_planting_with_no_adjacent_test.go ├── form-array-by-concatenating-subarrays-of-another-array │ └── README.md ├── form-largest-integer-with-digits-that-add-up-to-target │ └── README.md ├── four-divisors │ └── README.md ├── fraction-addition-and-subtraction │ ├── README.md │ ├── fraction_addition_and_subtraction.go │ └── fraction_addition_and_subtraction_test.go ├── fraction-to-recurring-decimal │ ├── README.md │ ├── fraction_to_recurring_decimal.go │ └── fraction_to_recurring_decimal_test.go ├── freedom-trail │ ├── README.md │ ├── freedom_trail.go │ └── freedom_trail_test.go ├── frequency-of-the-most-frequent-element │ └── README.md ├── friend-circles │ ├── README.md │ ├── friend_circles.go │ └── friend_circles_test.go ├── friend-requests-i-overall-acceptance-rate │ ├── README.md │ ├── friend_requests_i_overall_acceptance_rate.sql │ └── mysql_schemas.sql ├── friend-requests-ii-who-has-the-most-friends │ ├── README.md │ ├── friend_requests_ii_who_has_the_most_friends.sql │ └── mysql_schemas.sql ├── friendly-movies-streamed-last-month │ ├── README.md │ └── mysql_schemas.sql ├── friends-of-appropriate-ages │ ├── README.md │ ├── friends_of_appropriate_ages.go │ └── friends_of_appropriate_ages_test.go ├── frog-jump │ ├── README.md │ ├── frog_jump.go │ └── frog_jump_test.go ├── frog-position-after-t-seconds │ └── README.md ├── fruit-into-baskets │ ├── README.md │ ├── fruit_into_baskets.go │ └── fruit_into_baskets_test.go ├── furthest-building-you-can-reach │ └── README.md ├── game-of-life │ ├── README.md │ ├── game_of_life.go │ └── game_of_life_test.go ├── game-of-nim │ └── README.md ├── game-play-analysis-i │ ├── README.md │ ├── game_play_analysis_i.sql │ └── mysql_schemas.sql ├── game-play-analysis-ii │ ├── README.md │ ├── game_play_analysis_ii.sql │ └── mysql_schemas.sql ├── game-play-analysis-iii │ ├── README.md │ ├── game_play_analysis_iii.sql │ └── mysql_schemas.sql ├── game-play-analysis-iv │ ├── README.md │ ├── game_play_analysis_iv.sql │ └── mysql_schemas.sql ├── game-play-analysis-v │ ├── README.md │ ├── game_play_analysis_v.sql │ └── mysql_schemas.sql ├── gas-station │ ├── README.md │ ├── gas_station.go │ └── gas_station_test.go ├── gcd-sort-of-an-array │ └── README.md ├── generalized-abbreviation │ ├── README.md │ ├── generalized_abbreviation.go │ └── generalized_abbreviation_test.go ├── generate-a-string-with-characters-that-have-odd-counts │ ├── README.md │ ├── generate_a_string_with_characters_that_have_odd_counts.go │ └── generate_a_string_with_characters_that_have_odd_counts_test.go ├── generate-parentheses │ ├── README.md │ ├── generate_parentheses.go │ └── generate_parentheses_test.go ├── generate-random-point-in-a-circle │ ├── README.md │ ├── generate_random_point_in_a_circle.go │ └── generate_random_point_in_a_circle_test.go ├── get-biggest-three-rhombus-sums-in-a-grid │ └── README.md ├── get-equal-substrings-within-budget │ └── README.md ├── get-highest-answer-rate-question │ ├── README.md │ ├── get_highest_answer_rate_question.sql │ └── mysql_schemas.sql ├── get-maximum-in-generated-array │ └── README.md ├── get-the-maximum-score │ └── README.md ├── get-the-second-most-recent-activity │ ├── README.md │ └── mysql_schemas.sql ├── get-watched-videos-by-your-friends │ └── README.md ├── global-and-local-inversions │ ├── README.md │ ├── global_and_local_inversions.go │ └── global_and_local_inversions_test.go ├── goal-parser-interpretation │ └── README.md ├── goat-latin │ ├── README.md │ ├── goat_latin.go │ └── goat_latin_test.go ├── grand-slam-titles │ ├── README.md │ └── mysql_schemas.sql ├── graph-connectivity-with-threshold │ └── README.md ├── graph-valid-tree │ ├── README.md │ ├── graph_valid_tree.go │ └── graph_valid_tree_test.go ├── gray-code │ ├── README.md │ ├── gray_code.go │ └── gray_code_test.go ├── greatest-common-divisor-of-strings │ ├── README.md │ ├── greatest_common_divisor_of_strings.go │ └── greatest_common_divisor_of_strings_test.go ├── greatest-sum-divisible-by-three │ └── README.md ├── grid-game │ └── README.md ├── grid-illumination │ ├── README.md │ └── grid_illumination.go ├── group-anagrams │ ├── README.md │ ├── group_anagrams.go │ └── group_anagrams_test.go ├── group-employees-of-the-same-salary │ ├── README.md │ └── mysql_schemas.sql ├── group-shifted-strings │ ├── README.md │ ├── group_shifted_strings.go │ └── group_shifted_strings_test.go ├── group-sold-products-by-the-date │ ├── README.md │ └── mysql_schemas.sql ├── group-the-people-given-the-group-size-they-belong-to │ └── README.md ├── groups-of-special-equivalent-strings │ ├── README.md │ ├── groups_of_special_equivalent_strings.go │ └── groups_of_special_equivalent_strings_test.go ├── groups-of-strings │ └── README.md ├── grumpy-bookstore-owner │ ├── README.md │ └── grumpy_bookstore_owner.go ├── guess-number-higher-or-lower-ii │ ├── README.md │ ├── guess_number_higher_or_lower_ii.go │ └── guess_number_higher_or_lower_ii_test.go ├── guess-number-higher-or-lower │ ├── README.md │ ├── guess_number_higher_or_lower.go │ ├── guess_number_higher_or_lower.py │ └── guess_number_higher_or_lower_test.go ├── guess-the-majority-in-a-hidden-array │ └── README.md ├── guess-the-word │ ├── README.md │ ├── guess_the_word.go │ └── guess_the_word_test.go ├── h-index-ii │ ├── README.md │ ├── h_index_ii.go │ └── h_index_ii_test.go ├── h-index │ ├── README.md │ ├── h_index.go │ └── h_index_test.go ├── hamming-distance │ ├── README.md │ ├── hamming_distance.go │ └── hamming_distance_test.go ├── hand-of-straights │ ├── README.md │ ├── hand_of_straights.go │ └── hand_of_straights_test.go ├── handshakes-that-dont-cross │ └── README.md ├── happy-number │ ├── README.md │ ├── happy_number.go │ └── happy_number_test.go ├── heaters │ ├── README.md │ ├── heaters.go │ └── heaters_test.go ├── height-checker │ ├── README.md │ ├── height_checker.go │ └── height_checker_test.go ├── hexspeak │ ├── README.md │ ├── hexspeak.go │ └── hexspeak_test.go ├── high-five │ └── README.md ├── highest-grade-for-each-student │ ├── README.md │ ├── highest_grade_for_each_student.sql │ └── mysql_schemas.sql ├── hopper-company-queries-i │ ├── README.md │ └── mysql_schemas.sql ├── hopper-company-queries-ii │ ├── README.md │ └── mysql_schemas.sql ├── hopper-company-queries-iii │ ├── README.md │ └── mysql_schemas.sql ├── house-robber-ii │ ├── README.md │ ├── house_robber_ii.go │ └── house_robber_ii_test.go ├── house-robber-iii │ ├── README.md │ ├── house_robber_iii.go │ └── house_robber_iii_test.go ├── house-robber │ ├── README.md │ ├── house_robber.go │ └── house_robber_test.go ├── how-many-apples-can-you-put-into-the-basket │ └── README.md ├── how-many-numbers-are-smaller-than-the-current-number │ └── README.md ├── html-entity-parser │ └── README.md ├── human-traffic-of-stadium │ ├── README.md │ ├── human_traffic_of_stadium.sql │ └── mysql_schemas.sql ├── image-overlap │ ├── README.md │ ├── image_overlap.go │ └── image_overlap_test.go ├── image-smoother │ ├── README.md │ ├── image_smoother.go │ └── image_smoother_test.go ├── immediate-food-delivery-i │ ├── README.md │ └── mysql_schemas.sql ├── immediate-food-delivery-ii │ ├── README.md │ └── mysql_schemas.sql ├── implement-magic-dictionary │ ├── README.md │ ├── implement_magic_dictionary.go │ └── implement_magic_dictionary_test.go ├── implement-queue-using-stacks │ ├── README.md │ ├── implement_queue_using_stacks.go │ └── implement_queue_using_stacks_test.go ├── implement-rand10-using-rand7 │ ├── README.md │ ├── implement_rand10_using_rand7.go │ └── implement_rand10_using_rand7_test.go ├── implement-stack-using-queues │ ├── README.md │ ├── implement_stack_using_queues.go │ └── implement_stack_using_queues_test.go ├── implement-strstr │ ├── README.md │ ├── implement_strstr.go │ └── implement_strstr_test.go ├── implement-trie-ii-prefix-tree │ └── README.md ├── implement-trie-prefix-tree │ ├── README.md │ ├── implement_trie_prefix_tree.go │ └── implement_trie_prefix_tree_test.go ├── increasing-decreasing-string │ ├── README.md │ ├── increasing_decreasing_string.go │ └── increasing_decreasing_string_test.go ├── increasing-order-search-tree │ ├── README.md │ ├── increasing_order_search_tree.go │ └── increasing_order_search_tree_test.go ├── increasing-subsequences │ ├── README.md │ ├── increasing_subsequences.go │ └── increasing_subsequences_test.go ├── increasing-triplet-subsequence │ ├── README.md │ ├── increasing_triplet_subsequence.go │ └── increasing_triplet_subsequence_test.go ├── incremental-memory-leak │ └── README.md ├── index-pairs-of-a-string │ └── README.md ├── inorder-successor-in-bst-ii │ └── README.md ├── inorder-successor-in-bst │ ├── README.md │ ├── inorder_successor_in_bst.go │ └── inorder_successor_in_bst_test.go ├── insert-delete-getrandom-o1-duplicates-allowed │ ├── README.md │ ├── insert_delete_getrandom_o1_duplicates_allowed.go │ └── insert_delete_getrandom_o1_duplicates_allowed_test.go ├── insert-delete-getrandom-o1 │ ├── README.md │ ├── insert_delete_getrandom_o1.go │ └── insert_delete_getrandom_o1_test.go ├── insert-interval │ ├── README.md │ ├── insert_interval.go │ └── insert_interval_test.go ├── insert-into-a-binary-search-tree │ ├── README.md │ ├── insert_into_a_binary_search_tree.go │ └── insert_into_a_binary_search_tree_test.go ├── insert-into-a-sorted-circular-linked-list │ └── README.md ├── insertion-sort-list │ ├── README.md │ ├── insertion_sort_list.go │ └── insertion_sort_list_test.go ├── insufficient-nodes-in-root-to-leaf-paths │ └── README.md ├── integer-break │ ├── README.md │ ├── integer_break.go │ └── integer_break_test.go ├── integer-replacement │ ├── README.md │ ├── integer_replacement.go │ └── integer_replacement_test.go ├── integer-to-english-words │ ├── README.md │ ├── integer_to_english_words.go │ └── integer_to_english_words_test.go ├── integer-to-roman │ ├── README.md │ ├── integer_to_roman.go │ └── integer_to_roman_test.go ├── interleaving-string │ ├── README.md │ ├── interleaving_string.go │ └── interleaving_string_test.go ├── intersection-of-three-sorted-arrays │ └── README.md ├── intersection-of-two-arrays-ii │ ├── README.md │ ├── intersection_of_two_arrays_ii.go │ └── intersection_of_two_arrays_ii_test.go ├── intersection-of-two-arrays │ ├── README.md │ ├── intersection_of_two_arrays.go │ └── intersection_of_two_arrays_test.go ├── intersection-of-two-linked-lists │ ├── README.md │ ├── intersection_of_two_linked_lists.go │ └── intersection_of_two_linked_lists_test.go ├── interval-list-intersections │ ├── README.md │ └── interval_list_intersections.go ├── intervals-between-identical-elements │ └── README.md ├── invalid-transactions │ └── README.md ├── invalid-tweets │ ├── README.md │ └── mysql_schemas.sql ├── invert-binary-tree │ ├── README.md │ ├── invert_binary_tree.go │ └── invert_binary_tree_test.go ├── investments-in-2016 │ ├── README.md │ ├── investments_in_2016.sql │ └── mysql_schemas.sql ├── ip-to-cidr │ ├── README.md │ ├── ip_to_cidr.go │ └── ip_to_cidr_test.go ├── ipo │ ├── README.md │ ├── ipo.go │ └── ipo_test.go ├── is-graph-bipartite │ ├── README.md │ ├── is_graph_bipartite.go │ └── is_graph_bipartite_test.go ├── is-subsequence │ ├── README.md │ ├── is_subsequence.go │ └── is_subsequence_test.go ├── island-perimeter │ ├── README.md │ ├── island_perimeter.go │ └── island_perimeter_test.go ├── isomorphic-strings │ ├── README.md │ ├── isomorphic_strings.go │ └── isomorphic_strings_test.go ├── iterator-for-combination │ └── README.md ├── jewels-and-stones │ ├── README.md │ ├── jewels_and_stones.go │ └── jewels_and_stones_test.go ├── jump-game-ii │ ├── README.md │ ├── jump_game_ii.go │ └── jump_game_ii_test.go ├── jump-game-iii │ └── README.md ├── jump-game-iv │ └── README.md ├── jump-game-v │ └── README.md ├── jump-game-vi │ └── README.md ├── jump-game-vii │ └── README.md ├── jump-game │ ├── README.md │ ├── jump_game.go │ └── jump_game_test.go ├── k-closest-points-to-origin │ ├── README.md │ ├── k_closest_points_to_origin.go │ └── k_closest_points_to_origin_test.go ├── k-concatenation-maximum-sum │ └── README.md ├── k-diff-pairs-in-an-array │ ├── README.md │ ├── k_diff_pairs_in_an_array.go │ └── k_diff_pairs_in_an_array_test.go ├── k-empty-slots │ ├── README.md │ ├── k_empty_slots.go │ └── k_empty_slots_test.go ├── k-highest-ranked-items-within-a-price-range │ └── README.md ├── k-inverse-pairs-array │ ├── README.md │ ├── k_inverse_pairs_array.go │ └── k_inverse_pairs_array_test.go ├── k-radius-subarray-averages │ └── README.md ├── k-similar-strings │ ├── README.md │ ├── k_similar_strings.go │ └── k_similar_strings_test.go ├── k-th-smallest-in-lexicographical-order │ ├── README.md │ ├── k_th_smallest_in_lexicographical_order.go │ └── k_th_smallest_in_lexicographical_order_test.go ├── k-th-smallest-prime-fraction │ ├── README.md │ ├── k_th_smallest_prime_fraction.go │ └── k_th_smallest_prime_fraction_test.go ├── k-th-symbol-in-grammar │ ├── README.md │ ├── k_th_symbol_in_grammar.go │ └── k_th_symbol_in_grammar_test.go ├── keep-multiplying-found-values-by-two │ └── README.md ├── keyboard-row │ ├── README.md │ ├── keyboard_row.go │ └── keyboard_row_test.go ├── keys-and-rooms │ ├── README.md │ ├── keys_and_rooms.go │ └── keys_and_rooms_test.go ├── kids-with-the-greatest-number-of-candies │ └── README.md ├── kill-process │ ├── README.md │ ├── kill_process.go │ └── kill_process_test.go ├── knight-dialer │ ├── README.md │ ├── knight_dialer.go │ └── knight_dialer_test.go ├── knight-probability-in-chessboard │ ├── README.md │ ├── knight_probability_in_chessboard.go │ └── knight_probability_in_chessboard_test.go ├── koko-eating-bananas │ ├── README.md │ ├── koko_eating_bananas.go │ └── koko_eating_bananas_test.go ├── kth-ancestor-of-a-tree-node │ └── README.md ├── kth-distinct-string-in-an-array │ └── README.md ├── kth-largest-element-in-a-stream │ ├── README.md │ ├── kth_largest_element_in_a_stream.go │ └── kth_largest_element_in_a_stream_test.go ├── kth-largest-element-in-an-array │ ├── README.md │ ├── kth_largest_element_in_an_array.go │ └── kth_largest_element_in_an_array_test.go ├── kth-missing-positive-number │ └── README.md ├── kth-smallest-element-in-a-bst │ ├── README.md │ ├── kth_smallest_element_in_a_bst.go │ └── kth_smallest_element_in_a_bst_test.go ├── kth-smallest-element-in-a-sorted-matrix │ ├── README.md │ ├── kth_smallest_element_in_a_sorted_matrix.go │ └── kth_smallest_element_in_a_sorted_matrix_test.go ├── kth-smallest-instructions │ └── README.md ├── kth-smallest-number-in-multiplication-table │ ├── README.md │ ├── kth_smallest_number_in_multiplication_table.go │ └── kth_smallest_number_in_multiplication_table_test.go ├── kth-smallest-product-of-two-sorted-arrays │ └── README.md ├── kth-smallest-subarray-sum │ └── README.md ├── largest-1-bordered-square │ └── README.md ├── largest-bst-subtree │ ├── README.md │ ├── largest_bst_subtree.go │ └── largest_bst_subtree_test.go ├── largest-color-value-in-a-directed-graph │ └── README.md ├── largest-component-size-by-common-factor │ ├── README.md │ ├── largest_component_size_by_common_factor.go │ └── largest_component_size_by_common_factor_test.go ├── largest-divisible-subset │ ├── README.md │ ├── largest_divisible_subset.go │ └── largest_divisible_subset_test.go ├── largest-magic-square │ └── README.md ├── largest-merge-of-two-strings │ └── README.md ├── largest-multiple-of-three │ └── README.md ├── largest-number-after-mutating-substring │ └── README.md ├── largest-number-at-least-twice-of-others │ ├── README.md │ ├── largest_number_at_least_twice_of_others.go │ └── largest_number_at_least_twice_of_others_test.go ├── largest-number │ ├── README.md │ ├── largest_number.go │ └── largest_number_test.go ├── largest-odd-number-in-string │ └── README.md ├── largest-palindrome-product │ ├── README.md │ ├── largest_palindrome_product.go │ └── largest_palindrome_product_test.go ├── largest-perimeter-triangle │ ├── README.md │ ├── largest_perimeter_triangle.go │ └── largest_perimeter_triangle_test.go ├── largest-plus-sign │ ├── README.md │ ├── largest_plus_sign.go │ └── largest_plus_sign_test.go ├── largest-rectangle-in-histogram │ ├── README.md │ ├── largest_rectangle_in_histogram.go │ └── largest_rectangle_in_histogram_test.go ├── largest-subarray-length-k │ └── README.md ├── largest-submatrix-with-rearrangements │ └── README.md ├── largest-substring-between-two-equal-characters │ └── README.md ├── largest-sum-of-averages │ ├── README.md │ ├── largest_sum_of_averages.go │ └── largest_sum_of_averages_test.go ├── largest-time-for-given-digits │ ├── README.md │ ├── largest_time_for_given_digits.go │ └── largest_time_for_given_digits_test.go ├── largest-triangle-area │ ├── README.md │ ├── largest_triangle_area.go │ └── largest_triangle_area_test.go ├── largest-unique-number │ └── README.md ├── largest-values-from-labels │ ├── README.md │ └── largest_values_from_labels.go ├── last-day-where-you-can-still-cross │ └── README.md ├── last-moment-before-all-ants-fall-out-of-a-plank │ └── README.md ├── last-person-to-fit-in-the-bus │ ├── README.md │ └── mysql_schemas.sql ├── last-person-to-fit-in-the-elevator │ ├── README.md │ └── mysql_schemas.sql ├── last-stone-weight-ii │ ├── README.md │ └── last_stone_weight_ii.go ├── last-stone-weight │ ├── README.md │ ├── last_stone_weight.go │ └── last_stone_weight_test.go ├── last-substring-in-lexicographical-order │ ├── README.md │ ├── last_substring_in_lexicographical_order.go │ └── last_substring_in_lexicographical_order_test.go ├── latest-time-by-replacing-hidden-digits │ └── README.md ├── leaf-similar-trees │ ├── README.md │ ├── leaf_similar_trees.go │ └── leaf_similar_trees_test.go ├── league-statistics │ ├── README.md │ └── mysql_schemas.sql ├── least-number-of-unique-integers-after-k-removals │ └── README.md ├── least-operators-to-express-number │ ├── README.md │ └── least_operators_to_express_number.go ├── leetcodify-friends-recommendations │ ├── README.md │ └── mysql_schemas.sql ├── leetcodify-similar-friends │ ├── README.md │ └── mysql_schemas.sql ├── leetflex-banned-accounts │ ├── README.md │ └── mysql_schemas.sql ├── leftmost-column-with-at-least-a-one │ └── README.md ├── lemonade-change │ ├── README.md │ ├── lemonade_change.go │ └── lemonade_change_test.go ├── length-of-last-word │ ├── README.md │ ├── length_of_last_word.go │ └── length_of_last_word_test.go ├── length-of-longest-fibonacci-subsequence │ ├── README.md │ ├── length_of_longest_fibonacci_subsequence.go │ └── length_of_longest_fibonacci_subsequence_test.go ├── letter-case-permutation │ ├── README.md │ ├── letter_case_permutation.go │ └── letter_case_permutation_test.go ├── letter-combinations-of-a-phone-number │ ├── README.md │ ├── letter_combinations_of_a_phone_number.go │ └── letter_combinations_of_a_phone_number_test.go ├── letter-tile-possibilities │ ├── README.md │ └── letter_tile_possibilities.go ├── lexicographical-numbers │ ├── README.md │ ├── lexicographical_numbers.go │ └── lexicographical_numbers_test.go ├── lexicographically-smallest-equivalent-string │ └── README.md ├── lexicographically-smallest-string-after-applying-operations │ └── README.md ├── lfu-cache │ ├── README.md │ ├── lfu_cache.go │ └── lfu_cache_test.go ├── license-key-formatting │ ├── README.md │ ├── license_key_formatting.go │ └── license_key_formatting_test.go ├── line-reflection │ ├── README.md │ ├── line_reflection.go │ └── line_reflection_test.go ├── linked-list-components │ ├── README.md │ ├── linked_list_components.go │ └── linked_list_components_test.go ├── linked-list-cycle-ii │ ├── README.md │ ├── linked_list_cycle_ii.go │ └── linked_list_cycle_ii_test.go ├── linked-list-cycle │ ├── README.md │ ├── linked_list_cycle.go │ └── linked_list_cycle_test.go ├── linked-list-in-binary-tree │ └── README.md ├── linked-list-random-node │ ├── README.md │ ├── linked_list_random_node.go │ └── linked_list_random_node_test.go ├── list-the-products-ordered-in-a-period │ ├── README.md │ └── mysql_schemas.sql ├── logger-rate-limiter │ ├── README.md │ ├── logger_rate_limiter.go │ └── logger_rate_limiter_test.go ├── logical-or-of-two-binary-grids-represented-as-quad-trees │ └── README.md ├── lonely-pixel-i │ ├── README.md │ ├── lonely_pixel_i.go │ └── lonely_pixel_i_test.go ├── lonely-pixel-ii │ ├── README.md │ ├── lonely_pixel_ii.go │ └── lonely_pixel_ii_test.go ├── long-pressed-name │ ├── README.md │ ├── long_pressed_name.go │ └── long_pressed_name_test.go ├── longer-contiguous-segments-of-ones-than-zeros │ └── README.md ├── longest-absolute-file-path │ ├── README.md │ ├── longest_absolute_file_path.go │ └── longest_absolute_file_path_test.go ├── longest-arithmetic-sequence │ ├── README.md │ └── longest_arithmetic_sequence.go ├── longest-arithmetic-subsequence-of-given-difference │ └── README.md ├── longest-arithmetic-subsequence │ └── README.md ├── longest-chunked-palindrome-decomposition │ └── README.md ├── longest-common-prefix │ ├── README.md │ ├── longest_common_prefix.go │ └── longest_common_prefix_test.go ├── longest-common-subpath │ └── README.md ├── longest-common-subsequence-between-sorted-arrays │ └── README.md ├── longest-common-subsequence │ └── README.md ├── longest-consecutive-sequence │ ├── README.md │ ├── longest_consecutive_sequence.go │ └── longest_consecutive_sequence_test.go ├── longest-continuous-increasing-subsequence │ ├── README.md │ ├── longest_continuous_increasing_subsequence.go │ └── longest_continuous_increasing_subsequence_test.go ├── longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit │ └── README.md ├── longest-duplicate-substring │ ├── README.md │ └── longest_duplicate_substring.go ├── longest-happy-prefix │ └── README.md ├── longest-happy-string │ └── README.md ├── longest-harmonious-subsequence │ ├── README.md │ ├── longest_harmonious_subsequence.go │ └── longest_harmonious_subsequence_test.go ├── longest-increasing-path-in-a-matrix │ ├── README.md │ ├── longest_increasing_path_in_a_matrix.go │ └── longest_increasing_path_in_a_matrix_test.go ├── longest-increasing-subsequence │ ├── README.md │ ├── longest_increasing_subsequence.go │ └── longest_increasing_subsequence_test.go ├── longest-line-of-consecutive-one-in-matrix │ ├── README.md │ ├── longest_line_of_consecutive_one_in_matrix.go │ └── longest_line_of_consecutive_one_in_matrix_test.go ├── longest-mountain-in-array │ ├── README.md │ ├── longest_mountain_in_array.go │ └── longest_mountain_in_array_test.go ├── longest-nice-substring │ └── README.md ├── longest-palindrome-by-concatenating-two-letter-words │ └── README.md ├── longest-palindrome │ ├── README.md │ ├── longest_palindrome.go │ └── longest_palindrome_test.go ├── longest-palindromic-subsequence-ii │ └── README.md ├── longest-palindromic-subsequence │ ├── README.md │ ├── longest_palindromic_subsequence.go │ └── longest_palindromic_subsequence_test.go ├── longest-palindromic-substring │ ├── README.md │ ├── longest_palindromic_substring.go │ └── longest_palindromic_substring_test.go ├── longest-repeating-character-replacement │ ├── README.md │ ├── longest_repeating_character_replacement.go │ └── longest_repeating_character_replacement_test.go ├── longest-repeating-substring │ └── README.md ├── longest-string-chain │ ├── README.md │ └── longest_string_chain.go ├── longest-subarray-of-1s-after-deleting-one-element │ └── README.md ├── longest-subsequence-repeated-k-times │ └── README.md ├── longest-substring-of-all-vowels-in-order │ └── README.md ├── longest-substring-with-at-least-k-repeating-characters │ ├── README.md │ ├── longest_substring_with_at_least_k_repeating_characters.go │ └── longest_substring_with_at_least_k_repeating_characters_test.go ├── longest-substring-with-at-most-k-distinct-characters │ ├── README.md │ ├── longest_substring_with_at_most_k_distinct_characters.go │ └── longest_substring_with_at_most_k_distinct_characters_test.go ├── longest-substring-with-at-most-two-distinct-characters │ ├── README.md │ ├── longest_substring_with_at_most_two_distinct_characters.go │ └── longest_substring_with_at_most_two_distinct_characters_test.go ├── longest-substring-without-repeating-characters │ ├── README.md │ ├── longest_substring_without_repeating_characters.go │ └── longest_substring_without_repeating_characters_test.go ├── longest-turbulent-subarray │ ├── README.md │ └── longest_turbulent_subarray.go ├── longest-uncommon-subsequence-i │ ├── README.md │ ├── longest_uncommon_subsequence_i.go │ └── longest_uncommon_subsequence_i_test.go ├── longest-uncommon-subsequence-ii │ ├── README.md │ ├── longest_uncommon_subsequence_ii.go │ └── longest_uncommon_subsequence_ii_test.go ├── longest-univalue-path │ ├── README.md │ ├── longest_univalue_path.go │ └── longest_univalue_path_test.go ├── longest-valid-parentheses │ ├── README.md │ ├── longest_valid_parentheses.go │ └── longest_valid_parentheses_test.go ├── longest-well-performing-interval │ ├── README.md │ └── longest_well_performing_interval.go ├── longest-winning-streak │ ├── README.md │ └── mysql_schemas.sql ├── longest-word-in-dictionary-through-deleting │ ├── README.md │ ├── longest_word_in_dictionary_through_deleting.go │ └── longest_word_in_dictionary_through_deleting_test.go ├── longest-word-in-dictionary │ ├── README.md │ ├── longest_word_in_dictionary.go │ └── longest_word_in_dictionary_test.go ├── longest-word-with-all-prefixes │ └── README.md ├── longest-zigzag-path-in-a-binary-tree │ └── README.md ├── loud-and-rich │ ├── README.md │ ├── loud_and_rich.go │ └── loud_and_rich_test.go ├── low-quality-problems │ ├── README.md │ └── mysql_schemas.sql ├── lowest-common-ancestor-of-a-binary-search-tree │ ├── README.md │ ├── lowest_common_ancestor_of_a_binary_search_tree.go │ └── lowest_common_ancestor_of_a_binary_search_tree_test.go ├── lowest-common-ancestor-of-a-binary-tree-ii │ └── README.md ├── lowest-common-ancestor-of-a-binary-tree-iii │ └── README.md ├── lowest-common-ancestor-of-a-binary-tree-iv │ └── README.md ├── lowest-common-ancestor-of-a-binary-tree │ ├── README.md │ ├── lowest_common_ancestor_of_a_binary_tree.go │ └── lowest_common_ancestor_of_a_binary_tree_test.go ├── lowest-common-ancestor-of-deepest-leaves │ ├── README.md │ └── lowest_common_ancestor_of_deepest_leaves.go ├── lru-cache │ ├── README.md │ ├── lru_cache.go │ └── lru_cache_test.go ├── lucky-numbers-in-a-matrix │ └── README.md ├── magic-squares-in-grid │ ├── README.md │ ├── magic_squares_in_grid.go │ └── magic_squares_in_grid_test.go ├── magical-string │ ├── README.md │ ├── magical_string.go │ └── magical_string_test.go ├── magnetic-force-between-two-balls │ └── README.md ├── majority-element-ii │ ├── README.md │ ├── majority_element_ii.go │ └── majority_element_ii_test.go ├── majority-element │ ├── README.md │ ├── majority_element.go │ └── majority_element_test.go ├── make-array-strictly-increasing │ └── README.md ├── make-sum-divisible-by-p │ └── README.md ├── make-the-string-great │ └── README.md ├── make-the-xor-of-all-segments-equal-to-zero │ └── README.md ├── make-two-arrays-equal-by-reversing-sub-arrays │ └── README.md ├── making-a-large-island │ ├── README.md │ ├── making_a_large_island.go │ └── making_a_large_island_test.go ├── making-file-names-unique │ └── README.md ├── managers-with-at-least-5-direct-reports │ ├── README.md │ ├── managers_with_at_least_5_direct_reports.sql │ └── mysql_schemas.sql ├── map-of-highest-peak │ └── README.md ├── map-sum-pairs │ ├── README.md │ ├── map_sum_pairs.go │ └── map_sum_pairs_test.go ├── market-analysis-i │ ├── README.md │ └── mysql_schemas.sql ├── market-analysis-ii │ ├── README.md │ └── mysql_schemas.sql ├── masking-personal-information │ ├── README.md │ ├── masking_personal_information.go │ └── masking_personal_information_test.go ├── matchsticks-to-square │ ├── README.md │ ├── matchsticks_to_square.go │ └── matchsticks_to_square_test.go ├── matrix-block-sum │ └── README.md ├── matrix-cells-in-distance-order │ ├── README.md │ └── matrix_cells_in_distance_order.go ├── matrix-diagonal-sum │ └── README.md ├── max-area-of-island │ ├── README.md │ ├── max_area_of_island.go │ └── max_area_of_island_test.go ├── max-chunks-to-make-sorted-ii │ ├── README.md │ ├── max_chunks_to_make_sorted_ii.go │ └── max_chunks_to_make_sorted_ii_test.go ├── max-chunks-to-make-sorted │ ├── README.md │ ├── max_chunks_to_make_sorted.go │ └── max_chunks_to_make_sorted_test.go ├── max-consecutive-ones-ii │ ├── README.md │ ├── max_consecutive_ones_ii.go │ └── max_consecutive_ones_ii_test.go ├── max-consecutive-ones-iii │ ├── README.md │ └── max_consecutive_ones_iii.go ├── max-consecutive-ones │ ├── README.md │ ├── max_consecutive_ones.go │ └── max_consecutive_ones_test.go ├── max-difference-you-can-get-from-changing-an-integer │ └── README.md ├── max-dot-product-of-two-subsequences │ └── README.md ├── max-increase-to-keep-city-skyline │ ├── README.md │ ├── max_increase_to_keep_city_skyline.go │ └── max_increase_to_keep_city_skyline_test.go ├── max-number-of-k-sum-pairs │ └── README.md ├── max-points-on-a-line │ ├── README.md │ ├── max_points_on_a_line.go │ └── max_points_on_a_line_test.go ├── max-stack │ ├── README.md │ ├── max_stack.go │ └── max_stack_test.go ├── max-sum-of-rectangle-no-larger-than-k │ ├── README.md │ ├── max_sum_of_rectangle_no_larger_than_k.go │ └── max_sum_of_rectangle_no_larger_than_k_test.go ├── max-value-of-equation │ └── README.md ├── maximal-network-rank │ └── README.md ├── maximal-rectangle │ ├── README.md │ ├── maximal_rectangle.go │ └── maximal_rectangle_test.go ├── maximal-square │ ├── README.md │ ├── maximal_square.go │ └── maximal_square_test.go ├── maximize-distance-to-closest-person │ ├── README.md │ ├── maximize_distance_to_closest_person.go │ └── maximize_distance_to_closest_person_test.go ├── maximize-grid-happiness │ └── README.md ├── maximize-number-of-nice-divisors │ └── README.md ├── maximize-palindrome-length-from-subsequences │ └── README.md ├── maximize-score-after-n-operations │ └── README.md ├── maximize-sum-of-array-after-k-negations │ ├── README.md │ ├── maximize_sum_of_array_after_k_negations.go │ └── maximize_sum_of_array_after_k_negations_test.go ├── maximize-the-beauty-of-the-garden │ └── README.md ├── maximize-the-confusion-of-an-exam │ └── README.md ├── maximum-69-number │ └── README.md ├── maximum-absolute-sum-of-any-subarray │ └── README.md ├── maximum-alternating-subarray-sum │ └── README.md ├── maximum-alternating-subsequence-sum │ └── README.md ├── maximum-and-sum-of-array │ └── README.md ├── maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts │ └── README.md ├── maximum-ascending-subarray-sum │ └── README.md ├── maximum-average-pass-ratio │ └── README.md ├── maximum-average-subarray-i │ ├── README.md │ ├── maximum_average_subarray_i.go │ └── maximum_average_subarray_i_test.go ├── maximum-average-subarray-ii │ ├── README.md │ ├── maximum_average_subarray_ii.go │ └── maximum_average_subarray_ii_test.go ├── maximum-average-subtree │ └── README.md ├── maximum-binary-string-after-change │ └── README.md ├── maximum-binary-tree-ii │ ├── README.md │ └── maximum_binary_tree_ii.go ├── maximum-binary-tree │ ├── README.md │ ├── maximum_binary_tree.go │ └── maximum_binary_tree_test.go ├── maximum-building-height │ └── README.md ├── maximum-candies-you-can-get-from-boxes │ └── README.md ├── maximum-compatibility-score-sum │ └── README.md ├── maximum-depth-of-binary-tree │ ├── README.md │ ├── maximum_depth_of_binary_tree.go │ └── maximum_depth_of_binary_tree_test.go ├── maximum-depth-of-n-ary-tree │ ├── README.md │ ├── maximum_depth_of_n_ary_tree.go │ ├── maximum_depth_of_n_ary_tree.py │ └── maximum_depth_of_n_ary_tree_test.go ├── maximum-difference-between-increasing-elements │ └── README.md ├── maximum-difference-between-node-and-ancestor │ └── README.md ├── maximum-distance-between-a-pair-of-values │ └── README.md ├── maximum-distance-in-arrays │ ├── README.md │ ├── maximum_distance_in_arrays.go │ └── maximum_distance_in_arrays_test.go ├── maximum-earnings-from-taxi │ └── README.md ├── maximum-element-after-decreasing-and-rearranging │ └── README.md ├── maximum-employees-to-be-invited-to-a-meeting │ └── README.md ├── maximum-equal-frequency │ └── README.md ├── maximum-erasure-value │ └── README.md ├── maximum-font-to-fit-a-sentence-in-a-screen │ └── README.md ├── maximum-frequency-stack │ ├── README.md │ ├── maximum_frequency_stack.go │ └── maximum_frequency_stack_test.go ├── maximum-fruits-harvested-after-at-most-k-steps │ └── README.md ├── maximum-gap │ ├── README.md │ ├── maximum_gap.go │ └── maximum_gap_test.go ├── maximum-genetic-difference-query │ └── README.md ├── maximum-good-people-based-on-statements │ └── README.md ├── maximum-height-by-stacking-cuboids │ └── README.md ├── maximum-ice-cream-bars │ └── README.md ├── maximum-length-of-a-concatenated-string-with-unique-characters │ └── README.md ├── maximum-length-of-pair-chain │ ├── README.md │ ├── maximum_length_of_pair_chain.go │ └── maximum_length_of_pair_chain_test.go ├── maximum-length-of-repeated-subarray │ ├── README.md │ ├── maximum_length_of_repeated_subarray.go │ └── maximum_length_of_repeated_subarray_test.go ├── maximum-length-of-subarray-with-positive-product │ └── README.md ├── maximum-level-sum-of-a-binary-tree │ └── README.md ├── maximum-matrix-sum │ └── README.md ├── maximum-nesting-depth-of-the-parentheses │ └── README.md ├── maximum-nesting-depth-of-two-valid-parentheses-strings │ ├── README.md │ └── maximum_nesting_depth_of_two_valid_parentheses_strings.go ├── maximum-non-negative-product-in-a-matrix │ └── README.md ├── maximum-number-of-accepted-invitations │ └── README.md ├── maximum-number-of-achievable-transfer-requests │ └── README.md ├── maximum-number-of-balloons │ ├── README.md │ ├── maximum_number_of_balloons.go │ └── maximum_number_of_balloons_test.go ├── maximum-number-of-balls-in-a-box │ └── README.md ├── maximum-number-of-coins-you-can-get │ └── README.md ├── maximum-number-of-consecutive-values-you-can-make │ └── README.md ├── maximum-number-of-darts-inside-of-a-circular-dartboard │ └── README.md ├── maximum-number-of-eaten-apples │ └── README.md ├── maximum-number-of-events-that-can-be-attended-ii │ └── README.md ├── maximum-number-of-events-that-can-be-attended │ └── README.md ├── maximum-number-of-groups-getting-fresh-donuts │ └── README.md ├── maximum-number-of-non-overlapping-subarrays-with-sum-equals-target │ └── README.md ├── maximum-number-of-non-overlapping-substrings │ └── README.md ├── maximum-number-of-occurrences-of-a-substring │ └── README.md ├── maximum-number-of-ones │ └── README.md ├── maximum-number-of-people-that-can-be-caught-in-tag │ └── README.md ├── maximum-number-of-points-with-cost │ └── README.md ├── maximum-number-of-removable-characters │ └── README.md ├── maximum-number-of-tasks-you-can-assign │ └── README.md ├── maximum-number-of-visible-points │ └── README.md ├── maximum-number-of-vowels-in-a-substring-of-given-length │ └── README.md ├── maximum-number-of-ways-to-partition-an-array │ └── README.md ├── maximum-number-of-weeks-for-which-you-can-work │ └── README.md ├── maximum-number-of-words-found-in-sentences │ └── README.md ├── maximum-number-of-words-you-can-type │ └── README.md ├── maximum-of-absolute-value-expression │ └── README.md ├── maximum-of-minimum-values-in-all-subarrays │ └── README.md ├── maximum-path-quality-of-a-graph │ └── README.md ├── maximum-performance-of-a-team │ └── README.md ├── maximum-points-you-can-obtain-from-cards │ └── README.md ├── maximum-population-year │ └── README.md ├── maximum-product-difference-between-two-pairs │ └── README.md ├── maximum-product-of-splitted-binary-tree │ └── README.md ├── maximum-product-of-the-length-of-two-palindromic-subsequences │ └── README.md ├── maximum-product-of-the-length-of-two-palindromic-substrings │ └── README.md ├── maximum-product-of-three-numbers │ ├── README.md │ ├── maximum_product_of_three_numbers.go │ └── maximum_product_of_three_numbers_test.go ├── maximum-product-of-two-elements-in-an-array │ └── README.md ├── maximum-product-of-word-lengths │ ├── README.md │ ├── maximum_product_of_word_lengths.go │ └── maximum_product_of_word_lengths_test.go ├── maximum-product-subarray │ ├── README.md │ ├── maximum_product_subarray.go │ └── maximum_product_subarray_test.go ├── maximum-profit-in-job-scheduling │ └── README.md ├── maximum-profit-of-operating-a-centennial-wheel │ └── README.md ├── maximum-repeating-substring │ └── README.md ├── maximum-running-time-of-n-computers │ └── README.md ├── maximum-score-after-splitting-a-string │ ├── README.md │ ├── maximum_score_after_splitting_a_string.go │ └── maximum_score_after_splitting_a_string_test.go ├── maximum-score-from-performing-multiplication-operations │ └── README.md ├── maximum-score-from-removing-stones │ └── README.md ├── maximum-score-from-removing-substrings │ └── README.md ├── maximum-score-of-a-good-subarray │ └── README.md ├── maximum-score-words-formed-by-letters │ └── README.md ├── maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold │ └── README.md ├── maximum-size-subarray-sum-equals-k │ ├── README.md │ ├── maximum_size_subarray_sum_equals_k.go │ └── maximum_size_subarray_sum_equals_k_test.go ├── maximum-students-taking-exam │ └── README.md ├── maximum-subarray-min-product │ └── README.md ├── maximum-subarray-sum-after-one-operation │ └── README.md ├── maximum-subarray-sum-with-one-deletion │ └── README.md ├── maximum-subarray │ ├── README.md │ ├── maximum_subarray.go │ └── maximum_subarray_test.go ├── maximum-sum-bst-in-binary-tree │ └── README.md ├── maximum-sum-circular-subarray │ ├── README.md │ ├── maximum_sum_circular_subarray.go │ └── maximum_sum_circular_subarray_test.go ├── maximum-sum-obtained-of-any-permutation │ └── README.md ├── maximum-sum-of-3-non-overlapping-subarrays │ ├── README.md │ ├── maximum_sum_of_3_non_overlapping_subarrays.go │ └── maximum_sum_of_3_non_overlapping_subarrays_test.go ├── maximum-sum-of-two-non-overlapping-subarrays │ ├── README.md │ └── maximum_sum_of_two_non_overlapping_subarrays.go ├── maximum-swap │ ├── README.md │ ├── maximum_swap.go │ └── maximum_swap_test.go ├── maximum-transaction-each-day │ ├── README.md │ └── mysql_schemas.sql ├── maximum-twin-sum-of-a-linked-list │ └── README.md ├── maximum-units-on-a-truck │ └── README.md ├── maximum-vacation-days │ ├── README.md │ ├── maximum_vacation_days.go │ └── maximum_vacation_days_test.go ├── maximum-value-after-insertion │ └── README.md ├── maximum-value-at-a-given-index-in-a-bounded-array │ └── README.md ├── maximum-width-of-binary-tree │ ├── README.md │ ├── maximum_width_of_binary_tree.go │ └── maximum_width_of_binary_tree_test.go ├── maximum-width-ramp │ ├── README.md │ └── maximum_width_ramp.go ├── maximum-xor-for-each-query │ └── README.md ├── maximum-xor-of-two-numbers-in-an-array │ ├── README.md │ ├── maximum_xor_of_two_numbers_in_an_array.go │ └── maximum_xor_of_two_numbers_in_an_array_test.go ├── maximum-xor-with-an-element-from-array │ └── README.md ├── mean-of-array-after-removing-some-elements │ └── README.md ├── median-employee-salary │ ├── README.md │ ├── median_employee_salary.sql │ └── mysql_schemas.sql ├── median-of-two-sorted-arrays │ ├── README.md │ ├── median_of_two_sorted_arrays.go │ └── median_of_two_sorted_arrays_test.go ├── meeting-rooms-ii │ ├── README.md │ ├── meeting_rooms_ii.go │ └── meeting_rooms_ii_test.go ├── meeting-rooms │ ├── README.md │ ├── meeting_rooms.go │ └── meeting_rooms_test.go ├── meeting-scheduler │ └── README.md ├── merge-bsts-to-create-single-bst │ └── README.md ├── merge-in-between-linked-lists │ └── README.md ├── merge-intervals │ ├── README.md │ ├── merge_intervals.go │ └── merge_intervals_test.go ├── merge-k-sorted-lists │ ├── README.md │ ├── merge_k_sorted_lists.go │ └── merge_k_sorted_lists_test.go ├── merge-sorted-array │ ├── README.md │ ├── merge_sorted_array.go │ └── merge_sorted_array_test.go ├── merge-strings-alternately │ └── README.md ├── merge-triplets-to-form-target-triplet │ └── README.md ├── merge-two-binary-trees │ ├── README.md │ ├── merge_two_binary_trees.go │ └── merge_two_binary_trees_test.go ├── merge-two-sorted-lists │ ├── README.md │ ├── merge_two_sorted_lists.go │ └── merge_two_sorted_lists_test.go ├── middle-of-the-linked-list │ ├── README.md │ ├── middle_of_the_linked_list.go │ └── middle_of_the_linked_list_test.go ├── min-cost-climbing-stairs │ ├── README.md │ ├── min_cost_climbing_stairs.go │ └── min_cost_climbing_stairs_test.go ├── min-cost-to-connect-all-points │ └── README.md ├── min-stack │ ├── README.md │ ├── min_stack.go │ └── min_stack_test.go ├── minesweeper │ ├── README.md │ ├── minesweeper.go │ └── minesweeper_test.go ├── mini-parser │ ├── README.md │ ├── mini_parser.go │ └── mini_parser_test.go ├── minimize-deviation-in-array │ └── README.md ├── minimize-hamming-distance-after-swap-operations │ └── README.md ├── minimize-malware-spread-ii │ ├── README.md │ ├── minimize_malware_spread_ii.go │ └── minimize_malware_spread_ii_test.go ├── minimize-malware-spread │ ├── README.md │ ├── minimize_malware_spread.go │ └── minimize_malware_spread_test.go ├── minimize-max-distance-to-gas-station │ ├── README.md │ ├── minimize_max_distance_to_gas_station.go │ └── minimize_max_distance_to_gas_station_test.go ├── minimize-maximum-pair-sum-in-array │ └── README.md ├── minimize-product-sum-of-two-arrays │ └── README.md ├── minimize-rounding-error-to-meet-target │ └── README.md ├── minimize-the-difference-between-target-and-chosen-elements │ └── README.md ├── minimized-maximum-of-products-distributed-to-any-store │ └── README.md ├── minimum-absolute-difference-in-bst │ ├── README.md │ ├── minimum_absolute_difference_in_bst.go │ └── minimum_absolute_difference_in_bst_test.go ├── minimum-absolute-difference-queries │ └── README.md ├── minimum-absolute-difference │ └── README.md ├── minimum-absolute-sum-difference │ └── README.md ├── minimum-add-to-make-parentheses-valid │ ├── README.md │ ├── minimum_add_to_make_parentheses_valid.go │ └── minimum_add_to_make_parentheses_valid_test.go ├── minimum-adjacent-swaps-for-k-consecutive-ones │ └── README.md ├── minimum-adjacent-swaps-to-reach-the-kth-smallest-number │ └── README.md ├── minimum-area-rectangle-ii │ ├── README.md │ └── minimum_area_rectangle_ii.go ├── minimum-area-rectangle │ ├── README.md │ ├── minimum_area_rectangle.go │ └── minimum_area_rectangle_test.go ├── minimum-ascii-delete-sum-for-two-strings │ ├── README.md │ ├── minimum_ascii_delete_sum_for_two_strings.go │ └── minimum_ascii_delete_sum_for_two_strings_test.go ├── minimum-changes-to-make-alternating-binary-string │ └── README.md ├── minimum-cost-for-tickets │ ├── README.md │ └── minimum_cost_for_tickets.go ├── minimum-cost-homecoming-of-a-robot-in-a-grid │ └── README.md ├── minimum-cost-of-buying-candies-with-discount │ └── README.md ├── minimum-cost-to-change-the-final-value-of-expression │ └── README.md ├── minimum-cost-to-connect-sticks │ └── README.md ├── minimum-cost-to-connect-two-groups-of-points │ └── README.md ├── minimum-cost-to-cut-a-stick │ └── README.md ├── minimum-cost-to-hire-k-workers │ ├── README.md │ ├── minimum_cost_to_hire_k_workers.go │ └── minimum_cost_to_hire_k_workers_test.go ├── minimum-cost-to-make-at-least-one-valid-path-in-a-grid │ └── README.md ├── minimum-cost-to-merge-stones │ ├── README.md │ └── minimum_cost_to_merge_stones.go ├── minimum-cost-to-move-chips-to-the-same-position │ └── README.md ├── minimum-cost-to-reach-city-with-discounts │ └── README.md ├── minimum-cost-to-reach-destination-in-time │ └── README.md ├── minimum-cost-to-separate-sentence-into-rows │ └── README.md ├── minimum-cost-to-set-cooking-time │ └── README.md ├── minimum-cost-tree-from-leaf-values │ └── README.md ├── minimum-degree-of-a-connected-trio-in-a-graph │ └── README.md ├── minimum-deletion-cost-to-avoid-repeating-letters │ └── README.md ├── minimum-deletions-to-make-character-frequencies-unique │ └── README.md ├── minimum-deletions-to-make-string-balanced │ └── README.md ├── minimum-depth-of-binary-tree │ ├── README.md │ ├── minimum_depth_of_binary_tree.go │ └── minimum_depth_of_binary_tree_test.go ├── minimum-difference-between-highest-and-lowest-of-k-scores │ └── README.md ├── minimum-difference-between-largest-and-smallest-value-in-three-moves │ └── README.md ├── minimum-difference-in-sums-after-removal-of-elements │ └── README.md ├── minimum-difficulty-of-a-job-schedule │ └── README.md ├── minimum-distance-between-bst-nodes │ ├── README.md │ ├── minimum_distance_between_bst_nodes.go │ └── minimum_distance_between_bst_nodes_test.go ├── minimum-distance-to-the-target-element │ └── README.md ├── minimum-distance-to-type-a-word-using-two-fingers │ └── README.md ├── minimum-domino-rotations-for-equal-row │ ├── README.md │ └── minimum_domino_rotations_for_equal_row.go ├── minimum-elements-to-add-to-form-a-given-sum │ └── README.md ├── minimum-factorization │ ├── README.md │ ├── minimum_factorization.go │ └── minimum_factorization_test.go ├── minimum-falling-path-sum-ii │ └── README.md ├── minimum-falling-path-sum │ ├── README.md │ ├── minimum_falling_path_sum.go │ └── minimum_falling_path_sum_test.go ├── minimum-flips-to-make-a-or-b-equal-to-c │ └── README.md ├── minimum-garden-perimeter-to-collect-enough-apples │ └── README.md ├── minimum-genetic-mutation │ ├── README.md │ ├── minimum_genetic_mutation.go │ └── minimum_genetic_mutation_test.go ├── minimum-height-trees │ ├── README.md │ ├── minimum_height_trees.go │ └── minimum_height_trees_test.go ├── minimum-incompatibility │ └── README.md ├── minimum-increment-to-make-array-unique │ ├── README.md │ ├── minimum_increment_to_make_array_unique.go │ └── minimum_increment_to_make_array_unique_test.go ├── minimum-index-sum-of-two-lists │ ├── README.md │ ├── minimum_index_sum_of_two_lists.go │ └── minimum_index_sum_of_two_lists_test.go ├── minimum-initial-energy-to-finish-tasks │ └── README.md ├── minimum-insertion-steps-to-make-a-string-palindrome │ └── README.md ├── minimum-insertions-to-balance-a-parentheses-string │ └── README.md ├── minimum-interval-to-include-each-query │ └── README.md ├── minimum-jumps-to-reach-home │ └── README.md ├── minimum-knight-moves │ └── README.md ├── minimum-length-of-string-after-deleting-similar-ends │ └── README.md ├── minimum-limit-of-balls-in-a-bag │ └── README.md ├── minimum-moves-to-convert-string │ └── README.md ├── minimum-moves-to-equal-array-elements-ii │ ├── README.md │ ├── minimum_moves_to_equal_array_elements_ii.go │ └── minimum_moves_to_equal_array_elements_ii_test.go ├── minimum-moves-to-equal-array-elements │ ├── README.md │ ├── minimum_moves_to_equal_array_elements.go │ └── minimum_moves_to_equal_array_elements_test.go ├── minimum-moves-to-make-array-complementary │ └── README.md ├── minimum-moves-to-move-a-box-to-their-target-location │ └── README.md ├── minimum-moves-to-reach-target-score │ └── README.md ├── minimum-moves-to-reach-target-with-rotations │ └── README.md ├── minimum-non-zero-product-of-the-array-elements │ └── README.md ├── minimum-number-of-arrows-to-burst-balloons │ ├── README.md │ ├── minimum_number_of_arrows_to_burst_balloons.go │ └── minimum_number_of_arrows_to_burst_balloons_test.go ├── minimum-number-of-buckets-required-to-collect-rainwater-from-houses │ └── README.md ├── minimum-number-of-days-to-disconnect-island │ └── README.md ├── minimum-number-of-days-to-eat-n-oranges │ └── README.md ├── minimum-number-of-days-to-make-m-bouquets │ └── README.md ├── minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix │ └── README.md ├── minimum-number-of-flips-to-make-the-binary-string-alternating │ └── README.md ├── minimum-number-of-frogs-croaking │ └── README.md ├── minimum-number-of-increments-on-subarrays-to-form-a-target-array │ └── README.md ├── minimum-number-of-k-consecutive-bit-flips │ ├── README.md │ └── minimum_number_of_k_consecutive_bit_flips.go ├── minimum-number-of-lines-to-cover-points │ └── README.md ├── minimum-number-of-moves-to-seat-everyone │ └── README.md ├── minimum-number-of-operations-to-make-array-continuous │ └── README.md ├── minimum-number-of-operations-to-make-string-sorted │ └── README.md ├── minimum-number-of-operations-to-move-all-balls-to-each-box │ └── README.md ├── minimum-number-of-operations-to-reinitialize-a-permutation │ └── README.md ├── minimum-number-of-people-to-teach │ └── README.md ├── minimum-number-of-refueling-stops │ ├── README.md │ ├── minimum_number_of_refueling_stops.go │ └── minimum_number_of_refueling_stops_test.go ├── minimum-number-of-removals-to-make-mountain-array │ └── README.md ├── minimum-number-of-steps-to-make-two-strings-anagram │ └── README.md ├── minimum-number-of-swaps-to-make-the-binary-string-alternating │ └── README.md ├── minimum-number-of-swaps-to-make-the-string-balanced │ └── README.md ├── minimum-number-of-taps-to-open-to-water-a-garden │ └── README.md ├── minimum-number-of-vertices-to-reach-all-nodes │ └── README.md ├── minimum-number-of-work-sessions-to-finish-the-tasks │ └── README.md ├── minimum-numbers-of-function-calls-to-make-target-array │ └── README.md ├── minimum-one-bit-operations-to-make-integers-zero │ └── README.md ├── minimum-operations-to-convert-number │ └── README.md ├── minimum-operations-to-make-a-subsequence │ └── README.md ├── minimum-operations-to-make-a-uni-value-grid │ └── README.md ├── minimum-operations-to-make-array-equal │ └── README.md ├── minimum-operations-to-make-the-array-alternating │ └── README.md ├── minimum-operations-to-make-the-array-increasing │ └── README.md ├── minimum-operations-to-make-the-array-k-increasing │ └── README.md ├── minimum-operations-to-reduce-x-to-zero │ └── README.md ├── minimum-operations-to-remove-adjacent-ones-in-matrix │ └── README.md ├── minimum-path-cost-in-a-hidden-grid │ └── README.md ├── minimum-path-sum │ ├── README.md │ ├── minimum_path_sum.go │ └── minimum_path_sum_test.go ├── minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits │ └── README.md ├── minimum-remove-to-make-valid-parentheses │ └── README.md ├── minimum-score-triangulation-of-polygon │ ├── README.md │ └── minimum_score_triangulation_of_polygon.go ├── minimum-sideway-jumps │ └── README.md ├── minimum-size-subarray-sum │ ├── README.md │ ├── minimum_size_subarray_sum.go │ └── minimum_size_subarray_sum_test.go ├── minimum-skips-to-arrive-at-meeting-on-time │ └── README.md ├── minimum-space-wasted-from-packaging │ └── README.md ├── minimum-speed-to-arrive-on-time │ └── README.md ├── minimum-subsequence-in-non-increasing-order │ └── README.md ├── minimum-suffix-flips │ └── README.md ├── minimum-sum-of-four-digit-number-after-splitting-digits │ └── README.md ├── minimum-swaps-to-arrange-a-binary-grid │ └── README.md ├── minimum-swaps-to-group-all-1s-together-ii │ └── README.md ├── minimum-swaps-to-group-all-1s-together │ └── README.md ├── minimum-swaps-to-make-sequences-increasing │ ├── README.md │ ├── minimum_swaps_to_make_sequences_increasing.go │ └── minimum_swaps_to_make_sequences_increasing_test.go ├── minimum-swaps-to-make-strings-equal │ └── README.md ├── minimum-time-difference │ ├── README.md │ ├── minimum_time_difference.go │ └── minimum_time_difference_test.go ├── minimum-time-for-k-virus-variants-to-spread │ └── README.md ├── minimum-time-to-build-blocks │ └── README.md ├── minimum-time-to-collect-all-apples-in-a-tree │ └── README.md ├── minimum-time-to-make-rope-colorful │ └── README.md ├── minimum-time-to-remove-all-cars-containing-illegal-goods │ └── README.md ├── minimum-time-to-type-word-using-special-typewriter │ └── README.md ├── minimum-time-visiting-all-points │ └── README.md ├── minimum-total-space-wasted-with-k-resizing-operations │ └── README.md ├── minimum-unique-word-abbreviation │ ├── README.md │ ├── minimum_unique_word_abbreviation.go │ └── minimum_unique_word_abbreviation_test.go ├── minimum-value-to-get-positive-step-by-step-sum │ └── README.md ├── minimum-window-subsequence │ ├── README.md │ ├── minimum_window_subsequence.go │ └── minimum_window_subsequence_test.go ├── minimum-window-substring │ ├── README.md │ ├── minimum_window_substring.go │ └── minimum_window_substring_test.go ├── minimum-xor-sum-of-two-arrays │ └── README.md ├── mirror-reflection │ ├── README.md │ ├── mirror_reflection.go │ └── mirror_reflection_test.go ├── missing-element-in-sorted-array │ └── README.md ├── missing-number-in-arithmetic-progression │ └── README.md ├── missing-number │ ├── README.md │ ├── missing_number.go │ └── missing_number_test.go ├── missing-ranges │ ├── README.md │ ├── missing_ranges.go │ └── missing_ranges_test.go ├── monotone-increasing-digits │ ├── README.md │ ├── monotone_increasing_digits.go │ └── monotone_increasing_digits_test.go ├── monotonic-array │ ├── README.md │ ├── monotonic_array.go │ └── monotonic_array_test.go ├── monthly-transactions-i │ ├── README.md │ └── mysql_schemas.sql ├── monthly-transactions-ii │ ├── README.md │ └── mysql_schemas.sql ├── most-beautiful-item-for-each-query │ └── README.md ├── most-common-word │ ├── README.md │ ├── most_common_word.go │ └── most_common_word_test.go ├── most-frequent-subtree-sum │ ├── README.md │ ├── most_frequent_subtree_sum.go │ └── most_frequent_subtree_sum_test.go ├── most-profit-assigning-work │ ├── README.md │ ├── most_profit_assigning_work.go │ └── most_profit_assigning_work_test.go ├── most-stones-removed-with-same-row-or-column │ ├── README.md │ ├── most_stones_removed_with_same_row_or_column.go │ └── most_stones_removed_with_same_row_or_column_test.go ├── most-visited-sector-in-a-circular-track │ └── README.md ├── move-sub-tree-of-n-ary-tree │ └── README.md ├── move-zeroes │ ├── README.md │ ├── move_zeroes.go │ └── move_zeroes_test.go ├── movie-rating │ ├── README.md │ └── mysql_schemas.sql ├── moving-average-from-data-stream │ ├── README.md │ ├── moving_average_from_data_stream.go │ └── moving_average_from_data_stream_test.go ├── moving-stones-until-consecutive-ii │ ├── README.md │ └── moving_stones_until_consecutive_ii.go ├── moving-stones-until-consecutive │ ├── README.md │ └── moving_stones_until_consecutive.go ├── multiply-strings │ ├── README.md │ ├── multiply_strings.go │ └── multiply_strings_test.go ├── my-calendar-i │ ├── README.md │ ├── my_calendar_i.go │ └── my_calendar_i_test.go ├── my-calendar-ii │ ├── README.md │ ├── my_calendar_ii.go │ └── my_calendar_ii_test.go ├── my-calendar-iii │ ├── README.md │ ├── my_calendar_iii.go │ └── my_calendar_iii_test.go ├── n-ary-tree-level-order-traversal │ ├── README.md │ ├── n_ary_tree_level_order_traversal.go │ ├── n_ary_tree_level_order_traversal.py │ └── n_ary_tree_level_order_traversal_test.go ├── n-ary-tree-postorder-traversal │ ├── README.md │ ├── n_ary_tree_postorder_traversal.go │ ├── n_ary_tree_postorder_traversal.py │ └── n_ary_tree_postorder_traversal_test.go ├── n-ary-tree-preorder-traversal │ ├── README.md │ ├── n_ary_tree_preorder_traversal.go │ ├── n_ary_tree_preorder_traversal.py │ └── n_ary_tree_preorder_traversal_test.go ├── n-queens-ii │ ├── README.md │ ├── n_queens_ii.go │ └── n_queens_ii_test.go ├── n-queens │ ├── README.md │ ├── n_queens.go │ └── n_queens_test.go ├── n-repeated-element-in-size-2n-array │ ├── README.md │ ├── n_repeated_element_in_size_2n_array.go │ └── n_repeated_element_in_size_2n_array_test.go ├── n-th-tribonacci-number │ └── README.md ├── nearest-exit-from-entrance-in-maze │ └── README.md ├── nested-list-weight-sum-ii │ ├── README.md │ ├── nested_list_weight_sum_ii.go │ └── nested_list_weight_sum_ii_test.go ├── nested-list-weight-sum │ ├── README.md │ ├── nested_list_weight_sum.go │ └── nested_list_weight_sum_test.go ├── network-delay-time │ ├── README.md │ ├── network_delay_time.go │ └── network_delay_time_test.go ├── new-21-game │ ├── README.md │ ├── new_21_game.go │ └── new_21_game_test.go ├── new-users-daily-count │ ├── README.md │ ├── mysql_schemas.sql │ └── new_users_daily_count.sql ├── next-closest-time │ ├── README.md │ ├── next_closest_time.go │ └── next_closest_time_test.go ├── next-greater-element-i │ ├── README.md │ ├── next_greater_element_i.go │ └── next_greater_element_i_test.go ├── next-greater-element-ii │ ├── README.md │ ├── next_greater_element_ii.go │ └── next_greater_element_ii_test.go ├── next-greater-element-iii │ ├── README.md │ ├── next_greater_element_iii.go │ └── next_greater_element_iii_test.go ├── next-greater-node-in-linked-list │ └── README.md ├── next-greater-numerically-balanced-number │ └── README.md ├── next-palindrome-using-same-digits │ └── README.md ├── next-permutation │ ├── README.md │ ├── next_permutation.go │ └── next_permutation_test.go ├── nim-game │ ├── README.md │ ├── nim_game.go │ └── nim_game_test.go ├── non-decreasing-array │ ├── README.md │ ├── non_decreasing_array.go │ └── non_decreasing_array_test.go ├── non-negative-integers-without-consecutive-ones │ ├── README.md │ ├── non_negative_integers_without_consecutive_ones.go │ └── non_negative_integers_without_consecutive_ones_test.go ├── non-overlapping-intervals │ ├── README.md │ ├── non_overlapping_intervals.go │ └── non_overlapping_intervals_test.go ├── not-boring-movies │ ├── README.md │ ├── mysql_schemas.sql │ └── not_boring_movies.sql ├── npv-queries │ ├── README.md │ └── mysql_schemas.sql ├── nth-digit │ ├── README.md │ ├── nth_digit.go │ └── nth_digit_test.go ├── nth-highest-salary │ ├── README.md │ ├── mysql_schemas.sql │ └── nth_highest_salary.sql ├── nth-magical-number │ ├── README.md │ ├── nth_magical_number.go │ └── nth_magical_number_test.go ├── number-complement │ ├── README.md │ ├── number_complement.go │ └── number_complement_test.go ├── number-of-1-bits │ ├── README.md │ ├── number_of_1_bits.go │ └── number_of_1_bits_test.go ├── number-of-accounts-that-did-not-stream │ ├── README.md │ └── mysql_schemas.sql ├── number-of-atoms │ ├── README.md │ ├── number_of_atoms.go │ └── number_of_atoms_test.go ├── number-of-boomerangs │ ├── README.md │ ├── number_of_boomerangs.go │ └── number_of_boomerangs_test.go ├── number-of-burgers-with-no-waste-of-ingredients │ └── README.md ├── number-of-calls-between-two-persons │ ├── README.md │ └── mysql_schemas.sql ├── number-of-closed-islands │ └── README.md ├── number-of-comments-per-post │ ├── README.md │ └── mysql_schemas.sql ├── number-of-connected-components-in-an-undirected-graph │ ├── README.md │ ├── number_of_connected_components_in_an_undirected_graph.go │ └── number_of_connected_components_in_an_undirected_graph_test.go ├── number-of-corner-rectangles │ ├── README.md │ ├── number_of_corner_rectangles.go │ └── number_of_corner_rectangles_test.go ├── number-of-days-between-two-dates │ └── README.md ├── number-of-days-in-a-month │ └── README.md ├── number-of-dice-rolls-with-target-sum │ └── README.md ├── number-of-different-integers-in-a-string │ └── README.md ├── number-of-different-subsequences-gcds │ └── README.md ├── number-of-digit-one │ ├── README.md │ ├── number_of_digit_one.go │ └── number_of_digit_one_test.go ├── number-of-distinct-islands-ii │ ├── README.md │ ├── number_of_distinct_islands_ii.go │ └── number_of_distinct_islands_ii_test.go ├── number-of-distinct-islands │ ├── README.md │ ├── number_of_distinct_islands.go │ └── number_of_distinct_islands_test.go ├── number-of-distinct-substrings-in-a-string │ └── README.md ├── number-of-enclaves │ ├── README.md │ └── number_of_enclaves.go ├── number-of-equal-count-substrings │ └── README.md ├── number-of-equivalent-domino-pairs │ └── README.md ├── number-of-good-leaf-nodes-pairs │ └── README.md ├── number-of-good-pairs │ └── README.md ├── number-of-good-ways-to-split-a-string │ └── README.md ├── number-of-islands-ii │ ├── README.md │ ├── number_of_islands_ii.go │ └── number_of_islands_ii_test.go ├── number-of-islands │ ├── README.md │ ├── number_of_islands.go │ └── number_of_islands_test.go ├── number-of-laser-beams-in-a-bank │ └── README.md ├── number-of-lines-to-write-string │ ├── README.md │ ├── number_of_lines_to_write_string.go │ └── number_of_lines_to_write_string_test.go ├── number-of-longest-increasing-subsequence │ ├── README.md │ ├── number_of_longest_increasing_subsequence.go │ └── number_of_longest_increasing_subsequence_test.go ├── number-of-matching-subsequences │ ├── README.md │ ├── number_of_matching_subsequences.go │ └── number_of_matching_subsequences_test.go ├── number-of-music-playlists │ ├── README.md │ ├── number_of_music_playlists.go │ └── number_of_music_playlists_test.go ├── number-of-nodes-in-the-sub-tree-with-the-same-label │ └── README.md ├── number-of-operations-to-make-network-connected │ └── README.md ├── number-of-orders-in-the-backlog │ └── README.md ├── number-of-pairs-of-interchangeable-rectangles │ └── README.md ├── number-of-pairs-of-strings-with-concatenation-equal-to-target │ └── README.md ├── number-of-paths-with-max-score │ └── README.md ├── number-of-provinces │ └── README.md ├── number-of-recent-calls │ ├── README.md │ ├── number_of_recent_calls.go │ └── number_of_recent_calls_test.go ├── number-of-rectangles-that-can-form-the-largest-square │ └── README.md ├── number-of-restricted-paths-from-first-to-last-node │ └── README.md ├── number-of-segments-in-a-string │ ├── README.md │ ├── number_of_segments_in_a_string.go │ └── number_of_segments_in_a_string_test.go ├── number-of-sets-of-k-non-overlapping-line-segments │ └── README.md ├── number-of-ships-in-a-rectangle │ └── README.md ├── number-of-smooth-descent-periods-of-a-stock │ └── README.md ├── number-of-spaces-cleaning-robot-cleaned │ └── README.md ├── number-of-squareful-arrays │ ├── README.md │ └── number_of_squareful_arrays.go ├── number-of-steps-to-reduce-a-number-in-binary-representation-to-one │ └── README.md ├── number-of-steps-to-reduce-a-number-to-zero │ └── README.md ├── number-of-strings-that-appear-as-substrings-in-word │ └── README.md ├── number-of-students-doing-homework-at-a-given-time │ └── README.md ├── number-of-students-unable-to-eat-lunch │ └── README.md ├── number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold │ └── README.md ├── number-of-sub-arrays-with-odd-sum │ └── README.md ├── number-of-subarrays-with-bounded-maximum │ ├── README.md │ ├── number_of_subarrays_with_bounded_maximum.go │ └── number_of_subarrays_with_bounded_maximum_test.go ├── number-of-submatrices-that-sum-to-target │ ├── README.md │ └── number_of_submatrices_that_sum_to_target.go ├── number-of-subsequences-that-satisfy-the-given-sum-condition │ └── README.md ├── number-of-substrings-containing-all-three-characters │ └── README.md ├── number-of-substrings-with-only-1s │ └── README.md ├── number-of-transactions-per-visit │ ├── README.md │ └── mysql_schemas.sql ├── number-of-trusted-contacts-of-a-customer │ ├── README.md │ └── mysql_schemas.sql ├── number-of-unique-flavors-after-sharing-k-candies │ └── README.md ├── number-of-unique-good-subsequences │ └── README.md ├── number-of-valid-move-combinations-on-chessboard │ └── README.md ├── number-of-valid-subarrays │ └── README.md ├── number-of-valid-words-for-each-puzzle │ └── README.md ├── number-of-valid-words-in-a-sentence │ └── README.md ├── number-of-visible-people-in-a-queue │ └── README.md ├── number-of-ways-of-cutting-a-pizza │ └── README.md ├── number-of-ways-to-arrive-at-destination │ └── README.md ├── number-of-ways-to-divide-a-long-corridor │ └── README.md ├── number-of-ways-to-form-a-target-string-given-a-dictionary │ └── README.md ├── number-of-ways-to-paint-n-3-grid │ └── README.md ├── number-of-ways-to-rearrange-sticks-with-k-sticks-visible │ └── README.md ├── number-of-ways-to-reconstruct-a-tree │ └── README.md ├── number-of-ways-to-reorder-array-to-get-same-bst │ └── README.md ├── number-of-ways-to-separate-numbers │ └── README.md ├── number-of-ways-to-split-a-string │ └── README.md ├── number-of-ways-to-stay-in-the-same-place-after-some-steps │ └── README.md ├── number-of-ways-to-wear-different-hats-to-each-other │ └── README.md ├── number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers │ └── README.md ├── number-of-wonderful-substrings │ └── README.md ├── numbers-at-most-n-given-digit-set │ ├── README.md │ ├── numbers_at_most_n_given_digit_set.go │ └── numbers_at_most_n_given_digit_set_test.go ├── numbers-with-repeated-digits │ ├── README.md │ └── numbers_with_repeated_digits.go ├── numbers-with-same-consecutive-differences │ ├── README.md │ └── numbers_with_same_consecutive_differences.go ├── occurrences-after-bigram │ ├── README.md │ └── occurrences_after_bigram.go ├── odd-even-jump │ ├── README.md │ └── odd_even_jump.go ├── odd-even-linked-list │ ├── README.md │ ├── odd_even_linked_list.go │ └── odd_even_linked_list_test.go ├── one-edit-distance │ ├── README.md │ ├── one_edit_distance.go │ └── one_edit_distance_test.go ├── ones-and-zeroes │ ├── README.md │ ├── ones_and_zeroes.go │ └── ones_and_zeroes_test.go ├── online-election │ ├── README.md │ ├── online_election.go │ └── online_election_test.go ├── online-majority-element-in-subarray │ └── README.md ├── online-stock-span │ ├── README.md │ ├── online_stock_span.go │ └── online_stock_span_test.go ├── open-the-lock │ ├── README.md │ ├── open_the_lock.go │ └── open_the_lock_test.go ├── operations-on-tree │ └── README.md ├── optimal-account-balancing │ ├── README.md │ ├── optimal_account_balancing.go │ └── optimal_account_balancing_test.go ├── optimal-division │ ├── README.md │ ├── optimal_division.go │ └── optimal_division_test.go ├── optimize-water-distribution-in-a-village │ └── README.md ├── order-two-columns-independently │ ├── README.md │ └── mysql_schemas.sql ├── orderly-queue │ ├── README.md │ ├── orderly_queue.go │ └── orderly_queue_test.go ├── orders-with-maximum-quantity-above-average │ ├── README.md │ └── mysql_schemas.sql ├── out-of-boundary-paths │ ├── README.md │ ├── out_of_boundary_paths.go │ └── out_of_boundary_paths_test.go ├── output-contest-matches │ ├── README.md │ ├── output_contest_matches.go │ └── output_contest_matches_test.go ├── pacific-atlantic-water-flow │ ├── README.md │ ├── pacific_atlantic_water_flow.go │ └── pacific_atlantic_water_flow_test.go ├── page-recommendations-ii │ ├── README.md │ └── mysql_schemas.sql ├── page-recommendations │ ├── README.md │ └── mysql_schemas.sql ├── paint-fence │ ├── README.md │ ├── paint_fence.go │ └── paint_fence_test.go ├── paint-house-ii │ ├── README.md │ ├── paint_house_ii.go │ └── paint_house_ii_test.go ├── paint-house-iii │ └── README.md ├── paint-house │ ├── README.md │ ├── paint_house.go │ └── paint_house_test.go ├── painting-a-grid-with-three-different-colors │ └── README.md ├── pairs-of-songs-with-total-durations-divisible-by-60 │ ├── README.md │ ├── pairs_of_songs_with_total_durations_divisible_by_60.go │ └── pairs_of_songs_with_total_durations_divisible_by_60_test.go ├── palindrome-linked-list │ ├── README.md │ ├── palindrome_linked_list.go │ └── palindrome_linked_list_test.go ├── palindrome-number │ ├── README.md │ ├── palindrome_number.go │ └── palindrome_number_test.go ├── palindrome-pairs │ ├── README.md │ ├── palindrome_pairs.go │ └── palindrome_pairs_test.go ├── palindrome-partitioning-ii │ ├── README.md │ ├── palindrome_partitioning_ii.go │ └── palindrome_partitioning_ii_test.go ├── palindrome-partitioning-iii │ └── README.md ├── palindrome-partitioning-iv │ └── README.md ├── palindrome-partitioning │ ├── README.md │ ├── palindrome_partitioning.go │ └── palindrome_partitioning_test.go ├── palindrome-permutation-ii │ ├── README.md │ ├── palindrome_permutation_ii.go │ └── palindrome_permutation_ii_test.go ├── palindrome-permutation │ ├── README.md │ ├── palindrome_permutation.go │ └── palindrome_permutation_test.go ├── palindrome-removal │ └── README.md ├── palindromic-substrings │ ├── README.md │ ├── palindromic_substrings.go │ └── palindromic_substrings_test.go ├── pancake-sorting │ ├── README.md │ └── pancake_sorting.go ├── parallel-courses-ii │ └── README.md ├── parallel-courses-iii │ └── README.md ├── parallel-courses │ └── README.md ├── parse-lisp-expression │ ├── README.md │ ├── parse_lisp_expression.go │ └── parse_lisp_expression_test.go ├── parsing-a-boolean-expression │ ├── README.md │ └── parsing_a_boolean_expression.go ├── partition-array-according-to-given-pivot │ └── README.md ├── partition-array-for-maximum-sum │ ├── README.md │ └── partition_array_for_maximum_sum.go ├── partition-array-into-disjoint-intervals │ ├── README.md │ ├── partition_array_into_disjoint_intervals.go │ └── partition_array_into_disjoint_intervals_test.go ├── partition-array-into-three-parts-with-equal-sum │ ├── README.md │ ├── partition_array_into_three_parts_with_equal_sum.go │ └── partition_array_into_three_parts_with_equal_sum_test.go ├── partition-array-into-two-arrays-to-minimize-sum-difference │ └── README.md ├── partition-equal-subset-sum │ ├── README.md │ ├── partition_equal_subset_sum.go │ └── partition_equal_subset_sum_test.go ├── partition-labels │ ├── README.md │ ├── partition_labels.go │ └── partition_labels_test.go ├── partition-list │ ├── README.md │ ├── partition_list.go │ └── partition_list_test.go ├── partition-to-k-equal-sum-subsets │ ├── README.md │ ├── partition_to_k_equal_sum_subsets.go │ └── partition_to_k_equal_sum_subsets_test.go ├── partitioning-into-minimum-number-of-deci-binary-numbers │ └── README.md ├── pascals-triangle-ii │ ├── README.md │ ├── pascals_triangle_ii.go │ └── pascals_triangle_ii_test.go ├── pascals-triangle │ ├── README.md │ ├── pascals_triangle.go │ └── pascals_triangle_test.go ├── patching-array │ ├── README.md │ ├── patching_array.go │ └── patching_array_test.go ├── path-crossing │ └── README.md ├── path-in-zigzag-labelled-binary-tree │ ├── README.md │ └── path_in_zigzag_labelled_binary_tree.go ├── path-sum-ii │ ├── README.md │ ├── path_sum_ii.go │ └── path_sum_ii_test.go ├── path-sum-iii │ ├── README.md │ ├── path_sum_iii.go │ └── path_sum_iii_test.go ├── path-sum-iv │ ├── README.md │ ├── path_sum_iv.go │ └── path_sum_iv_test.go ├── path-sum │ ├── README.md │ ├── path_sum.go │ └── path_sum_test.go ├── path-with-maximum-gold │ └── README.md ├── path-with-maximum-minimum-value │ └── README.md ├── path-with-maximum-probability │ └── README.md ├── path-with-minimum-effort │ └── README.md ├── paths-in-maze-that-lead-to-same-room │ └── README.md ├── patients-with-a-condition │ ├── README.md │ └── mysql_schemas.sql ├── peak-index-in-a-mountain-array │ ├── README.md │ ├── peak_index_in_a_mountain_array.go │ └── peak_index_in_a_mountain_array_test.go ├── peeking-iterator │ ├── README.md │ ├── peeking_iterator.go │ ├── peeking_iterator.py │ └── peeking_iterator_test.go ├── people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list │ └── README.md ├── percentage-of-users-attended-a-contest │ ├── README.md │ └── mysql_schemas.sql ├── perfect-number │ ├── README.md │ ├── perfect_number.go │ └── perfect_number_test.go ├── perfect-rectangle │ ├── README.md │ ├── perfect_rectangle.go │ └── perfect_rectangle_test.go ├── perfect-squares │ ├── README.md │ ├── perfect_squares.go │ └── perfect_squares_test.go ├── perform-string-shifts │ └── README.md ├── permutation-in-string │ ├── README.md │ ├── permutation_in_string.go │ └── permutation_in_string_test.go ├── permutation-sequence │ ├── README.md │ ├── permutation_sequence.go │ └── permutation_sequence_test.go ├── permutations-ii │ ├── README.md │ ├── permutations_ii.go │ └── permutations_ii_test.go ├── permutations │ ├── README.md │ ├── permutations.go │ └── permutations_test.go ├── pizza-with-3n-slices │ └── README.md ├── plates-between-candles │ └── README.md ├── play-with-chips │ └── README.md ├── plus-one-linked-list │ ├── README.md │ ├── plus_one_linked_list.go │ └── plus_one_linked_list_test.go ├── plus-one │ ├── README.md │ ├── plus_one.go │ └── plus_one_test.go ├── poor-pigs │ ├── README.md │ ├── poor_pigs.go │ └── poor_pigs_test.go ├── populating-next-right-pointers-in-each-node-ii │ ├── README.md │ ├── populating_next_right_pointers_in_each_node_ii.go │ ├── populating_next_right_pointers_in_each_node_ii.py │ └── populating_next_right_pointers_in_each_node_ii_test.go ├── populating-next-right-pointers-in-each-node │ ├── README.md │ ├── populating_next_right_pointers_in_each_node.go │ ├── populating_next_right_pointers_in_each_node.py │ └── populating_next_right_pointers_in_each_node_test.go ├── positions-of-large-groups │ ├── README.md │ ├── positions_of_large_groups.go │ └── positions_of_large_groups_test.go ├── possible-bipartition │ ├── README.md │ ├── possible_bipartition.go │ └── possible_bipartition_test.go ├── pour-water-between-buckets-to-make-water-levels-equal │ └── README.md ├── pour-water │ ├── README.md │ ├── pour_water.go │ └── pour_water_test.go ├── power-of-four │ ├── README.md │ ├── power_of_four.go │ └── power_of_four_test.go ├── power-of-three │ ├── README.md │ ├── power_of_three.go │ └── power_of_three_test.go ├── power-of-two │ ├── README.md │ ├── power_of_two.go │ └── power_of_two_test.go ├── powerful-integers │ ├── README.md │ ├── powerful_integers.go │ └── powerful_integers_test.go ├── powx-n │ ├── README.md │ ├── powx_n.go │ └── powx_n_test.go ├── predict-the-winner │ ├── README.md │ ├── predict_the_winner.go │ └── predict_the_winner_test.go ├── prefix-and-suffix-search │ ├── README.md │ ├── prefix_and_suffix_search.go │ └── prefix_and_suffix_search_test.go ├── preimage-size-of-factorial-zeroes-function │ ├── README.md │ ├── preimage_size_of_factorial_zeroes_function.go │ └── preimage_size_of_factorial_zeroes_function_test.go ├── previous-permutation-with-one-swap │ ├── README.md │ └── previous_permutation_with_one_swap.go ├── primary-department-for-each-employee │ ├── README.md │ └── mysql_schemas.sql ├── prime-arrangements │ └── README.md ├── prime-number-of-set-bits-in-binary-representation │ ├── README.md │ ├── prime_number_of_set_bits_in_binary_representation.go │ └── prime_number_of_set_bits_in_binary_representation_test.go ├── prime-palindrome │ ├── README.md │ ├── prime_palindrome.go │ └── prime_palindrome_test.go ├── print-binary-tree │ ├── README.md │ ├── print_binary_tree.go │ └── print_binary_tree_test.go ├── print-foobar-alternately │ ├── README.md │ └── print_foobar_alternately.py ├── print-immutable-linked-list-in-reverse │ └── README.md ├── print-in-order │ ├── README.md │ └── print_in_order.py ├── print-words-vertically │ └── README.md ├── print-zero-even-odd │ ├── README.md │ └── print_zero_even_odd.py ├── prison-cells-after-n-days │ ├── README.md │ ├── prison_cells_after_n_days.go │ └── prison_cells_after_n_days_test.go ├── probability-of-a-two-boxes-having-the-same-number-of-distinct-balls │ └── README.md ├── process-restricted-friend-requests │ └── README.md ├── process-tasks-using-servers │ └── README.md ├── product-of-array-except-self │ ├── README.md │ ├── product_of_array_except_self.go │ └── product_of_array_except_self_test.go ├── product-of-the-last-k-numbers │ └── README.md ├── product-of-two-run-length-encoded-arrays │ └── README.md ├── product-price-at-a-given-date │ ├── README.md │ └── mysql_schemas.sql ├── product-sales-analysis-i │ ├── README.md │ ├── mysql_schemas.sql │ └── product_sales_analysis_i.sql ├── product-sales-analysis-ii │ ├── README.md │ ├── mysql_schemas.sql │ └── product_sales_analysis_ii.sql ├── product-sales-analysis-iii │ ├── README.md │ ├── mysql_schemas.sql │ └── product_sales_analysis_iii.sql ├── products-price-for-each-store │ ├── README.md │ └── mysql_schemas.sql ├── products-worth-over-invoices │ ├── README.md │ └── mysql_schemas.sql ├── profitable-schemes │ ├── README.md │ ├── profitable_schemes.go │ └── profitable_schemes_test.go ├── project-employees-i │ ├── README.md │ ├── mysql_schemas.sql │ └── project_employees_i.sql ├── project-employees-ii │ ├── README.md │ ├── mysql_schemas.sql │ └── project_employees_ii.sql ├── project-employees-iii │ ├── README.md │ ├── mysql_schemas.sql │ └── project_employees_iii.sql ├── projection-area-of-3d-shapes │ ├── README.md │ ├── projection_area_of_3d_shapes.go │ └── projection_area_of_3d_shapes_test.go ├── pseudo-palindromic-paths-in-a-binary-tree │ └── README.md ├── push-dominoes │ ├── README.md │ ├── push_dominoes.go │ └── push_dominoes_test.go ├── put-boxes-into-the-warehouse-i │ └── README.md ├── put-boxes-into-the-warehouse-ii │ └── README.md ├── pyramid-transition-matrix │ ├── README.md │ ├── pyramid_transition_matrix.go │ └── pyramid_transition_matrix_test.go ├── queens-that-can-attack-the-king │ └── README.md ├── queries-on-a-permutation-with-key │ └── README.md ├── queries-on-number-of-points-inside-a-circle │ └── README.md ├── queries-quality-and-percentage │ ├── README.md │ └── mysql_schemas.sql ├── queue-reconstruction-by-height │ ├── README.md │ ├── queue_reconstruction_by_height.go │ └── queue_reconstruction_by_height_test.go ├── rabbits-in-forest │ ├── README.md │ ├── rabbits_in_forest.go │ └── rabbits_in_forest_test.go ├── race-car │ ├── README.md │ ├── race_car.go │ └── race_car_test.go ├── random-flip-matrix │ ├── README.md │ ├── random_flip_matrix.go │ └── random_flip_matrix_test.go ├── random-pick-index │ ├── README.md │ ├── random_pick_index.go │ └── random_pick_index_test.go ├── random-pick-with-blacklist │ ├── README.md │ ├── random_pick_with_blacklist.go │ └── random_pick_with_blacklist_test.go ├── random-pick-with-weight │ ├── README.md │ ├── random_pick_with_weight.go │ └── random_pick_with_weight_test.go ├── random-point-in-non-overlapping-rectangles │ ├── README.md │ ├── random_point_in_non_overlapping_rectangles.go │ └── random_point_in_non_overlapping_rectangles_test.go ├── range-addition-ii │ ├── README.md │ ├── range_addition_ii.go │ └── range_addition_ii_test.go ├── range-addition │ ├── README.md │ ├── range_addition.go │ └── range_addition_test.go ├── range-frequency-queries │ └── README.md ├── range-module │ ├── README.md │ ├── range_module.go │ └── range_module_test.go ├── range-sum-of-bst │ ├── README.md │ ├── range_sum_of_bst.go │ └── range_sum_of_bst_test.go ├── range-sum-of-sorted-subarray-sums │ └── README.md ├── range-sum-query-2d-immutable │ ├── README.md │ ├── range_sum_query_2d_immutable.go │ └── range_sum_query_2d_immutable_test.go ├── range-sum-query-2d-mutable │ ├── README.md │ ├── range_sum_query_2d_mutable.go │ └── range_sum_query_2d_mutable_test.go ├── range-sum-query-immutable │ ├── README.md │ ├── range_sum_query_immutable.go │ └── range_sum_query_immutable_test.go ├── range-sum-query-mutable │ ├── README.md │ ├── range_sum_query_mutable.go │ └── range_sum_query_mutable_test.go ├── rank-scores │ ├── README.md │ ├── mysql_schemas.sql │ └── rank_scores.sql ├── rank-teams-by-votes │ └── README.md ├── rank-transform-of-a-matrix │ └── README.md ├── rank-transform-of-an-array │ └── README.md ├── ransom-note │ ├── README.md │ ├── ransom_note.go │ └── ransom_note_test.go ├── reach-a-number │ ├── README.md │ ├── reach_a_number.go │ └── reach_a_number_test.go ├── reachable-nodes-in-subdivided-graph │ ├── README.md │ ├── reachable_nodes_in_subdivided_graph.go │ └── reachable_nodes_in_subdivided_graph_test.go ├── reaching-points │ ├── README.md │ ├── reaching_points.go │ └── reaching_points_test.go ├── read-n-characters-given-read4-ii-call-multiple-times │ ├── README.md │ ├── read_n_characters_given_read4_ii_call_multiple_times.go │ └── read_n_characters_given_read4_ii_call_multiple_times_test.go ├── read-n-characters-given-read4 │ ├── README.md │ ├── read_n_characters_given_read4.go │ └── read_n_characters_given_read4_test.go ├── rearrange-array-elements-by-sign │ └── README.md ├── rearrange-products-table │ ├── README.md │ └── mysql_schemas.sql ├── rearrange-spaces-between-words │ └── README.md ├── rearrange-string-k-distance-apart │ ├── README.md │ ├── rearrange_string_k_distance_apart.go │ └── rearrange_string_k_distance_apart_test.go ├── rearrange-words-in-a-sentence │ └── README.md ├── reconstruct-a-2-row-binary-matrix │ └── README.md ├── reconstruct-itinerary │ ├── README.md │ ├── reconstruct_itinerary.go │ └── reconstruct_itinerary_test.go ├── reconstruct-original-digits-from-english │ ├── README.md │ ├── reconstruct_original_digits_from_english.go │ └── reconstruct_original_digits_from_english_test.go ├── recover-a-tree-from-preorder-traversal │ └── README.md ├── recover-binary-search-tree │ ├── README.md │ ├── recover_binary_search_tree.go │ └── recover_binary_search_tree_test.go ├── recover-the-original-array │ └── README.md ├── rectangle-area-ii │ ├── README.md │ ├── rectangle_area_ii.go │ └── rectangle_area_ii_test.go ├── rectangle-area │ ├── README.md │ ├── rectangle_area.go │ └── rectangle_area_test.go ├── rectangle-overlap │ ├── README.md │ ├── rectangle_overlap.go │ └── rectangle_overlap_test.go ├── rectangles-area │ ├── README.md │ └── mysql_schemas.sql ├── recyclable-and-low-fat-products │ ├── README.md │ └── mysql_schemas.sql ├── redistribute-characters-to-make-all-strings-equal │ └── README.md ├── reduce-array-size-to-the-half │ └── README.md ├── reducing-dishes │ └── README.md ├── reduction-operations-to-make-the-array-elements-equal │ └── README.md ├── redundant-connection-ii │ ├── README.md │ ├── redundant_connection_ii.go │ └── redundant_connection_ii_test.go ├── redundant-connection │ ├── README.md │ ├── redundant_connection.go │ └── redundant_connection_test.go ├── reformat-date │ └── README.md ├── reformat-department-table │ ├── README.md │ └── mysql_schemas.sql ├── reformat-phone-number │ └── README.md ├── reformat-the-string │ ├── README.md │ ├── reformat_the_string.go │ └── reformat_the_string_test.go ├── regions-cut-by-slashes │ ├── README.md │ ├── regions_cut_by_slashes.go │ └── regions_cut_by_slashes_test.go ├── regular-expression-matching │ ├── README.md │ ├── regular_expression_matching.go │ └── regular_expression_matching_test.go ├── relative-ranks │ ├── README.md │ ├── relative_ranks.go │ └── relative_ranks_test.go ├── relative-sort-array │ ├── README.md │ └── relative_sort_array.go ├── remove-9 │ ├── README.md │ ├── remove_9.go │ └── remove_9_test.go ├── remove-all-adjacent-duplicates-in-string-ii │ └── README.md ├── remove-all-adjacent-duplicates-in-string │ ├── README.md │ ├── remove_all_adjacent_duplicates_in_string.go │ └── remove_all_adjacent_duplicates_in_string_test.go ├── remove-all-occurrences-of-a-substring │ └── README.md ├── remove-all-ones-with-row-and-column-flips │ └── README.md ├── remove-boxes │ ├── README.md │ ├── remove_boxes.go │ └── remove_boxes_test.go ├── remove-colored-pieces-if-both-neighbors-are-the-same-color │ └── README.md ├── remove-comments │ ├── README.md │ ├── remove_comments.go │ └── remove_comments_test.go ├── remove-covered-intervals │ └── README.md ├── remove-duplicate-letters │ ├── README.md │ ├── remove_duplicate_letters.go │ └── remove_duplicate_letters_test.go ├── remove-duplicates-from-an-unsorted-linked-list │ └── README.md ├── remove-duplicates-from-sorted-array-ii │ ├── README.md │ ├── remove_duplicates_from_sorted_array_ii.go │ └── remove_duplicates_from_sorted_array_ii_test.go ├── remove-duplicates-from-sorted-array │ ├── README.md │ ├── remove_duplicates_from_sorted_array.go │ └── remove_duplicates_from_sorted_array_test.go ├── remove-duplicates-from-sorted-list-ii │ ├── README.md │ ├── remove_duplicates_from_sorted_list_ii.go │ └── remove_duplicates_from_sorted_list_ii_test.go ├── remove-duplicates-from-sorted-list │ ├── README.md │ ├── remove_duplicates_from_sorted_list.go │ └── remove_duplicates_from_sorted_list_test.go ├── remove-element │ ├── README.md │ ├── remove_element.go │ └── remove_element_test.go ├── remove-interval │ └── README.md ├── remove-invalid-parentheses │ ├── README.md │ ├── remove_invalid_parentheses.go │ └── remove_invalid_parentheses_test.go ├── remove-k-digits │ ├── README.md │ ├── remove_k_digits.go │ └── remove_k_digits_test.go ├── remove-linked-list-elements │ ├── README.md │ ├── remove_linked_list_elements.go │ └── remove_linked_list_elements_test.go ├── remove-max-number-of-edges-to-keep-graph-fully-traversable │ └── README.md ├── remove-nth-node-from-end-of-list │ ├── README.md │ ├── remove_nth_node_from_end_of_list.go │ └── remove_nth_node_from_end_of_list_test.go ├── remove-one-element-to-make-the-array-strictly-increasing │ └── README.md ├── remove-outermost-parentheses │ ├── README.md │ ├── remove_outermost_parentheses.go │ └── remove_outermost_parentheses_test.go ├── remove-palindromic-subsequences │ ├── README.md │ ├── remove_palindromic_subsequences.go │ └── remove_palindromic_subsequences_test.go ├── remove-stones-to-minimize-the-total │ └── README.md ├── remove-sub-folders-from-the-filesystem │ └── README.md ├── remove-vowels-from-a-string │ └── README.md ├── remove-zero-sum-consecutive-nodes-from-linked-list │ └── README.md ├── removing-minimum-and-maximum-from-array │ └── README.md ├── removing-minimum-number-of-magic-beans │ └── README.md ├── reorder-data-in-log-files │ ├── README.md │ ├── reorder_data_in_log_files.go │ └── reorder_data_in_log_files_test.go ├── reorder-list │ ├── README.md │ ├── reorder_list.go │ └── reorder_list_test.go ├── reorder-routes-to-make-all-paths-lead-to-the-city-zero │ └── README.md ├── reordered-power-of-2 │ ├── README.md │ ├── reordered_power_of_2.go │ └── reordered_power_of_2_test.go ├── reorganize-string │ ├── README.md │ ├── reorganize_string.go │ └── reorganize_string_test.go ├── repeated-dna-sequences │ ├── README.md │ ├── repeated_dna_sequences.go │ └── repeated_dna_sequences_test.go ├── repeated-string-match │ ├── README.md │ ├── repeated_string_match.go │ └── repeated_string_match_test.go ├── repeated-substring-pattern │ ├── README.md │ ├── repeated_substring_pattern.go │ └── repeated_substring_pattern_test.go ├── replace-all-digits-with-characters │ └── README.md ├── replace-all-s-to-avoid-consecutive-repeating-characters │ └── README.md ├── replace-elements-with-greatest-element-on-right-side │ └── README.md ├── replace-employee-id-with-the-unique-identifier │ ├── README.md │ └── mysql_schemas.sql ├── replace-the-substring-for-balanced-string │ └── README.md ├── replace-words │ ├── README.md │ ├── replace_words.go │ └── replace_words_test.go ├── report-contiguous-dates │ ├── README.md │ └── mysql_schemas.sql ├── reported-posts-ii │ ├── README.md │ └── mysql_schemas.sql ├── reported-posts │ ├── README.md │ ├── mysql_schemas.sql │ └── reported_posts.sql ├── reshape-the-matrix │ ├── README.md │ ├── reshape_the_matrix.go │ └── reshape_the_matrix_test.go ├── restaurant-growth │ ├── README.md │ └── mysql_schemas.sql ├── restore-ip-addresses │ ├── README.md │ ├── restore_ip_addresses.go │ └── restore_ip_addresses_test.go ├── restore-the-array-from-adjacent-pairs │ └── README.md ├── restore-the-array │ └── README.md ├── reveal-cards-in-increasing-order │ ├── README.md │ ├── reveal_cards_in_increasing_order.go │ └── reveal_cards_in_increasing_order_test.go ├── reverse-bits │ ├── README.md │ ├── reverse_bits.go │ └── reverse_bits_test.go ├── reverse-integer │ ├── README.md │ ├── reverse_integer.go │ └── reverse_integer_test.go ├── reverse-linked-list-ii │ ├── README.md │ ├── reverse_linked_list_ii.go │ └── reverse_linked_list_ii_test.go ├── reverse-linked-list │ ├── README.md │ ├── reverse_linked_list.go │ └── reverse_linked_list_test.go ├── reverse-nodes-in-even-length-groups │ └── README.md ├── reverse-nodes-in-k-group │ ├── README.md │ ├── reverse_nodes_in_k_group.go │ └── reverse_nodes_in_k_group_test.go ├── reverse-only-letters │ ├── README.md │ ├── reverse_only_letters.go │ └── reverse_only_letters_test.go ├── reverse-pairs │ ├── README.md │ ├── reverse_pairs.go │ └── reverse_pairs_test.go ├── reverse-prefix-of-word │ └── README.md ├── reverse-string-ii │ ├── README.md │ ├── reverse_string_ii.go │ └── reverse_string_ii_test.go ├── reverse-string │ ├── README.md │ ├── reverse_string.go │ └── reverse_string_test.go ├── reverse-subarray-to-maximize-array-value │ └── README.md ├── reverse-substrings-between-each-pair-of-parentheses │ └── README.md ├── reverse-vowels-of-a-string │ ├── README.md │ ├── reverse_vowels_of_a_string.go │ └── reverse_vowels_of_a_string_test.go ├── reverse-words-in-a-string-ii │ ├── README.md │ ├── reverse_words_in_a_string_ii.go │ └── reverse_words_in_a_string_ii_test.go ├── reverse-words-in-a-string-iii │ ├── README.md │ ├── reverse_words_in_a_string_iii.go │ └── reverse_words_in_a_string_iii_test.go ├── reverse-words-in-a-string │ ├── README.md │ ├── reverse_words_in_a_string.go │ └── reverse_words_in_a_string_test.go ├── richest-customer-wealth │ └── README.md ├── rings-and-rods │ └── README.md ├── rising-temperature │ ├── README.md │ ├── mysql_schemas.sql │ └── rising_temperature.sql ├── rle-iterator │ ├── README.md │ ├── rle_iterator.go │ └── rle_iterator_test.go ├── robot-bounded-in-circle │ ├── README.md │ ├── robot_bounded_in_circle.go │ └── robot_bounded_in_circle_test.go ├── robot-return-to-origin │ ├── README.md │ ├── robot_return_to_origin.go │ └── robot_return_to_origin_test.go ├── robot-room-cleaner │ ├── README.md │ ├── robot_room_cleaner.go │ └── robot_room_cleaner_test.go ├── roman-to-integer │ ├── README.md │ ├── roman_to_integer.go │ └── roman_to_integer_test.go ├── rotate-array │ ├── README.md │ ├── rotate_array.go │ └── rotate_array_test.go ├── rotate-function │ ├── README.md │ ├── rotate_function.go │ └── rotate_function_test.go ├── rotate-image │ ├── README.md │ ├── rotate_image.go │ └── rotate_image_test.go ├── rotate-list │ ├── README.md │ ├── rotate_list.go │ └── rotate_list_test.go ├── rotate-string │ ├── README.md │ ├── rotate_string.go │ └── rotate_string_test.go ├── rotated-digits │ ├── README.md │ ├── rotated_digits.go │ └── rotated_digits_test.go ├── rotating-the-box │ └── README.md ├── rotting-oranges │ ├── README.md │ ├── rotting_oranges.go │ └── rotting_oranges_test.go ├── running-sum-of-1d-array │ └── README.md ├── running-total-for-different-genders │ ├── README.md │ └── mysql_schemas.sql ├── russian-doll-envelopes │ ├── README.md │ ├── russian_doll_envelopes.go │ └── russian_doll_envelopes_test.go ├── sales-analysis-i │ ├── README.md │ ├── mysql_schemas.sql │ └── sales_analysis_i.sql ├── sales-analysis-ii │ ├── README.md │ ├── mysql_schemas.sql │ └── sales_analysis_ii.sql ├── sales-analysis-iii │ ├── README.md │ ├── mysql_schemas.sql │ └── sales_analysis_iii.sql ├── sales-by-day-of-the-week │ ├── README.md │ └── mysql_schemas.sql ├── sales-person │ ├── README.md │ ├── mysql_schemas.sql │ └── sales_person.sql ├── same-tree │ ├── README.md │ ├── same_tree.go │ └── same_tree_test.go ├── satisfiability-of-equality-equations │ ├── README.md │ └── satisfiability_of_equality_equations.go ├── score-after-flipping-matrix │ ├── README.md │ ├── score_after_flipping_matrix.go │ └── score_after_flipping_matrix_test.go ├── score-of-parentheses │ ├── README.md │ ├── score_of_parentheses.go │ └── score_of_parentheses_test.go ├── scramble-string │ ├── README.md │ ├── scramble_string.go │ └── scramble_string_test.go ├── search-a-2d-matrix-ii │ ├── README.md │ ├── search_a_2d_matrix_ii.go │ └── search_a_2d_matrix_ii_test.go ├── search-a-2d-matrix │ ├── README.md │ ├── search_a_2d_matrix.go │ └── search_a_2d_matrix_test.go ├── search-in-a-binary-search-tree │ ├── README.md │ ├── search_in_a_binary_search_tree.go │ └── search_in_a_binary_search_tree_test.go ├── search-in-a-sorted-array-of-unknown-size │ ├── README.md │ ├── search_in_a_sorted_array_of_unknown_size.go │ └── search_in_a_sorted_array_of_unknown_size_test.go ├── search-in-rotated-sorted-array-ii │ ├── README.md │ ├── search_in_rotated_sorted_array_ii.go │ └── search_in_rotated_sorted_array_ii_test.go ├── search-in-rotated-sorted-array │ ├── README.md │ ├── search_in_rotated_sorted_array.go │ └── search_in_rotated_sorted_array_test.go ├── search-insert-position │ ├── README.md │ ├── search_insert_position.go │ └── search_insert_position_test.go ├── search-suggestions-system │ └── README.md ├── seat-reservation-manager │ └── README.md ├── second-degree-follower │ ├── README.md │ ├── mysql_schemas.sql │ └── second_degree_follower.sql ├── second-highest-salary │ ├── README.md │ ├── mysql_schemas.sql │ └── second_highest_salary.sql ├── second-largest-digit-in-a-string │ └── README.md ├── second-minimum-node-in-a-binary-tree │ ├── README.md │ ├── second_minimum_node_in_a_binary_tree.go │ └── second_minimum_node_in_a_binary_tree_test.go ├── second-minimum-time-to-reach-destination │ └── README.md ├── self-crossing │ ├── README.md │ ├── self_crossing.go │ └── self_crossing_test.go ├── self-dividing-numbers │ ├── README.md │ ├── self_dividing_numbers.go │ └── self_dividing_numbers_test.go ├── sell-diminishing-valued-colored-balls │ └── README.md ├── sellers-with-no-sales │ ├── README.md │ └── mysql_schemas.sql ├── sentence-screen-fitting │ ├── README.md │ ├── sentence_screen_fitting.go │ └── sentence_screen_fitting_test.go ├── sentence-similarity-ii │ ├── README.md │ ├── sentence_similarity_ii.go │ └── sentence_similarity_ii_test.go ├── sentence-similarity-iii │ └── README.md ├── sentence-similarity │ ├── README.md │ ├── sentence_similarity.go │ └── sentence_similarity_test.go ├── sequence-reconstruction │ ├── README.md │ ├── sequence_reconstruction.go │ └── sequence_reconstruction_test.go ├── sequential-digits │ └── README.md ├── sequentially-ordinal-rank-tracker │ └── README.md ├── serialize-and-deserialize-binary-tree │ ├── README.md │ ├── serialize_and_deserialize_binary_tree.go │ ├── serialize_and_deserialize_binary_tree.py │ └── serialize_and_deserialize_binary_tree_test.go ├── serialize-and-deserialize-bst │ ├── README.md │ ├── serialize_and_deserialize_bst.go │ ├── serialize_and_deserialize_bst.py │ └── serialize_and_deserialize_bst_test.go ├── serialize-and-deserialize-n-ary-tree │ ├── README.md │ ├── serialize_and_deserialize_n_ary_tree.go │ └── serialize_and_deserialize_n_ary_tree_test.go ├── set-intersection-size-at-least-two │ ├── README.md │ ├── set_intersection_size_at_least_two.go │ └── set_intersection_size_at_least_two_test.go ├── set-matrix-zeroes │ ├── README.md │ ├── set_matrix_zeroes.go │ └── set_matrix_zeroes_test.go ├── set-mismatch │ ├── README.md │ ├── set_mismatch.go │ └── set_mismatch_test.go ├── shift-2d-grid │ └── README.md ├── shifting-letters │ ├── README.md │ ├── shifting_letters.go │ └── shifting_letters_test.go ├── shopping-offers │ ├── README.md │ ├── shopping_offers.go │ └── shopping_offers_test.go ├── short-encoding-of-words │ ├── README.md │ ├── short_encoding_of_words.go │ └── short_encoding_of_words_test.go ├── shortest-bridge │ ├── README.md │ ├── shortest_bridge.go │ └── shortest_bridge_test.go ├── shortest-common-supersequence │ ├── README.md │ └── shortest_common_supersequence.go ├── shortest-completing-word │ ├── README.md │ ├── shortest_completing_word.go │ └── shortest_completing_word_test.go ├── shortest-distance-from-all-buildings │ ├── README.md │ ├── shortest_distance_from_all_buildings.go │ └── shortest_distance_from_all_buildings_test.go ├── shortest-distance-in-a-line │ ├── README.md │ ├── mysql_schemas.sql │ └── shortest_distance_in_a_line.sql ├── shortest-distance-in-a-plane │ ├── README.md │ ├── mysql_schemas.sql │ └── shortest_distance_in_a_plane.sql ├── shortest-distance-to-a-character │ ├── README.md │ ├── shortest_distance_to_a_character.go │ └── shortest_distance_to_a_character_test.go ├── shortest-distance-to-target-color │ └── README.md ├── shortest-palindrome │ ├── README.md │ ├── shortest_palindrome.go │ └── shortest_palindrome_test.go ├── shortest-path-in-a-grid-with-obstacles-elimination │ └── README.md ├── shortest-path-in-a-hidden-grid │ └── README.md ├── shortest-path-in-binary-matrix │ ├── README.md │ └── shortest_path_in_binary_matrix.go ├── shortest-path-to-get-all-keys │ ├── README.md │ ├── shortest_path_to_get_all_keys.go │ └── shortest_path_to_get_all_keys_test.go ├── shortest-path-to-get-food │ └── README.md ├── shortest-path-visiting-all-nodes │ ├── README.md │ ├── shortest_path_visiting_all_nodes.go │ └── shortest_path_visiting_all_nodes_test.go ├── shortest-path-with-alternating-colors │ └── README.md ├── shortest-subarray-to-be-removed-to-make-array-sorted │ └── README.md ├── shortest-subarray-with-sum-at-least-k │ ├── README.md │ ├── shortest_subarray_with_sum_at_least_k.go │ └── shortest_subarray_with_sum_at_least_k_test.go ├── shortest-unsorted-continuous-subarray │ ├── README.md │ ├── shortest_unsorted_continuous_subarray.go │ └── shortest_unsorted_continuous_subarray_test.go ├── shortest-way-to-form-string │ └── README.md ├── shortest-word-distance-ii │ ├── README.md │ ├── shortest_word_distance_ii.go │ └── shortest_word_distance_ii_test.go ├── shortest-word-distance-iii │ ├── README.md │ ├── shortest_word_distance_iii.go │ └── shortest_word_distance_iii_test.go ├── shortest-word-distance │ ├── README.md │ ├── shortest_word_distance.go │ └── shortest_word_distance_test.go ├── shuffle-an-array │ ├── README.md │ ├── shuffle_an_array.go │ └── shuffle_an_array_test.go ├── shuffle-string │ └── README.md ├── shuffle-the-array │ └── README.md ├── sign-of-the-product-of-an-array │ └── README.md ├── similar-rgb-color │ ├── README.md │ ├── similar_rgb_color.go │ └── similar_rgb_color_test.go ├── similar-string-groups │ ├── README.md │ ├── similar_string_groups.go │ └── similar_string_groups_test.go ├── simple-bank-system │ └── README.md ├── simplified-fractions │ └── README.md ├── simplify-path │ ├── README.md │ ├── simplify_path.go │ └── simplify_path_test.go ├── single-element-in-a-sorted-array │ ├── README.md │ ├── single_element_in_a_sorted_array.go │ └── single_element_in_a_sorted_array_test.go ├── single-number-ii │ ├── README.md │ ├── single_number_ii.go │ └── single_number_ii_test.go ├── single-number-iii │ ├── README.md │ ├── single_number_iii.go │ └── single_number_iii_test.go ├── single-number │ ├── README.md │ ├── single_number.go │ └── single_number_test.go ├── single-row-keyboard │ └── README.md ├── single-threaded-cpu │ └── README.md ├── sliding-puzzle │ ├── README.md │ ├── sliding_puzzle.go │ └── sliding_puzzle_test.go ├── sliding-window-maximum │ ├── README.md │ ├── sliding_window_maximum.go │ └── sliding_window_maximum_test.go ├── sliding-window-median │ ├── README.md │ ├── sliding_window_median.go │ └── sliding_window_median_test.go ├── slowest-key │ └── README.md ├── smallest-common-region │ └── README.md ├── smallest-good-base │ ├── README.md │ ├── smallest_good_base.go │ └── smallest_good_base_test.go ├── smallest-greater-multiple-made-of-two-digits │ └── README.md ├── smallest-index-with-equal-value │ └── README.md ├── smallest-integer-divisible-by-k │ ├── README.md │ └── smallest_integer_divisible_by_k.go ├── smallest-k-length-subsequence-with-occurrences-of-a-letter │ └── README.md ├── smallest-missing-genetic-value-in-each-subtree │ └── README.md ├── smallest-range-covering-elements-from-k-lists │ └── README.md ├── smallest-range-i │ ├── README.md │ ├── smallest_range_i.go │ └── smallest_range_i_test.go ├── smallest-range-ii │ ├── README.md │ ├── smallest_range_ii.go │ └── smallest_range_ii_test.go ├── smallest-rectangle-enclosing-black-pixels │ ├── README.md │ ├── smallest_rectangle_enclosing_black_pixels.go │ └── smallest_rectangle_enclosing_black_pixels_test.go ├── smallest-rotation-with-highest-score │ ├── README.md │ ├── smallest_rotation_with_highest_score.go │ └── smallest_rotation_with_highest_score_test.go ├── smallest-string-starting-from-leaf │ ├── README.md │ └── smallest_string_starting_from_leaf.go ├── smallest-string-with-a-given-numeric-value │ └── README.md ├── smallest-string-with-swaps │ └── README.md ├── smallest-subsequence-of-distinct-characters │ ├── README.md │ └── smallest_subsequence_of_distinct_characters.go ├── smallest-subtree-with-all-the-deepest-nodes │ ├── README.md │ ├── smallest_subtree_with_all_the_deepest_nodes.go │ └── smallest_subtree_with_all_the_deepest_nodes_test.go ├── smallest-sufficient-team │ ├── README.md │ └── smallest_sufficient_team.go ├── smallest-value-of-the-rearranged-number │ └── README.md ├── snakes-and-ladders │ ├── README.md │ ├── snakes_and_ladders.go │ └── snakes_and_ladders_test.go ├── snapshot-array │ └── README.md ├── solve-the-equation │ ├── README.md │ ├── solve_the_equation.go │ └── solve_the_equation_test.go ├── solving-questions-with-brainpower │ └── README.md ├── sort-an-array │ ├── README.md │ ├── sort_an_array.go │ └── sort_an_array_test.go ├── sort-array-by-increasing-frequency │ └── README.md ├── sort-array-by-parity-ii │ ├── README.md │ ├── sort_array_by_parity_ii.go │ └── sort_array_by_parity_ii_test.go ├── sort-array-by-parity │ ├── README.md │ ├── sort_array_by_parity.go │ └── sort_array_by_parity_test.go ├── sort-characters-by-frequency │ ├── README.md │ ├── sort_characters_by_frequency.go │ └── sort_characters_by_frequency_test.go ├── sort-colors │ ├── README.md │ ├── sort_colors.go │ └── sort_colors_test.go ├── sort-even-and-odd-indices-independently │ └── README.md ├── sort-features-by-popularity │ └── README.md ├── sort-integers-by-the-number-of-1-bits │ └── README.md ├── sort-integers-by-the-power-value │ └── README.md ├── sort-items-by-groups-respecting-dependencies │ └── README.md ├── sort-linked-list-already-sorted-using-absolute-values │ └── README.md ├── sort-list │ ├── README.md │ ├── sort_list.go │ └── sort_list_test.go ├── sort-the-matrix-diagonally │ └── README.md ├── sort-transformed-array │ ├── README.md │ ├── sort_transformed_array.go │ └── sort_transformed_array_test.go ├── sorting-the-sentence │ └── README.md ├── soup-servings │ ├── README.md │ ├── soup_servings.go │ └── soup_servings_test.go ├── sparse-matrix-multiplication │ ├── README.md │ ├── sparse_matrix_multiplication.go │ └── sparse_matrix_multiplication_test.go ├── special-array-with-x-elements-greater-than-or-equal-x │ └── README.md ├── special-binary-string │ ├── README.md │ ├── special_binary_string.go │ └── special_binary_string_test.go ├── special-positions-in-a-binary-matrix │ └── README.md ├── spiral-matrix-ii │ ├── README.md │ ├── spiral_matrix_ii.go │ └── spiral_matrix_ii_test.go ├── spiral-matrix-iii │ ├── README.md │ ├── spiral_matrix_iii.go │ └── spiral_matrix_iii_test.go ├── spiral-matrix │ ├── README.md │ ├── spiral_matrix.go │ └── spiral_matrix_test.go ├── split-a-string-in-balanced-strings │ ├── README.md │ ├── split_a_string_in_balanced_strings.go │ └── split_a_string_in_balanced_strings_test.go ├── split-a-string-into-the-max-number-of-unique-substrings │ └── README.md ├── split-array-into-consecutive-subsequences │ ├── README.md │ ├── split_array_into_consecutive_subsequences.go │ └── split_array_into_consecutive_subsequences_test.go ├── split-array-into-fibonacci-sequence │ ├── README.md │ ├── split_array_into_fibonacci_sequence.go │ └── split_array_into_fibonacci_sequence_test.go ├── split-array-largest-sum │ ├── README.md │ ├── split_array_largest_sum.go │ └── split_array_largest_sum_test.go ├── split-array-with-equal-sum │ ├── README.md │ ├── split_array_with_equal_sum.go │ └── split_array_with_equal_sum_test.go ├── split-array-with-same-average │ ├── README.md │ ├── split_array_with_same_average.go │ └── split_array_with_same_average_test.go ├── split-bst │ ├── README.md │ ├── split_bst.go │ └── split_bst_test.go ├── split-concatenated-strings │ ├── README.md │ ├── split_concatenated_strings.go │ └── split_concatenated_strings_test.go ├── split-linked-list-in-parts │ ├── README.md │ ├── split_linked_list_in_parts.go │ └── split_linked_list_in_parts_test.go ├── split-two-strings-to-make-palindrome │ └── README.md ├── splitting-a-string-into-descending-consecutive-values │ └── README.md ├── sqrtx │ ├── README.md │ ├── sqrtx.go │ └── sqrtx_test.go ├── squares-of-a-sorted-array │ ├── README.md │ ├── squares_of_a_sorted_array.go │ └── squares_of_a_sorted_array_test.go ├── squirrel-simulation │ ├── README.md │ ├── squirrel_simulation.go │ └── squirrel_simulation_test.go ├── stamping-the-grid │ └── README.md ├── stamping-the-sequence │ ├── README.md │ ├── stamping_the_sequence.go │ └── stamping_the_sequence_test.go ├── statistics-from-a-large-sample │ ├── README.md │ └── statistics_from_a_large_sample.go ├── step-by-step-directions-from-a-binary-tree-node-to-another │ └── README.md ├── stepping-numbers │ └── README.md ├── stickers-to-spell-word │ ├── README.md │ ├── stickers_to_spell_word.go │ └── stickers_to_spell_word_test.go ├── stock-price-fluctuation │ └── README.md ├── stone-game-ii │ └── README.md ├── stone-game-iii │ └── README.md ├── stone-game-iv │ └── README.md ├── stone-game-ix │ └── README.md ├── stone-game-v │ └── README.md ├── stone-game-vi │ └── README.md ├── stone-game-vii │ └── README.md ├── stone-game-viii │ └── README.md ├── stone-game │ ├── README.md │ ├── stone_game.go │ └── stone_game_test.go ├── strange-printer-ii │ └── README.md ├── strange-printer │ ├── README.md │ ├── strange_printer.go │ └── strange_printer_test.go ├── stream-of-characters │ ├── README.md │ └── stream_of_characters.go ├── string-compression-ii │ └── README.md ├── string-compression │ ├── README.md │ ├── string_compression.go │ └── string_compression_test.go ├── string-matching-in-an-array │ ├── README.md │ ├── string_matching_in_an_array.go │ └── string_matching_in_an_array_test.go ├── string-to-integer-atoi │ ├── README.md │ ├── string_to_integer_atoi.go │ └── string_to_integer_atoi_test.go ├── string-transforms-into-another-string │ └── README.md ├── string-without-aaa-or-bbb │ ├── README.md │ ├── string_without_aaa_or_bbb.go │ └── string_without_aaa_or_bbb_test.go ├── strings-differ-by-one-character │ └── README.md ├── strobogrammatic-number-ii │ ├── README.md │ ├── strobogrammatic_number_ii.go │ └── strobogrammatic_number_ii_test.go ├── strobogrammatic-number-iii │ ├── README.md │ ├── strobogrammatic_number_iii.go │ └── strobogrammatic_number_iii_test.go ├── strobogrammatic-number │ ├── README.md │ ├── strobogrammatic_number.go │ └── strobogrammatic_number_test.go ├── strong-friendship │ ├── README.md │ └── mysql_schemas.sql ├── strong-password-checker │ ├── README.md │ ├── strong_password_checker.go │ └── strong_password_checker_test.go ├── student-attendance-record-i │ ├── README.md │ ├── student_attendance_record_i.go │ └── student_attendance_record_i_test.go ├── student-attendance-record-ii │ ├── README.md │ ├── student_attendance_record_ii.go │ └── student_attendance_record_ii_test.go ├── students-and-examinations │ ├── README.md │ └── mysql_schemas.sql ├── students-report-by-geography │ ├── README.md │ ├── mysql_schemas.sql │ └── students_report_by_geography.sql ├── students-with-invalid-departments │ ├── README.md │ └── mysql_schemas.sql ├── subarray-product-less-than-k │ ├── README.md │ ├── subarray_product_less_than_k.go │ └── subarray_product_less_than_k_test.go ├── subarray-sum-equals-k │ ├── README.md │ ├── subarray_sum_equals_k.go │ └── subarray_sum_equals_k_test.go ├── subarray-sums-divisible-by-k │ ├── README.md │ └── subarray_sums_divisible_by_k.go ├── subarrays-with-k-different-integers │ ├── README.md │ └── subarrays_with_k_different_integers.go ├── subdomain-visit-count │ ├── README.md │ ├── subdomain_visit_count.go │ └── subdomain_visit_count_test.go ├── subrectangle-queries │ └── README.md ├── subsequence-of-size-k-with-the-largest-even-sum │ └── README.md ├── subsets-ii │ ├── README.md │ ├── subsets_ii.go │ └── subsets_ii_test.go ├── subsets │ ├── README.md │ ├── subsets.go │ └── subsets_test.go ├── substring-with-concatenation-of-all-words │ ├── README.md │ ├── substring_with_concatenation_of_all_words.go │ └── substring_with_concatenation_of_all_words_test.go ├── substrings-of-size-three-with-distinct-characters │ └── README.md ├── substrings-that-begin-and-end-with-the-same-letter │ └── README.md ├── subtract-the-product-and-sum-of-digits-of-an-integer │ └── README.md ├── subtree-of-another-tree │ ├── README.md │ ├── subtree_of_another_tree.go │ └── subtree_of_another_tree_test.go ├── subtree-removal-game-with-fibonacci-tree │ └── README.md ├── sudoku-solver │ ├── README.md │ ├── sudoku_solver.go │ └── sudoku_solver_test.go ├── sum-game │ └── README.md ├── sum-of-absolute-differences-in-a-sorted-array │ └── README.md ├── sum-of-all-odd-length-subarrays │ └── README.md ├── sum-of-all-subset-xor-totals │ └── README.md ├── sum-of-beauty-in-the-array │ └── README.md ├── sum-of-beauty-of-all-substrings │ └── README.md ├── sum-of-digits-in-base-k │ └── README.md ├── sum-of-digits-in-the-minimum-number │ └── README.md ├── sum-of-digits-of-string-after-convert │ └── README.md ├── sum-of-distances-in-tree │ ├── README.md │ ├── sum_of_distances_in_tree.go │ └── sum_of_distances_in_tree_test.go ├── sum-of-even-numbers-after-queries │ ├── README.md │ ├── sum_of_even_numbers_after_queries.go │ └── sum_of_even_numbers_after_queries_test.go ├── sum-of-floored-pairs │ └── README.md ├── sum-of-k-mirror-numbers │ └── README.md ├── sum-of-left-leaves │ ├── README.md │ ├── sum_of_left_leaves.go │ └── sum_of_left_leaves_test.go ├── sum-of-mutated-array-closest-to-target │ └── README.md ├── sum-of-nodes-with-even-valued-grandparent │ └── README.md ├── sum-of-root-to-leaf-binary-numbers │ ├── README.md │ ├── sum_of_root_to_leaf_binary_numbers.go │ └── sum_of_root_to_leaf_binary_numbers_test.go ├── sum-of-special-evenly-spaced-elements-in-array │ └── README.md ├── sum-of-square-numbers │ ├── README.md │ ├── sum_of_square_numbers.go │ └── sum_of_square_numbers_test.go ├── sum-of-subarray-minimums │ ├── README.md │ ├── sum_of_subarray_minimums.go │ └── sum_of_subarray_minimums_test.go ├── sum-of-subarray-ranges │ └── README.md ├── sum-of-subsequence-widths │ ├── README.md │ ├── sum_of_subsequence_widths.go │ └── sum_of_subsequence_widths_test.go ├── sum-of-two-integers │ ├── README.md │ ├── sum_of_two_integers.go │ └── sum_of_two_integers_test.go ├── sum-of-unique-elements │ └── README.md ├── sum-root-to-leaf-numbers │ ├── README.md │ ├── sum_root_to_leaf_numbers.go │ └── sum_root_to_leaf_numbers_test.go ├── summary-ranges │ ├── README.md │ ├── summary_ranges.go │ └── summary_ranges_test.go ├── super-egg-drop │ ├── README.md │ ├── super_egg_drop.go │ └── super_egg_drop_test.go ├── super-palindromes │ ├── README.md │ ├── super_palindromes.go │ └── super_palindromes_test.go ├── super-pow │ ├── README.md │ ├── super_pow.go │ └── super_pow_test.go ├── super-ugly-number │ ├── README.md │ ├── super_ugly_number.go │ └── super_ugly_number_test.go ├── super-washing-machines │ ├── README.md │ ├── super_washing_machines.go │ └── super_washing_machines_test.go ├── surface-area-of-3d-shapes │ ├── README.md │ ├── surface_area_of_3d_shapes.go │ └── surface_area_of_3d_shapes_test.go ├── surrounded-regions │ ├── README.md │ ├── surrounded_regions.go │ └── surrounded_regions_test.go ├── suspicious-bank-accounts │ ├── README.md │ └── mysql_schemas.sql ├── swap-adjacent-in-lr-string │ ├── README.md │ ├── swap_adjacent_in_lr_string.go │ └── swap_adjacent_in_lr_string_test.go ├── swap-for-longest-repeated-character-substring │ └── README.md ├── swap-nodes-in-pairs │ ├── README.md │ ├── swap_nodes_in_pairs.go │ └── swap_nodes_in_pairs_test.go ├── swap-salary │ ├── README.md │ ├── mysql_schemas.sql │ └── swap_salary.sql ├── swapping-nodes-in-a-linked-list │ └── README.md ├── swim-in-rising-water │ ├── README.md │ ├── swim_in_rising_water.go │ └── swim_in_rising_water_test.go ├── symmetric-tree │ ├── README.md │ ├── symmetric_tree.go │ └── symmetric_tree_test.go ├── synonymous-sentences │ └── README.md ├── tag-validator │ ├── README.md │ ├── tag_validator.go │ └── tag_validator_test.go ├── tallest-billboard │ ├── README.md │ ├── tallest_billboard.go │ └── tallest_billboard_test.go ├── target-sum │ ├── README.md │ ├── target_sum.go │ └── target_sum_test.go ├── task-scheduler │ ├── README.md │ ├── task_scheduler.go │ └── task_scheduler_test.go ├── team-scores-in-football-tournament │ ├── README.md │ └── mysql_schemas.sql ├── teemo-attacking │ ├── README.md │ ├── teemo_attacking.go │ └── teemo_attacking_test.go ├── tenth-line │ ├── README.md │ ├── file.txt │ └── tenth_line.bash ├── ternary-expression-parser │ ├── README.md │ ├── ternary_expression_parser.go │ └── ternary_expression_parser_test.go ├── text-justification │ ├── README.md │ ├── text_justification.go │ └── text_justification_test.go ├── the-airport-with-the-most-traffic │ ├── README.md │ └── mysql_schemas.sql ├── the-category-of-each-member-in-the-store │ ├── README.md │ └── mysql_schemas.sql ├── the-dining-philosophers │ └── README.md ├── the-earliest-and-latest-rounds-where-players-compete │ └── README.md ├── the-earliest-moment-when-everyone-become-friends │ └── README.md ├── the-k-strongest-values-in-an-array │ └── README.md ├── the-k-th-lexicographical-string-of-all-happy-strings-of-length-n │ └── README.md ├── the-k-weakest-rows-in-a-matrix │ └── README.md ├── the-kth-factor-of-n │ └── README.md ├── the-latest-login-in-2020 │ ├── README.md │ └── mysql_schemas.sql ├── the-maze-ii │ ├── README.md │ ├── the_maze_ii.go │ └── the_maze_ii_test.go ├── the-maze-iii │ ├── README.md │ ├── the_maze_iii.go │ └── the_maze_iii_test.go ├── the-maze │ ├── README.md │ ├── the_maze.go │ └── the_maze_test.go ├── the-most-frequently-ordered-products-for-each-customer │ ├── README.md │ └── mysql_schemas.sql ├── the-most-recent-orders-for-each-product │ ├── README.md │ └── mysql_schemas.sql ├── the-most-recent-three-orders │ ├── README.md │ └── mysql_schemas.sql ├── the-most-similar-path-in-a-graph │ └── README.md ├── the-number-of-employees-which-report-to-each-employee │ ├── README.md │ └── mysql_schemas.sql ├── the-number-of-full-rounds-you-have-played │ └── README.md ├── the-number-of-good-subsets │ └── README.md ├── the-number-of-passengers-in-each-bus-i │ ├── README.md │ └── mysql_schemas.sql ├── the-number-of-passengers-in-each-bus-ii │ ├── README.md │ └── mysql_schemas.sql ├── the-number-of-rich-customers │ ├── README.md │ └── mysql_schemas.sql ├── the-number-of-seniors-and-juniors-to-join-the-company-ii │ ├── README.md │ └── mysql_schemas.sql ├── the-number-of-seniors-and-juniors-to-join-the-company │ ├── README.md │ └── mysql_schemas.sql ├── the-number-of-the-smallest-unoccupied-chair │ └── README.md ├── the-number-of-weak-characters-in-the-game │ └── README.md ├── the-score-of-students-solving-math-expression │ └── README.md ├── the-skyline-problem │ ├── README.md │ ├── the_skyline_problem.go │ └── the_skyline_problem_test.go ├── the-time-when-the-network-becomes-idle │ └── README.md ├── the-winner-university │ ├── README.md │ └── mysql_schemas.sql ├── third-maximum-number │ ├── README.md │ ├── third_maximum_number.go │ └── third_maximum_number_test.go ├── thousand-separator │ └── README.md ├── three-consecutive-odds │ └── README.md ├── three-divisors │ └── README.md ├── three-equal-parts │ ├── README.md │ ├── three_equal_parts.go │ └── three_equal_parts_test.go ├── throne-inheritance │ └── README.md ├── tiling-a-rectangle-with-the-fewest-squares │ └── README.md ├── time-based-key-value-store │ ├── README.md │ └── time_based_key_value_store.go ├── time-needed-to-buy-tickets │ └── README.md ├── time-needed-to-inform-all-employees │ └── README.md ├── to-lower-case │ ├── README.md │ ├── to_lower_case.go │ └── to_lower_case_test.go ├── toeplitz-matrix │ ├── README.md │ ├── toeplitz_matrix.go │ └── toeplitz_matrix_test.go ├── top-k-frequent-elements │ ├── README.md │ ├── top_k_frequent_elements.go │ └── top_k_frequent_elements_test.go ├── top-k-frequent-words │ ├── README.md │ ├── top_k_frequent_words.go │ └── top_k_frequent_words_test.go ├── top-travellers │ ├── README.md │ └── mysql_schemas.sql ├── toss-strange-coins │ └── README.md ├── total-hamming-distance │ ├── README.md │ ├── total_hamming_distance.go │ └── total_hamming_distance_test.go ├── total-sales-amount-by-year │ ├── README.md │ └── mysql_schemas.sql ├── tournament-winners │ ├── README.md │ └── mysql_schemas.sql ├── traffic-light-controlled-intersection │ └── README.md ├── transform-to-chessboard │ ├── README.md │ ├── transform_to_chessboard.go │ └── transform_to_chessboard_test.go ├── transpose-file │ ├── README.md │ ├── file.txt │ └── transpose_file.bash ├── transpose-matrix │ ├── README.md │ ├── transpose_matrix.go │ └── transpose_matrix_test.go ├── trapping-rain-water-ii │ ├── README.md │ ├── trapping_rain_water_ii.go │ └── trapping_rain_water_ii_test.go ├── trapping-rain-water │ ├── README.md │ ├── trapping_rain_water.go │ └── trapping_rain_water_test.go ├── tree-diameter │ └── README.md ├── tree-node │ ├── README.md │ ├── mysql_schemas.sql │ └── tree_node.sql ├── tree-of-coprimes │ └── README.md ├── triangle-judgement │ ├── README.md │ ├── mysql_schemas.sql │ └── triangle_judgement.sql ├── triangle │ ├── README.md │ ├── triangle.go │ └── triangle_test.go ├── trim-a-binary-search-tree │ ├── README.md │ ├── trim_a_binary_search_tree.go │ └── trim_a_binary_search_tree_test.go ├── triples-with-bitwise-and-equal-to-zero │ ├── README.md │ └── triples_with_bitwise_and_equal_to_zero.go ├── trips-and-users │ ├── README.md │ ├── mysql_schemas.sql │ └── trips_and_users.sql ├── truncate-sentence │ └── README.md ├── tuple-with-same-product │ └── README.md ├── tweet-counts-per-frequency │ └── README.md ├── two-best-non-overlapping-events │ └── README.md ├── two-city-scheduling │ ├── README.md │ ├── two_city_scheduling.go │ └── two_city_scheduling_test.go ├── two-furthest-houses-with-different-colors │ └── README.md ├── two-out-of-three │ └── README.md ├── two-sum-bsts │ └── README.md ├── two-sum-ii-input-array-is-sorted │ ├── README.md │ ├── two_sum_ii_input_array_is_sorted.go │ └── two_sum_ii_input_array_is_sorted_test.go ├── two-sum-iii-data-structure-design │ ├── README.md │ ├── two_sum_iii_data_structure_design.go │ └── two_sum_iii_data_structure_design_test.go ├── two-sum-iv-input-is-a-bst │ ├── README.md │ ├── two_sum_iv_input_is_a_bst.go │ └── two_sum_iv_input_is_a_bst_test.go ├── two-sum-less-than-k │ └── README.md ├── two-sum │ ├── README.md │ ├── two_sum.go │ └── two_sum_test.go ├── ugly-number-ii │ ├── README.md │ ├── ugly_number_ii.go │ └── ugly_number_ii_test.go ├── ugly-number-iii │ └── README.md ├── ugly-number │ ├── README.md │ ├── ugly_number.go │ └── ugly_number_test.go ├── uncommon-words-from-two-sentences │ ├── README.md │ ├── uncommon_words_from_two_sentences.go │ └── uncommon_words_from_two_sentences_test.go ├── uncrossed-lines │ ├── README.md │ └── uncrossed_lines.go ├── unique-binary-search-trees-ii │ ├── README.md │ ├── unique_binary_search_trees_ii.go │ └── unique_binary_search_trees_ii_test.go ├── unique-binary-search-trees │ ├── README.md │ ├── unique_binary_search_trees.go │ └── unique_binary_search_trees_test.go ├── unique-email-addresses │ ├── README.md │ ├── unique_email_addresses.go │ └── unique_email_addresses_test.go ├── unique-length-3-palindromic-subsequences │ └── README.md ├── unique-morse-code-words │ ├── README.md │ ├── unique_morse_code_words.go │ └── unique_morse_code_words_test.go ├── unique-number-of-occurrences │ └── README.md ├── unique-orders-and-customers-per-month │ ├── README.md │ └── mysql_schemas.sql ├── unique-paths-ii │ ├── README.md │ ├── unique_paths_ii.go │ └── unique_paths_ii_test.go ├── unique-paths-iii │ ├── README.md │ └── unique_paths_iii.go ├── unique-paths │ ├── README.md │ ├── unique_paths.go │ └── unique_paths_test.go ├── unique-substrings-in-wraparound-string │ ├── README.md │ ├── unique_substrings_in_wraparound_string.go │ └── unique_substrings_in_wraparound_string_test.go ├── unique-substrings-with-equal-digit-frequency │ └── README.md ├── unique-word-abbreviation │ ├── README.md │ ├── unique_word_abbreviation.go │ └── unique_word_abbreviation_test.go ├── univalued-binary-tree │ ├── README.md │ ├── univalued_binary_tree.go │ └── univalued_binary_tree_test.go ├── unpopular-books │ ├── README.md │ ├── mysql_schemas.sql │ └── unpopular_books.sql ├── user-activity-for-the-past-30-days-i │ ├── README.md │ └── mysql_schemas.sql ├── user-activity-for-the-past-30-days-ii │ ├── README.md │ └── mysql_schemas.sql ├── user-purchase-platform │ ├── README.md │ ├── mysql_schemas.sql │ └── user_purchase_platform.sql ├── users-that-actively-request-confirmation-messages │ ├── README.md │ └── mysql_schemas.sql ├── utf-8-validation │ ├── README.md │ ├── utf_8_validation.go │ └── utf_8_validation_test.go ├── valid-anagram │ ├── README.md │ ├── valid_anagram.go │ └── valid_anagram_test.go ├── valid-arrangement-of-pairs │ └── README.md ├── valid-boomerang │ ├── README.md │ ├── valid_boomerang.go │ └── valid_boomerang_test.go ├── valid-mountain-array │ ├── README.md │ ├── valid_mountain_array.go │ └── valid_mountain_array_test.go ├── valid-number │ ├── README.md │ ├── valid_number.go │ └── valid_number_test.go ├── valid-palindrome-ii │ ├── README.md │ ├── valid_palindrome_ii.go │ └── valid_palindrome_ii_test.go ├── valid-palindrome-iii │ └── README.md ├── valid-palindrome │ ├── README.md │ ├── valid_palindrome.go │ └── valid_palindrome_test.go ├── valid-parentheses │ ├── README.md │ ├── valid_parentheses.go │ └── valid_parentheses_test.go ├── valid-parenthesis-string │ ├── README.md │ ├── valid_parenthesis_string.go │ └── valid_parenthesis_string_test.go ├── valid-perfect-square │ ├── README.md │ ├── valid_perfect_square.go │ └── valid_perfect_square_test.go ├── valid-permutations-for-di-sequence │ ├── README.md │ ├── valid_permutations_for_di_sequence.go │ └── valid_permutations_for_di_sequence_test.go ├── valid-phone-numbers │ ├── README.md │ ├── file.txt │ └── valid_phone_numbers.bash ├── valid-square │ ├── README.md │ ├── valid_square.go │ └── valid_square_test.go ├── valid-sudoku │ ├── README.md │ ├── valid_sudoku.go │ └── valid_sudoku_test.go ├── valid-tic-tac-toe-state │ ├── README.md │ ├── valid_tic_tac_toe_state.go │ └── valid_tic_tac_toe_state_test.go ├── valid-triangle-number │ ├── README.md │ ├── valid_triangle_number.go │ └── valid_triangle_number_test.go ├── valid-word-abbreviation │ ├── README.md │ ├── valid_word_abbreviation.go │ └── valid_word_abbreviation_test.go ├── valid-word-square │ ├── README.md │ ├── valid_word_square.go │ └── valid_word_square_test.go ├── validate-binary-search-tree │ ├── README.md │ ├── validate_binary_search_tree.go │ └── validate_binary_search_tree_test.go ├── validate-binary-tree-nodes │ └── README.md ├── validate-ip-address │ ├── README.md │ ├── validate_ip_address.go │ └── validate_ip_address_test.go ├── validate-stack-sequences │ ├── README.md │ ├── validate_stack_sequences.go │ └── validate_stack_sequences_test.go ├── verbal-arithmetic-puzzle │ └── README.md ├── verify-preorder-sequence-in-binary-search-tree │ ├── README.md │ ├── verify_preorder_sequence_in_binary_search_tree.go │ └── verify_preorder_sequence_in_binary_search_tree_test.go ├── verify-preorder-serialization-of-a-binary-tree │ ├── README.md │ ├── verify_preorder_serialization_of_a_binary_tree.go │ └── verify_preorder_serialization_of_a_binary_tree_test.go ├── verifying-an-alien-dictionary │ ├── README.md │ ├── verifying_an_alien_dictionary.go │ └── verifying_an_alien_dictionary_test.go ├── vertical-order-traversal-of-a-binary-tree │ ├── README.md │ └── vertical_order_traversal_of_a_binary_tree.go ├── video-stitching │ ├── README.md │ └── video_stitching.go ├── vowel-spellchecker │ ├── README.md │ └── vowel_spellchecker.go ├── vowels-of-all-substrings │ └── README.md ├── walking-robot-simulation-ii │ └── README.md ├── walking-robot-simulation │ ├── README.md │ ├── walking_robot_simulation.go │ └── walking_robot_simulation_test.go ├── walls-and-gates │ ├── README.md │ ├── walls_and_gates.go │ └── walls_and_gates_test.go ├── warehouse-manager │ ├── README.md │ └── mysql_schemas.sql ├── water-and-jug-problem │ ├── README.md │ ├── water_and_jug_problem.go │ └── water_and_jug_problem_test.go ├── water-bottles │ └── README.md ├── watering-plants-ii │ └── README.md ├── watering-plants │ └── README.md ├── ways-to-make-a-fair-array │ └── README.md ├── ways-to-split-array-into-three-subarrays │ └── README.md ├── weather-type-in-each-country │ ├── README.md │ ├── mysql_schemas.sql │ └── weather_type_in_each_country.sql ├── web-crawler-multithreaded │ └── README.md ├── web-crawler │ └── README.md ├── where-will-the-ball-fall │ └── README.md ├── widest-pair-of-indices-with-equal-range-sum │ └── README.md ├── widest-vertical-area-between-two-points-containing-no-points │ └── README.md ├── wiggle-sort-ii │ ├── README.md │ ├── wiggle_sort_ii.go │ └── wiggle_sort_ii_test.go ├── wiggle-sort │ ├── README.md │ ├── wiggle_sort.go │ └── wiggle_sort_test.go ├── wiggle-subsequence │ ├── README.md │ ├── wiggle_subsequence.go │ └── wiggle_subsequence_test.go ├── wildcard-matching │ ├── README.md │ ├── wildcard_matching.go │ └── wildcard_matching_test.go ├── winning-candidate │ ├── README.md │ ├── mysql_schemas.sql │ └── winning_candidate.sql ├── word-abbreviation │ ├── README.md │ ├── word_abbreviation.go │ └── word_abbreviation_test.go ├── word-break-ii │ ├── README.md │ ├── word_break_ii.go │ └── word_break_ii_test.go ├── word-break │ ├── README.md │ ├── word_break.go │ └── word_break_test.go ├── word-frequency │ ├── README.md │ ├── word_frequency.bash │ └── words.txt ├── word-ladder-ii │ ├── README.md │ ├── word_ladder_ii.go │ └── word_ladder_ii_test.go ├── word-ladder │ ├── README.md │ ├── word_ladder.go │ └── word_ladder_test.go ├── word-pattern-ii │ ├── README.md │ ├── word_pattern_ii.go │ └── word_pattern_ii_test.go ├── word-pattern │ ├── README.md │ ├── word_pattern.go │ └── word_pattern_test.go ├── word-search-ii │ ├── README.md │ ├── word_search_ii.go │ └── word_search_ii_test.go ├── word-search │ ├── README.md │ ├── word_search.go │ └── word_search_test.go ├── word-squares │ ├── README.md │ ├── word_squares.go │ └── word_squares_test.go ├── word-subsets │ ├── README.md │ ├── word_subsets.go │ └── word_subsets_test.go ├── x-of-a-kind-in-a-deck-of-cards │ ├── README.md │ ├── x_of_a_kind_in_a_deck_of_cards.go │ └── x_of_a_kind_in_a_deck_of_cards_test.go ├── xor-operation-in-an-array │ └── README.md ├── xor-queries-of-a-subarray │ └── README.md ├── zigzag-conversion │ ├── README.md │ ├── zigzag_conversion.go │ └── zigzag_conversion_test.go ├── zigzag-iterator │ ├── README.md │ ├── zigzag_iterator.go │ └── zigzag_iterator_test.go └── zuma-game │ ├── README.md │ ├── zuma_game.go │ └── zuma_game_test.go ├── readme ├── 1-300.md ├── 1201-1500.md ├── 1501-1800.md ├── 301-600.md ├── 601-900.md └── 901-1200.md └── tag ├── README.md ├── array └── README.md ├── backtracking └── README.md ├── biconnected-component └── README.md ├── binary-indexed-tree └── README.md ├── binary-search-tree └── README.md ├── binary-search └── README.md ├── binary-tree └── README.md ├── bit-manipulation └── README.md ├── bitmask └── README.md ├── brainteaser └── README.md ├── breadth-first-search └── README.md ├── bucket-sort └── README.md ├── combinatorics └── README.md ├── concurrency └── README.md ├── counting-sort └── README.md ├── counting └── README.md ├── data-stream └── README.md ├── depth-first-search └── README.md ├── dequeue └── README.md ├── design └── README.md ├── divide-and-conquer └── README.md ├── doubly-linked-list └── README.md ├── dynamic-programming └── README.md ├── enumeration └── README.md ├── eulerian-circuit └── README.md ├── game-theory └── README.md ├── geometry └── README.md ├── graph └── README.md ├── greedy └── README.md ├── hash-function └── README.md ├── hash-table └── README.md ├── heap-priority-queue └── README.md ├── heap └── README.md ├── interactive └── README.md ├── iterator └── README.md ├── line-sweep └── README.md ├── linked-list └── README.md ├── map └── README.md ├── math └── README.md ├── matrix └── README.md ├── meet-in-the-middle └── README.md ├── memoization └── README.md ├── merge-sort └── README.md ├── minimax └── README.md ├── minimum-spanning-tree └── README.md ├── monotonic-queue └── README.md ├── monotonic-stack └── README.md ├── number-theory └── README.md ├── oop └── README.md ├── ordered-map └── README.md ├── ordered-set └── README.md ├── prefix-sum └── README.md ├── probability-and-statistics └── README.md ├── queue └── README.md ├── quickselect └── README.md ├── radix-sort └── README.md ├── random └── README.md ├── randomized └── README.md ├── recursion └── README.md ├── rejection-sampling └── README.md ├── reservoir-sampling └── README.md ├── rolling-hash └── README.md ├── segment-tree └── README.md ├── shortest-path └── README.md ├── simulation └── README.md ├── sliding-window └── README.md ├── sort └── README.md ├── sorting └── README.md ├── stack └── README.md ├── string-matching └── README.md ├── string └── README.md ├── strongly-connected-component └── README.md ├── suffix-array └── README.md ├── tags.js ├── tags.json ├── topological-sort └── README.md ├── tree └── README.md ├── trie └── README.md ├── two-pointers └── README.md └── union-find └── README.md /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/awesee/leetcode 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /internal/kit/doc.go: -------------------------------------------------------------------------------- 1 | // Package kit contain the predefined type. 2 | package kit 3 | -------------------------------------------------------------------------------- /problems/3sum-smaller/3sum_smaller.go: -------------------------------------------------------------------------------- 1 | package problem259 2 | -------------------------------------------------------------------------------- /problems/3sum-smaller/3sum_smaller_test.go: -------------------------------------------------------------------------------- 1 | package problem259 2 | -------------------------------------------------------------------------------- /problems/3sum-with-multiplicity/3sum_with_multiplicity.go: -------------------------------------------------------------------------------- 1 | package problem923 2 | -------------------------------------------------------------------------------- /problems/3sum-with-multiplicity/3sum_with_multiplicity_test.go: -------------------------------------------------------------------------------- 1 | package problem923 2 | -------------------------------------------------------------------------------- /problems/4-keys-keyboard/4_keys_keyboard.go: -------------------------------------------------------------------------------- 1 | package problem651 2 | -------------------------------------------------------------------------------- /problems/4-keys-keyboard/4_keys_keyboard_test.go: -------------------------------------------------------------------------------- 1 | package problem651 2 | -------------------------------------------------------------------------------- /problems/active-businesses/active_businesses.sql: -------------------------------------------------------------------------------- 1 | # Write your MySQL query statement below 2 | -------------------------------------------------------------------------------- /problems/add-bold-tag-in-string/add_bold_tag_in_string.go: -------------------------------------------------------------------------------- 1 | package problem616 2 | -------------------------------------------------------------------------------- /problems/add-bold-tag-in-string/add_bold_tag_in_string_test.go: -------------------------------------------------------------------------------- 1 | package problem616 2 | -------------------------------------------------------------------------------- /problems/additive-number/additive_number.go: -------------------------------------------------------------------------------- 1 | package problem306 2 | -------------------------------------------------------------------------------- /problems/additive-number/additive_number_test.go: -------------------------------------------------------------------------------- 1 | package problem306 2 | -------------------------------------------------------------------------------- /problems/advantage-shuffle/advantage_shuffle.go: -------------------------------------------------------------------------------- 1 | package problem870 2 | -------------------------------------------------------------------------------- /problems/advantage-shuffle/advantage_shuffle_test.go: -------------------------------------------------------------------------------- 1 | package problem870 2 | -------------------------------------------------------------------------------- /problems/alien-dictionary/alien_dictionary.go: -------------------------------------------------------------------------------- 1 | package problem269 2 | -------------------------------------------------------------------------------- /problems/alien-dictionary/alien_dictionary_test.go: -------------------------------------------------------------------------------- 1 | package problem269 2 | -------------------------------------------------------------------------------- /problems/all-oone-data-structure/all_oone_data_structure.go: -------------------------------------------------------------------------------- 1 | package problem432 2 | -------------------------------------------------------------------------------- /problems/all-oone-data-structure/all_oone_data_structure_test.go: -------------------------------------------------------------------------------- 1 | package problem432 2 | -------------------------------------------------------------------------------- /problems/ambiguous-coordinates/ambiguous_coordinates.go: -------------------------------------------------------------------------------- 1 | package problem816 2 | -------------------------------------------------------------------------------- /problems/ambiguous-coordinates/ambiguous_coordinates_test.go: -------------------------------------------------------------------------------- 1 | package problem816 2 | -------------------------------------------------------------------------------- /problems/android-unlock-patterns/android_unlock_patterns.go: -------------------------------------------------------------------------------- 1 | package problem351 2 | -------------------------------------------------------------------------------- /problems/android-unlock-patterns/android_unlock_patterns_test.go: -------------------------------------------------------------------------------- 1 | package problem351 2 | -------------------------------------------------------------------------------- /problems/array-of-doubled-pairs/array_of_doubled_pairs.go: -------------------------------------------------------------------------------- 1 | package problem954 2 | -------------------------------------------------------------------------------- /problems/array-of-doubled-pairs/array_of_doubled_pairs_test.go: -------------------------------------------------------------------------------- 1 | package problem954 2 | -------------------------------------------------------------------------------- /problems/asteroid-collision/asteroid_collision.go: -------------------------------------------------------------------------------- 1 | package problem735 2 | -------------------------------------------------------------------------------- /problems/asteroid-collision/asteroid_collision_test.go: -------------------------------------------------------------------------------- 1 | package problem735 2 | -------------------------------------------------------------------------------- /problems/backspace-string-compare/backspace_string_compare.go: -------------------------------------------------------------------------------- 1 | package problem844 2 | -------------------------------------------------------------------------------- /problems/backspace-string-compare/backspace_string_compare_test.go: -------------------------------------------------------------------------------- 1 | package problem844 2 | -------------------------------------------------------------------------------- /problems/bag-of-tokens/bag_of_tokens.go: -------------------------------------------------------------------------------- 1 | package problem948 2 | -------------------------------------------------------------------------------- /problems/bag-of-tokens/bag_of_tokens_test.go: -------------------------------------------------------------------------------- 1 | package problem948 2 | -------------------------------------------------------------------------------- /problems/baseball-game/baseball_game.go: -------------------------------------------------------------------------------- 1 | package problem682 2 | -------------------------------------------------------------------------------- /problems/baseball-game/baseball_game_test.go: -------------------------------------------------------------------------------- 1 | package problem682 2 | -------------------------------------------------------------------------------- /problems/basic-calculator-ii/basic_calculator_ii.go: -------------------------------------------------------------------------------- 1 | package problem227 2 | -------------------------------------------------------------------------------- /problems/basic-calculator-ii/basic_calculator_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem227 2 | -------------------------------------------------------------------------------- /problems/basic-calculator-iii/basic_calculator_iii.go: -------------------------------------------------------------------------------- 1 | package problem772 2 | -------------------------------------------------------------------------------- /problems/basic-calculator-iii/basic_calculator_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem772 2 | -------------------------------------------------------------------------------- /problems/basic-calculator-iv/basic_calculator_iv.go: -------------------------------------------------------------------------------- 1 | package problem770 2 | -------------------------------------------------------------------------------- /problems/basic-calculator-iv/basic_calculator_iv_test.go: -------------------------------------------------------------------------------- 1 | package problem770 2 | -------------------------------------------------------------------------------- /problems/basic-calculator/basic_calculator.go: -------------------------------------------------------------------------------- 1 | package problem224 2 | -------------------------------------------------------------------------------- /problems/basic-calculator/basic_calculator_test.go: -------------------------------------------------------------------------------- 1 | package problem224 2 | -------------------------------------------------------------------------------- /problems/battleships-in-a-board/battleships_in_a_board.go: -------------------------------------------------------------------------------- 1 | package problem419 2 | -------------------------------------------------------------------------------- /problems/battleships-in-a-board/battleships_in_a_board_test.go: -------------------------------------------------------------------------------- 1 | package problem419 2 | -------------------------------------------------------------------------------- /problems/beautiful-arrangement-ii/beautiful_arrangement_ii.go: -------------------------------------------------------------------------------- 1 | package problem667 2 | -------------------------------------------------------------------------------- /problems/beautiful-arrangement-ii/beautiful_arrangement_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem667 2 | -------------------------------------------------------------------------------- /problems/beautiful-arrangement/beautiful_arrangement.go: -------------------------------------------------------------------------------- 1 | package problem526 2 | -------------------------------------------------------------------------------- /problems/beautiful-arrangement/beautiful_arrangement_test.go: -------------------------------------------------------------------------------- 1 | package problem526 2 | -------------------------------------------------------------------------------- /problems/beautiful-array/beautiful_array.go: -------------------------------------------------------------------------------- 1 | package problem932 2 | -------------------------------------------------------------------------------- /problems/beautiful-array/beautiful_array_test.go: -------------------------------------------------------------------------------- 1 | package problem932 2 | -------------------------------------------------------------------------------- /problems/best-meeting-point/best_meeting_point.go: -------------------------------------------------------------------------------- 1 | package problem296 2 | -------------------------------------------------------------------------------- /problems/best-meeting-point/best_meeting_point_test.go: -------------------------------------------------------------------------------- 1 | package problem296 2 | -------------------------------------------------------------------------------- /problems/binary-gap/binary_gap.go: -------------------------------------------------------------------------------- 1 | package problem868 2 | -------------------------------------------------------------------------------- /problems/binary-gap/binary_gap_test.go: -------------------------------------------------------------------------------- 1 | package problem868 2 | -------------------------------------------------------------------------------- /problems/binary-search-tree-iterator/binary_search_tree_iterator.go: -------------------------------------------------------------------------------- 1 | package problem173 2 | -------------------------------------------------------------------------------- /problems/binary-search/binary_search.go: -------------------------------------------------------------------------------- 1 | package problem704 2 | -------------------------------------------------------------------------------- /problems/binary-search/binary_search_test.go: -------------------------------------------------------------------------------- 1 | package problem704 2 | -------------------------------------------------------------------------------- /problems/binary-subarrays-with-sum/binary_subarrays_with_sum.go: -------------------------------------------------------------------------------- 1 | package problem930 2 | -------------------------------------------------------------------------------- /problems/binary-subarrays-with-sum/binary_subarrays_with_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem930 2 | -------------------------------------------------------------------------------- /problems/binary-tree-cameras/binary_tree_cameras.go: -------------------------------------------------------------------------------- 1 | package problem968 2 | -------------------------------------------------------------------------------- /problems/binary-tree-inorder-traversal/binary_tree_inorder_traversal.go: -------------------------------------------------------------------------------- 1 | package problem94 2 | -------------------------------------------------------------------------------- /problems/binary-tree-maximum-path-sum/binary_tree_maximum_path_sum.go: -------------------------------------------------------------------------------- 1 | package problem124 2 | -------------------------------------------------------------------------------- /problems/binary-tree-paths/binary_tree_paths.go: -------------------------------------------------------------------------------- 1 | package problem257 2 | -------------------------------------------------------------------------------- /problems/binary-tree-paths/binary_tree_paths_test.go: -------------------------------------------------------------------------------- 1 | package problem257 2 | -------------------------------------------------------------------------------- /problems/binary-tree-pruning/binary_tree_pruning.go: -------------------------------------------------------------------------------- 1 | package problem814 2 | -------------------------------------------------------------------------------- /problems/binary-tree-pruning/binary_tree_pruning_test.go: -------------------------------------------------------------------------------- 1 | package problem814 2 | -------------------------------------------------------------------------------- /problems/binary-tree-right-side-view/binary_tree_right_side_view.go: -------------------------------------------------------------------------------- 1 | package problem199 2 | -------------------------------------------------------------------------------- /problems/binary-tree-tilt/binary_tree_tilt.go: -------------------------------------------------------------------------------- 1 | package problem563 2 | -------------------------------------------------------------------------------- /problems/binary-tree-tilt/binary_tree_tilt_test.go: -------------------------------------------------------------------------------- 1 | package problem563 2 | -------------------------------------------------------------------------------- /problems/binary-tree-upside-down/binary_tree_upside_down.go: -------------------------------------------------------------------------------- 1 | package problem156 2 | -------------------------------------------------------------------------------- /problems/binary-tree-upside-down/binary_tree_upside_down_test.go: -------------------------------------------------------------------------------- 1 | package problem156 2 | -------------------------------------------------------------------------------- /problems/binary-trees-with-factors/binary_trees_with_factors.go: -------------------------------------------------------------------------------- 1 | package problem823 2 | -------------------------------------------------------------------------------- /problems/binary-trees-with-factors/binary_trees_with_factors_test.go: -------------------------------------------------------------------------------- 1 | package problem823 2 | -------------------------------------------------------------------------------- /problems/binary-watch/binary_watch.go: -------------------------------------------------------------------------------- 1 | package problem401 2 | -------------------------------------------------------------------------------- /problems/binary-watch/binary_watch_test.go: -------------------------------------------------------------------------------- 1 | package problem401 2 | -------------------------------------------------------------------------------- /problems/bitwise-and-of-numbers-range/bitwise_and_of_numbers_range.go: -------------------------------------------------------------------------------- 1 | package problem201 2 | -------------------------------------------------------------------------------- /problems/bitwise-ors-of-subarrays/bitwise_ors_of_subarrays.go: -------------------------------------------------------------------------------- 1 | package problem898 2 | -------------------------------------------------------------------------------- /problems/bitwise-ors-of-subarrays/bitwise_ors_of_subarrays_test.go: -------------------------------------------------------------------------------- 1 | package problem898 2 | -------------------------------------------------------------------------------- /problems/boats-to-save-people/boats_to_save_people.go: -------------------------------------------------------------------------------- 1 | package problem881 2 | -------------------------------------------------------------------------------- /problems/boats-to-save-people/boats_to_save_people_test.go: -------------------------------------------------------------------------------- 1 | package problem881 2 | -------------------------------------------------------------------------------- /problems/bold-words-in-string/bold_words_in_string.go: -------------------------------------------------------------------------------- 1 | package problem758 2 | -------------------------------------------------------------------------------- /problems/bold-words-in-string/bold_words_in_string_test.go: -------------------------------------------------------------------------------- 1 | package problem758 2 | -------------------------------------------------------------------------------- /problems/bomb-enemy/bomb_enemy.go: -------------------------------------------------------------------------------- 1 | package problem361 2 | -------------------------------------------------------------------------------- /problems/bomb-enemy/bomb_enemy_test.go: -------------------------------------------------------------------------------- 1 | package problem361 2 | -------------------------------------------------------------------------------- /problems/boundary-of-binary-tree/boundary_of_binary_tree.go: -------------------------------------------------------------------------------- 1 | package problem545 2 | -------------------------------------------------------------------------------- /problems/boundary-of-binary-tree/boundary_of_binary_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem545 2 | -------------------------------------------------------------------------------- /problems/brace-expansion-ii/brace_expansion_ii.go: -------------------------------------------------------------------------------- 1 | package problem1096 2 | -------------------------------------------------------------------------------- /problems/brick-wall/brick_wall.go: -------------------------------------------------------------------------------- 1 | package problem554 2 | -------------------------------------------------------------------------------- /problems/brick-wall/brick_wall_test.go: -------------------------------------------------------------------------------- 1 | package problem554 2 | -------------------------------------------------------------------------------- /problems/bricks-falling-when-hit/bricks_falling_when_hit.go: -------------------------------------------------------------------------------- 1 | package problem803 2 | -------------------------------------------------------------------------------- /problems/bricks-falling-when-hit/bricks_falling_when_hit_test.go: -------------------------------------------------------------------------------- 1 | package problem803 2 | -------------------------------------------------------------------------------- /problems/broken-calculator/broken_calculator.go: -------------------------------------------------------------------------------- 1 | package problem991 2 | -------------------------------------------------------------------------------- /problems/bulb-switcher-ii/bulb_switcher_ii.go: -------------------------------------------------------------------------------- 1 | package problem672 2 | -------------------------------------------------------------------------------- /problems/bulb-switcher-ii/bulb_switcher_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem672 2 | -------------------------------------------------------------------------------- /problems/bulls-and-cows/bulls_and_cows.go: -------------------------------------------------------------------------------- 1 | package problem299 2 | -------------------------------------------------------------------------------- /problems/bulls-and-cows/bulls_and_cows_test.go: -------------------------------------------------------------------------------- 1 | package problem299 2 | -------------------------------------------------------------------------------- /problems/burst-balloons/burst_balloons.go: -------------------------------------------------------------------------------- 1 | package problem312 2 | -------------------------------------------------------------------------------- /problems/burst-balloons/burst_balloons_test.go: -------------------------------------------------------------------------------- 1 | package problem312 2 | -------------------------------------------------------------------------------- /problems/bus-routes/bus_routes.go: -------------------------------------------------------------------------------- 1 | package problem815 2 | -------------------------------------------------------------------------------- /problems/bus-routes/bus_routes_test.go: -------------------------------------------------------------------------------- 1 | package problem815 2 | -------------------------------------------------------------------------------- /problems/can-i-win/can_i_win.go: -------------------------------------------------------------------------------- 1 | package problem464 2 | -------------------------------------------------------------------------------- /problems/can-i-win/can_i_win_test.go: -------------------------------------------------------------------------------- 1 | package problem464 2 | -------------------------------------------------------------------------------- /problems/candy-crush/candy_crush.go: -------------------------------------------------------------------------------- 1 | package problem723 2 | -------------------------------------------------------------------------------- /problems/candy-crush/candy_crush_test.go: -------------------------------------------------------------------------------- 1 | package problem723 2 | -------------------------------------------------------------------------------- /problems/candy/candy.go: -------------------------------------------------------------------------------- 1 | package problem135 2 | -------------------------------------------------------------------------------- /problems/candy/candy_test.go: -------------------------------------------------------------------------------- 1 | package problem135 2 | -------------------------------------------------------------------------------- /problems/car-fleet/car_fleet.go: -------------------------------------------------------------------------------- 1 | package problem853 2 | -------------------------------------------------------------------------------- /problems/car-fleet/car_fleet_test.go: -------------------------------------------------------------------------------- 1 | package problem853 2 | -------------------------------------------------------------------------------- /problems/card-flipping-game/card_flipping_game.go: -------------------------------------------------------------------------------- 1 | package problem822 2 | -------------------------------------------------------------------------------- /problems/card-flipping-game/card_flipping_game_test.go: -------------------------------------------------------------------------------- 1 | package problem822 2 | -------------------------------------------------------------------------------- /problems/cat-and-mouse/cat_and_mouse.go: -------------------------------------------------------------------------------- 1 | package problem913 2 | -------------------------------------------------------------------------------- /problems/cat-and-mouse/cat_and_mouse_test.go: -------------------------------------------------------------------------------- 1 | package problem913 2 | -------------------------------------------------------------------------------- /problems/chalkboard-xor-game/chalkboard_xor_game.go: -------------------------------------------------------------------------------- 1 | package problem810 2 | -------------------------------------------------------------------------------- /problems/chalkboard-xor-game/chalkboard_xor_game_test.go: -------------------------------------------------------------------------------- 1 | package problem810 2 | -------------------------------------------------------------------------------- /problems/champagne-tower/champagne_tower.go: -------------------------------------------------------------------------------- 1 | package problem799 2 | -------------------------------------------------------------------------------- /problems/champagne-tower/champagne_tower_test.go: -------------------------------------------------------------------------------- 1 | package problem799 2 | -------------------------------------------------------------------------------- /problems/cherry-pickup/cherry_pickup.go: -------------------------------------------------------------------------------- 1 | package problem741 2 | -------------------------------------------------------------------------------- /problems/cherry-pickup/cherry_pickup_test.go: -------------------------------------------------------------------------------- 1 | package problem741 2 | -------------------------------------------------------------------------------- /problems/circular-array-loop/circular_array_loop.go: -------------------------------------------------------------------------------- 1 | package problem457 2 | -------------------------------------------------------------------------------- /problems/circular-array-loop/circular_array_loop_test.go: -------------------------------------------------------------------------------- 1 | package problem457 2 | -------------------------------------------------------------------------------- /problems/clone-graph/clone_graph.go: -------------------------------------------------------------------------------- 1 | package problem133 2 | -------------------------------------------------------------------------------- /problems/clone-graph/clone_graph_test.go: -------------------------------------------------------------------------------- 1 | package problem133 2 | -------------------------------------------------------------------------------- /problems/coin-change-2/coin_change_2.go: -------------------------------------------------------------------------------- 1 | package problem518 2 | -------------------------------------------------------------------------------- /problems/coin-change-2/coin_change_2_test.go: -------------------------------------------------------------------------------- 1 | package problem518 2 | -------------------------------------------------------------------------------- /problems/coin-change/coin_change.go: -------------------------------------------------------------------------------- 1 | package problem322 2 | -------------------------------------------------------------------------------- /problems/coin-change/coin_change_test.go: -------------------------------------------------------------------------------- 1 | package problem322 2 | -------------------------------------------------------------------------------- /problems/coin-path/coin_path.go: -------------------------------------------------------------------------------- 1 | package problem656 2 | -------------------------------------------------------------------------------- /problems/coin-path/coin_path_test.go: -------------------------------------------------------------------------------- 1 | package problem656 2 | -------------------------------------------------------------------------------- /problems/combination-sum-ii/combination_sum_ii.go: -------------------------------------------------------------------------------- 1 | package problem40 2 | -------------------------------------------------------------------------------- /problems/combination-sum-ii/combination_sum_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem40 2 | -------------------------------------------------------------------------------- /problems/combination-sum-iii/combination_sum_iii.go: -------------------------------------------------------------------------------- 1 | package problem216 2 | -------------------------------------------------------------------------------- /problems/combination-sum-iii/combination_sum_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem216 2 | -------------------------------------------------------------------------------- /problems/combination-sum-iv/combination_sum_iv.go: -------------------------------------------------------------------------------- 1 | package problem377 2 | -------------------------------------------------------------------------------- /problems/combination-sum-iv/combination_sum_iv_test.go: -------------------------------------------------------------------------------- 1 | package problem377 2 | -------------------------------------------------------------------------------- /problems/combination-sum/combination_sum.go: -------------------------------------------------------------------------------- 1 | package problem39 2 | -------------------------------------------------------------------------------- /problems/combination-sum/combination_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem39 2 | -------------------------------------------------------------------------------- /problems/combinations/combinations.go: -------------------------------------------------------------------------------- 1 | package problem77 2 | -------------------------------------------------------------------------------- /problems/combinations/combinations_test.go: -------------------------------------------------------------------------------- 1 | package problem77 2 | -------------------------------------------------------------------------------- /problems/concatenated-words/concatenated_words.go: -------------------------------------------------------------------------------- 1 | package problem472 2 | -------------------------------------------------------------------------------- /problems/concatenated-words/concatenated_words_test.go: -------------------------------------------------------------------------------- 1 | package problem472 2 | -------------------------------------------------------------------------------- /problems/consecutive-numbers-sum/consecutive_numbers_sum.go: -------------------------------------------------------------------------------- 1 | package problem829 2 | -------------------------------------------------------------------------------- /problems/consecutive-numbers-sum/consecutive_numbers_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem829 2 | -------------------------------------------------------------------------------- /problems/construct-quad-tree/construct_quad_tree.go: -------------------------------------------------------------------------------- 1 | package problem427 2 | -------------------------------------------------------------------------------- /problems/construct-quad-tree/construct_quad_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem427 2 | -------------------------------------------------------------------------------- /problems/construct-the-rectangle/construct_the_rectangle.go: -------------------------------------------------------------------------------- 1 | package problem492 2 | -------------------------------------------------------------------------------- /problems/construct-the-rectangle/construct_the_rectangle_test.go: -------------------------------------------------------------------------------- 1 | package problem492 2 | -------------------------------------------------------------------------------- /problems/contain-virus/contain_virus.go: -------------------------------------------------------------------------------- 1 | package problem749 2 | -------------------------------------------------------------------------------- /problems/contain-virus/contain_virus_test.go: -------------------------------------------------------------------------------- 1 | package problem749 2 | -------------------------------------------------------------------------------- /problems/contains-duplicate-iii/contains_duplicate_iii.go: -------------------------------------------------------------------------------- 1 | package problem220 2 | -------------------------------------------------------------------------------- /problems/contains-duplicate-iii/contains_duplicate_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem220 2 | -------------------------------------------------------------------------------- /problems/contains-duplicate/contains_duplicate.go: -------------------------------------------------------------------------------- 1 | package problem217 2 | -------------------------------------------------------------------------------- /problems/contains-duplicate/contains_duplicate_test.go: -------------------------------------------------------------------------------- 1 | package problem217 2 | -------------------------------------------------------------------------------- /problems/contiguous-array/contiguous_array.go: -------------------------------------------------------------------------------- 1 | package problem525 2 | -------------------------------------------------------------------------------- /problems/contiguous-array/contiguous_array_test.go: -------------------------------------------------------------------------------- 1 | package problem525 2 | -------------------------------------------------------------------------------- /problems/continuous-subarray-sum/continuous_subarray_sum.go: -------------------------------------------------------------------------------- 1 | package problem523 2 | -------------------------------------------------------------------------------- /problems/continuous-subarray-sum/continuous_subarray_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem523 2 | -------------------------------------------------------------------------------- /problems/convert-bst-to-greater-tree/convert_bst_to_greater_tree.go: -------------------------------------------------------------------------------- 1 | package problem538 2 | -------------------------------------------------------------------------------- /problems/convex-polygon/convex_polygon.go: -------------------------------------------------------------------------------- 1 | package problem469 2 | -------------------------------------------------------------------------------- /problems/convex-polygon/convex_polygon_test.go: -------------------------------------------------------------------------------- 1 | package problem469 2 | -------------------------------------------------------------------------------- /problems/corporate-flight-bookings/corporate_flight_bookings.go: -------------------------------------------------------------------------------- 1 | package problem1109 2 | -------------------------------------------------------------------------------- /problems/count-complete-tree-nodes/count_complete_tree_nodes.go: -------------------------------------------------------------------------------- 1 | package problem222 2 | -------------------------------------------------------------------------------- /problems/count-complete-tree-nodes/count_complete_tree_nodes_test.go: -------------------------------------------------------------------------------- 1 | package problem222 2 | -------------------------------------------------------------------------------- /problems/count-of-range-sum/count_of_range_sum.go: -------------------------------------------------------------------------------- 1 | package problem327 2 | -------------------------------------------------------------------------------- /problems/count-of-range-sum/count_of_range_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem327 2 | -------------------------------------------------------------------------------- /problems/count-the-repetitions/count_the_repetitions.go: -------------------------------------------------------------------------------- 1 | package problem466 2 | -------------------------------------------------------------------------------- /problems/count-the-repetitions/count_the_repetitions_test.go: -------------------------------------------------------------------------------- 1 | package problem466 2 | -------------------------------------------------------------------------------- /problems/count-univalue-subtrees/count_univalue_subtrees.go: -------------------------------------------------------------------------------- 1 | package problem250 2 | -------------------------------------------------------------------------------- /problems/count-univalue-subtrees/count_univalue_subtrees_test.go: -------------------------------------------------------------------------------- 1 | package problem250 2 | -------------------------------------------------------------------------------- /problems/counting-bits/counting_bits.go: -------------------------------------------------------------------------------- 1 | package problem338 2 | -------------------------------------------------------------------------------- /problems/counting-bits/counting_bits_test.go: -------------------------------------------------------------------------------- 1 | package problem338 2 | -------------------------------------------------------------------------------- /problems/couples-holding-hands/couples_holding_hands.go: -------------------------------------------------------------------------------- 1 | package problem765 2 | -------------------------------------------------------------------------------- /problems/couples-holding-hands/couples_holding_hands_test.go: -------------------------------------------------------------------------------- 1 | package problem765 2 | -------------------------------------------------------------------------------- /problems/course-schedule-ii/course_schedule_ii.go: -------------------------------------------------------------------------------- 1 | package problem210 2 | -------------------------------------------------------------------------------- /problems/course-schedule-ii/course_schedule_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem210 2 | -------------------------------------------------------------------------------- /problems/course-schedule-iii/course_schedule_iii.go: -------------------------------------------------------------------------------- 1 | package problem630 2 | -------------------------------------------------------------------------------- /problems/course-schedule-iii/course_schedule_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem630 2 | -------------------------------------------------------------------------------- /problems/course-schedule/course_schedule.go: -------------------------------------------------------------------------------- 1 | package problem207 2 | -------------------------------------------------------------------------------- /problems/course-schedule/course_schedule_test.go: -------------------------------------------------------------------------------- 1 | package problem207 2 | -------------------------------------------------------------------------------- /problems/cracking-the-safe/cracking_the_safe.go: -------------------------------------------------------------------------------- 1 | package problem753 2 | -------------------------------------------------------------------------------- /problems/cracking-the-safe/cracking_the_safe_test.go: -------------------------------------------------------------------------------- 1 | package problem753 2 | -------------------------------------------------------------------------------- /problems/create-maximum-number/create_maximum_number.go: -------------------------------------------------------------------------------- 1 | package problem321 2 | -------------------------------------------------------------------------------- /problems/create-maximum-number/create_maximum_number_test.go: -------------------------------------------------------------------------------- 1 | package problem321 2 | -------------------------------------------------------------------------------- /problems/custom-sort-string/custom_sort_string.go: -------------------------------------------------------------------------------- 1 | package problem791 2 | -------------------------------------------------------------------------------- /problems/custom-sort-string/custom_sort_string_test.go: -------------------------------------------------------------------------------- 1 | package problem791 2 | -------------------------------------------------------------------------------- /problems/cut-off-trees-for-golf-event/cut_off_trees_for_golf_event.go: -------------------------------------------------------------------------------- 1 | package problem675 2 | -------------------------------------------------------------------------------- /problems/daily-temperatures/daily_temperatures.go: -------------------------------------------------------------------------------- 1 | package problem739 2 | -------------------------------------------------------------------------------- /problems/daily-temperatures/daily_temperatures_test.go: -------------------------------------------------------------------------------- 1 | package problem739 2 | -------------------------------------------------------------------------------- /problems/decode-string/decode_string.go: -------------------------------------------------------------------------------- 1 | package problem394 2 | -------------------------------------------------------------------------------- /problems/decode-string/decode_string_test.go: -------------------------------------------------------------------------------- 1 | package problem394 2 | -------------------------------------------------------------------------------- /problems/decode-ways-ii/decode_ways_ii.go: -------------------------------------------------------------------------------- 1 | package problem639 2 | -------------------------------------------------------------------------------- /problems/decode-ways-ii/decode_ways_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem639 2 | -------------------------------------------------------------------------------- /problems/decode-ways/decode_ways.go: -------------------------------------------------------------------------------- 1 | package problem91 2 | -------------------------------------------------------------------------------- /problems/decode-ways/decode_ways_test.go: -------------------------------------------------------------------------------- 1 | package problem91 2 | -------------------------------------------------------------------------------- /problems/decoded-string-at-index/decoded_string_at_index.go: -------------------------------------------------------------------------------- 1 | package problem880 2 | -------------------------------------------------------------------------------- /problems/decoded-string-at-index/decoded_string_at_index_test.go: -------------------------------------------------------------------------------- 1 | package problem880 2 | -------------------------------------------------------------------------------- /problems/delete-and-earn/delete_and_earn.go: -------------------------------------------------------------------------------- 1 | package problem740 2 | -------------------------------------------------------------------------------- /problems/delete-and-earn/delete_and_earn_test.go: -------------------------------------------------------------------------------- 1 | package problem740 2 | -------------------------------------------------------------------------------- /problems/delete-node-in-a-bst/delete_node_in_a_bst.go: -------------------------------------------------------------------------------- 1 | package problem450 2 | -------------------------------------------------------------------------------- /problems/delete-node-in-a-bst/delete_node_in_a_bst_test.go: -------------------------------------------------------------------------------- 1 | package problem450 2 | -------------------------------------------------------------------------------- /problems/design-circular-deque/design_circular_deque.go: -------------------------------------------------------------------------------- 1 | package problem641 2 | -------------------------------------------------------------------------------- /problems/design-circular-deque/design_circular_deque_test.go: -------------------------------------------------------------------------------- 1 | package problem641 2 | -------------------------------------------------------------------------------- /problems/design-circular-queue/design_circular_queue.go: -------------------------------------------------------------------------------- 1 | package problem622 2 | -------------------------------------------------------------------------------- /problems/design-circular-queue/design_circular_queue_test.go: -------------------------------------------------------------------------------- 1 | package problem622 2 | -------------------------------------------------------------------------------- /problems/design-excel-sum-formula/design_excel_sum_formula.go: -------------------------------------------------------------------------------- 1 | package problem631 2 | -------------------------------------------------------------------------------- /problems/design-excel-sum-formula/design_excel_sum_formula_test.go: -------------------------------------------------------------------------------- 1 | package problem631 2 | -------------------------------------------------------------------------------- /problems/design-hit-counter/design_hit_counter.go: -------------------------------------------------------------------------------- 1 | package problem362 2 | -------------------------------------------------------------------------------- /problems/design-hit-counter/design_hit_counter_test.go: -------------------------------------------------------------------------------- 1 | package problem362 2 | -------------------------------------------------------------------------------- /problems/design-in-memory-file-system/design_in_memory_file_system.go: -------------------------------------------------------------------------------- 1 | package problem588 2 | -------------------------------------------------------------------------------- /problems/design-log-storage-system/design_log_storage_system.go: -------------------------------------------------------------------------------- 1 | package problem635 2 | -------------------------------------------------------------------------------- /problems/design-log-storage-system/design_log_storage_system_test.go: -------------------------------------------------------------------------------- 1 | package problem635 2 | -------------------------------------------------------------------------------- /problems/design-phone-directory/design_phone_directory.go: -------------------------------------------------------------------------------- 1 | package problem379 2 | -------------------------------------------------------------------------------- /problems/design-phone-directory/design_phone_directory_test.go: -------------------------------------------------------------------------------- 1 | package problem379 2 | -------------------------------------------------------------------------------- /problems/design-snake-game/design_snake_game.go: -------------------------------------------------------------------------------- 1 | package problem353 2 | -------------------------------------------------------------------------------- /problems/design-snake-game/design_snake_game_test.go: -------------------------------------------------------------------------------- 1 | package problem353 2 | -------------------------------------------------------------------------------- /problems/design-tic-tac-toe/design_tic_tac_toe.go: -------------------------------------------------------------------------------- 1 | package problem348 2 | -------------------------------------------------------------------------------- /problems/design-tic-tac-toe/design_tic_tac_toe_test.go: -------------------------------------------------------------------------------- 1 | package problem348 2 | -------------------------------------------------------------------------------- /problems/design-twitter/design_twitter.go: -------------------------------------------------------------------------------- 1 | package problem355 2 | -------------------------------------------------------------------------------- /problems/design-twitter/design_twitter_test.go: -------------------------------------------------------------------------------- 1 | package problem355 2 | -------------------------------------------------------------------------------- /problems/diagonal-traverse/diagonal_traverse.go: -------------------------------------------------------------------------------- 1 | package problem498 2 | -------------------------------------------------------------------------------- /problems/diagonal-traverse/diagonal_traverse_test.go: -------------------------------------------------------------------------------- 1 | package problem498 2 | -------------------------------------------------------------------------------- /problems/diameter-of-binary-tree/diameter_of_binary_tree.go: -------------------------------------------------------------------------------- 1 | package problem543 2 | -------------------------------------------------------------------------------- /problems/diameter-of-binary-tree/diameter_of_binary_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem543 2 | -------------------------------------------------------------------------------- /problems/distinct-subsequences-ii/distinct_subsequences_ii.go: -------------------------------------------------------------------------------- 1 | package problem940 2 | -------------------------------------------------------------------------------- /problems/distinct-subsequences-ii/distinct_subsequences_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem940 2 | -------------------------------------------------------------------------------- /problems/distinct-subsequences/distinct_subsequences.go: -------------------------------------------------------------------------------- 1 | package problem115 2 | -------------------------------------------------------------------------------- /problems/distinct-subsequences/distinct_subsequences_test.go: -------------------------------------------------------------------------------- 1 | package problem115 2 | -------------------------------------------------------------------------------- /problems/distribute-candies-to-people/distribute_candies_to_people.go: -------------------------------------------------------------------------------- 1 | package problem1103 2 | -------------------------------------------------------------------------------- /problems/distribute-candies/distribute_candies.go: -------------------------------------------------------------------------------- 1 | package problem575 2 | -------------------------------------------------------------------------------- /problems/distribute-candies/distribute_candies_test.go: -------------------------------------------------------------------------------- 1 | package problem575 2 | -------------------------------------------------------------------------------- /problems/divide-two-integers/divide_two_integers.go: -------------------------------------------------------------------------------- 1 | package problem29 2 | -------------------------------------------------------------------------------- /problems/divide-two-integers/divide_two_integers_test.go: -------------------------------------------------------------------------------- 1 | package problem29 2 | -------------------------------------------------------------------------------- /problems/domino-and-tromino-tiling/domino_and_tromino_tiling.go: -------------------------------------------------------------------------------- 1 | package problem790 2 | -------------------------------------------------------------------------------- /problems/domino-and-tromino-tiling/domino_and_tromino_tiling_test.go: -------------------------------------------------------------------------------- 1 | package problem790 2 | -------------------------------------------------------------------------------- /problems/dota2-senate/dota2_senate.go: -------------------------------------------------------------------------------- 1 | package problem649 2 | -------------------------------------------------------------------------------- /problems/dota2-senate/dota2_senate_test.go: -------------------------------------------------------------------------------- 1 | package problem649 2 | -------------------------------------------------------------------------------- /problems/dungeon-game/dungeon_game.go: -------------------------------------------------------------------------------- 1 | package problem174 2 | -------------------------------------------------------------------------------- /problems/dungeon-game/dungeon_game_test.go: -------------------------------------------------------------------------------- 1 | package problem174 2 | -------------------------------------------------------------------------------- /problems/edit-distance/edit_distance.go: -------------------------------------------------------------------------------- 1 | package problem72 2 | -------------------------------------------------------------------------------- /problems/edit-distance/edit_distance_test.go: -------------------------------------------------------------------------------- 1 | package problem72 2 | -------------------------------------------------------------------------------- /problems/elimination-game/elimination_game.go: -------------------------------------------------------------------------------- 1 | package problem390 2 | -------------------------------------------------------------------------------- /problems/elimination-game/elimination_game_test.go: -------------------------------------------------------------------------------- 1 | package problem390 2 | -------------------------------------------------------------------------------- /problems/employee-bonus/employee_bonus.sql: -------------------------------------------------------------------------------- 1 | # Write your MySQL query statement below 2 | -------------------------------------------------------------------------------- /problems/employee-free-time/employee_free_time.go: -------------------------------------------------------------------------------- 1 | package problem759 2 | -------------------------------------------------------------------------------- /problems/employee-free-time/employee_free_time_test.go: -------------------------------------------------------------------------------- 1 | package problem759 2 | -------------------------------------------------------------------------------- /problems/employee-importance/employee_importance.go: -------------------------------------------------------------------------------- 1 | package problem690 2 | -------------------------------------------------------------------------------- /problems/employee-importance/employee_importance_test.go: -------------------------------------------------------------------------------- 1 | package problem690 2 | -------------------------------------------------------------------------------- /problems/encode-and-decode-strings/encode_and_decode_strings.go: -------------------------------------------------------------------------------- 1 | package problem271 2 | -------------------------------------------------------------------------------- /problems/encode-and-decode-strings/encode_and_decode_strings_test.go: -------------------------------------------------------------------------------- 1 | package problem271 2 | -------------------------------------------------------------------------------- /problems/encode-and-decode-tinyurl/encode_and_decode_tinyurl.go: -------------------------------------------------------------------------------- 1 | package problem535 2 | -------------------------------------------------------------------------------- /problems/encode-and-decode-tinyurl/encode_and_decode_tinyurl_test.go: -------------------------------------------------------------------------------- 1 | package problem535 2 | -------------------------------------------------------------------------------- /problems/equal-rational-numbers/equal_rational_numbers.go: -------------------------------------------------------------------------------- 1 | package problem972 2 | -------------------------------------------------------------------------------- /problems/equal-tree-partition/equal_tree_partition.go: -------------------------------------------------------------------------------- 1 | package problem663 2 | -------------------------------------------------------------------------------- /problems/equal-tree-partition/equal_tree_partition_test.go: -------------------------------------------------------------------------------- 1 | package problem663 2 | -------------------------------------------------------------------------------- /problems/erect-the-fence/erect_the_fence.go: -------------------------------------------------------------------------------- 1 | package problem587 2 | -------------------------------------------------------------------------------- /problems/erect-the-fence/erect_the_fence_test.go: -------------------------------------------------------------------------------- 1 | package problem587 2 | -------------------------------------------------------------------------------- /problems/escape-the-ghosts/escape_the_ghosts.go: -------------------------------------------------------------------------------- 1 | package problem789 2 | -------------------------------------------------------------------------------- /problems/escape-the-ghosts/escape_the_ghosts_test.go: -------------------------------------------------------------------------------- 1 | package problem789 2 | -------------------------------------------------------------------------------- /problems/evaluate-division/evaluate_division.go: -------------------------------------------------------------------------------- 1 | package problem399 2 | -------------------------------------------------------------------------------- /problems/evaluate-division/evaluate_division_test.go: -------------------------------------------------------------------------------- 1 | package problem399 2 | -------------------------------------------------------------------------------- /problems/exam-room/exam_room.go: -------------------------------------------------------------------------------- 1 | package problem855 2 | -------------------------------------------------------------------------------- /problems/exam-room/exam_room_test.go: -------------------------------------------------------------------------------- 1 | package problem855 2 | -------------------------------------------------------------------------------- /problems/exclusive-time-of-functions/exclusive_time_of_functions.go: -------------------------------------------------------------------------------- 1 | package problem636 2 | -------------------------------------------------------------------------------- /problems/expression-add-operators/expression_add_operators.go: -------------------------------------------------------------------------------- 1 | package problem282 2 | -------------------------------------------------------------------------------- /problems/expression-add-operators/expression_add_operators_test.go: -------------------------------------------------------------------------------- 1 | package problem282 2 | -------------------------------------------------------------------------------- /problems/expressive-words/expressive_words.go: -------------------------------------------------------------------------------- 1 | package problem809 2 | -------------------------------------------------------------------------------- /problems/expressive-words/expressive_words_test.go: -------------------------------------------------------------------------------- 1 | package problem809 2 | -------------------------------------------------------------------------------- /problems/factor-combinations/factor_combinations.go: -------------------------------------------------------------------------------- 1 | package problem254 2 | -------------------------------------------------------------------------------- /problems/factor-combinations/factor_combinations_test.go: -------------------------------------------------------------------------------- 1 | package problem254 2 | -------------------------------------------------------------------------------- /problems/falling-squares/falling_squares.go: -------------------------------------------------------------------------------- 1 | package problem699 2 | -------------------------------------------------------------------------------- /problems/falling-squares/falling_squares_test.go: -------------------------------------------------------------------------------- 1 | package problem699 2 | -------------------------------------------------------------------------------- /problems/filling-bookcase-shelves/filling_bookcase_shelves.go: -------------------------------------------------------------------------------- 1 | package problem1105 2 | -------------------------------------------------------------------------------- /problems/find-anagram-mappings/find_anagram_mappings.go: -------------------------------------------------------------------------------- 1 | package problem760 2 | -------------------------------------------------------------------------------- /problems/find-anagram-mappings/find_anagram_mappings_test.go: -------------------------------------------------------------------------------- 1 | package problem760 2 | -------------------------------------------------------------------------------- /problems/find-and-replace-in-string/find_and_replace_in_string.go: -------------------------------------------------------------------------------- 1 | package problem833 2 | -------------------------------------------------------------------------------- /problems/find-and-replace-in-string/find_and_replace_in_string_test.go: -------------------------------------------------------------------------------- 1 | package problem833 2 | -------------------------------------------------------------------------------- /problems/find-and-replace-pattern/find_and_replace_pattern.go: -------------------------------------------------------------------------------- 1 | package problem890 2 | -------------------------------------------------------------------------------- /problems/find-and-replace-pattern/find_and_replace_pattern_test.go: -------------------------------------------------------------------------------- 1 | package problem890 2 | -------------------------------------------------------------------------------- /problems/find-bottom-left-tree-value/find_bottom_left_tree_value.go: -------------------------------------------------------------------------------- 1 | package problem513 2 | -------------------------------------------------------------------------------- /problems/find-duplicate-subtrees/find_duplicate_subtrees.go: -------------------------------------------------------------------------------- 1 | package problem652 2 | -------------------------------------------------------------------------------- /problems/find-duplicate-subtrees/find_duplicate_subtrees_test.go: -------------------------------------------------------------------------------- 1 | package problem652 2 | -------------------------------------------------------------------------------- /problems/find-eventual-safe-states/find_eventual_safe_states.go: -------------------------------------------------------------------------------- 1 | package problem802 2 | -------------------------------------------------------------------------------- /problems/find-eventual-safe-states/find_eventual_safe_states_test.go: -------------------------------------------------------------------------------- 1 | package problem802 2 | -------------------------------------------------------------------------------- /problems/find-in-mountain-array/find_in_mountain_array.go: -------------------------------------------------------------------------------- 1 | package problem1095 2 | -------------------------------------------------------------------------------- /problems/find-k-closest-elements/find_k_closest_elements.go: -------------------------------------------------------------------------------- 1 | package problem658 2 | -------------------------------------------------------------------------------- /problems/find-k-closest-elements/find_k_closest_elements_test.go: -------------------------------------------------------------------------------- 1 | package problem658 2 | -------------------------------------------------------------------------------- /problems/find-leaves-of-binary-tree/find_leaves_of_binary_tree.go: -------------------------------------------------------------------------------- 1 | package problem366 2 | -------------------------------------------------------------------------------- /problems/find-leaves-of-binary-tree/find_leaves_of_binary_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem366 2 | -------------------------------------------------------------------------------- /problems/find-median-from-data-stream/find_median_from_data_stream.go: -------------------------------------------------------------------------------- 1 | package problem295 2 | -------------------------------------------------------------------------------- /problems/find-peak-element/find_peak_element.go: -------------------------------------------------------------------------------- 1 | package problem162 2 | -------------------------------------------------------------------------------- /problems/find-peak-element/find_peak_element_test.go: -------------------------------------------------------------------------------- 1 | package problem162 2 | -------------------------------------------------------------------------------- /problems/find-permutation/find_permutation.go: -------------------------------------------------------------------------------- 1 | package problem484 2 | -------------------------------------------------------------------------------- /problems/find-permutation/find_permutation_test.go: -------------------------------------------------------------------------------- 1 | package problem484 2 | -------------------------------------------------------------------------------- /problems/find-right-interval/find_right_interval.go: -------------------------------------------------------------------------------- 1 | package problem436 2 | -------------------------------------------------------------------------------- /problems/find-right-interval/find_right_interval_test.go: -------------------------------------------------------------------------------- 1 | package problem436 2 | -------------------------------------------------------------------------------- /problems/find-the-celebrity/find_the_celebrity.go: -------------------------------------------------------------------------------- 1 | package problem277 2 | -------------------------------------------------------------------------------- /problems/find-the-celebrity/find_the_celebrity_test.go: -------------------------------------------------------------------------------- 1 | package problem277 2 | -------------------------------------------------------------------------------- /problems/find-the-closest-palindrome/find_the_closest_palindrome.go: -------------------------------------------------------------------------------- 1 | package problem564 2 | -------------------------------------------------------------------------------- /problems/find-the-difference/find_the_difference.go: -------------------------------------------------------------------------------- 1 | package problem389 2 | -------------------------------------------------------------------------------- /problems/find-the-difference/find_the_difference_test.go: -------------------------------------------------------------------------------- 1 | package problem389 2 | -------------------------------------------------------------------------------- /problems/find-the-duplicate-number/find_the_duplicate_number.go: -------------------------------------------------------------------------------- 1 | package problem287 2 | -------------------------------------------------------------------------------- /problems/find-the-duplicate-number/find_the_duplicate_number_test.go: -------------------------------------------------------------------------------- 1 | package problem287 2 | -------------------------------------------------------------------------------- /problems/first-bad-version/first_bad_version.go: -------------------------------------------------------------------------------- 1 | package problem278 2 | -------------------------------------------------------------------------------- /problems/first-bad-version/first_bad_version_test.go: -------------------------------------------------------------------------------- 1 | package problem278 2 | -------------------------------------------------------------------------------- /problems/first-missing-positive/first_missing_positive.go: -------------------------------------------------------------------------------- 1 | package problem41 2 | -------------------------------------------------------------------------------- /problems/first-missing-positive/first_missing_positive_test.go: -------------------------------------------------------------------------------- 1 | package problem41 2 | -------------------------------------------------------------------------------- /problems/flatten-2d-vector/flatten_2d_vector.go: -------------------------------------------------------------------------------- 1 | package problem251 2 | -------------------------------------------------------------------------------- /problems/flatten-2d-vector/flatten_2d_vector_test.go: -------------------------------------------------------------------------------- 1 | package problem251 2 | -------------------------------------------------------------------------------- /problems/flatten-nested-list-iterator/flatten_nested_list_iterator.go: -------------------------------------------------------------------------------- 1 | package problem341 2 | -------------------------------------------------------------------------------- /problems/flip-equivalent-binary-trees/flip_equivalent_binary_trees.go: -------------------------------------------------------------------------------- 1 | package problem951 2 | -------------------------------------------------------------------------------- /problems/flip-game-ii/flip_game_ii.go: -------------------------------------------------------------------------------- 1 | package problem294 2 | -------------------------------------------------------------------------------- /problems/flip-game-ii/flip_game_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem294 2 | -------------------------------------------------------------------------------- /problems/flip-game/flip_game.go: -------------------------------------------------------------------------------- 1 | package problem293 2 | -------------------------------------------------------------------------------- /problems/flip-game/flip_game_test.go: -------------------------------------------------------------------------------- 1 | package problem293 2 | -------------------------------------------------------------------------------- /problems/flood-fill/flood_fill.go: -------------------------------------------------------------------------------- 1 | package problem733 2 | -------------------------------------------------------------------------------- /problems/flood-fill/flood_fill_test.go: -------------------------------------------------------------------------------- 1 | package problem733 2 | -------------------------------------------------------------------------------- /problems/freedom-trail/freedom_trail.go: -------------------------------------------------------------------------------- 1 | package problem514 2 | -------------------------------------------------------------------------------- /problems/freedom-trail/freedom_trail_test.go: -------------------------------------------------------------------------------- 1 | package problem514 2 | -------------------------------------------------------------------------------- /problems/friend-circles/friend_circles.go: -------------------------------------------------------------------------------- 1 | package problem547 2 | -------------------------------------------------------------------------------- /problems/friend-circles/friend_circles_test.go: -------------------------------------------------------------------------------- 1 | package problem547 2 | -------------------------------------------------------------------------------- /problems/friends-of-appropriate-ages/friends_of_appropriate_ages.go: -------------------------------------------------------------------------------- 1 | package problem825 2 | -------------------------------------------------------------------------------- /problems/frog-jump/frog_jump.go: -------------------------------------------------------------------------------- 1 | package problem403 2 | -------------------------------------------------------------------------------- /problems/frog-jump/frog_jump_test.go: -------------------------------------------------------------------------------- 1 | package problem403 2 | -------------------------------------------------------------------------------- /problems/fruit-into-baskets/fruit_into_baskets.go: -------------------------------------------------------------------------------- 1 | package problem904 2 | -------------------------------------------------------------------------------- /problems/fruit-into-baskets/fruit_into_baskets_test.go: -------------------------------------------------------------------------------- 1 | package problem904 2 | -------------------------------------------------------------------------------- /problems/game-of-life/game_of_life.go: -------------------------------------------------------------------------------- 1 | package problem289 2 | -------------------------------------------------------------------------------- /problems/game-of-life/game_of_life_test.go: -------------------------------------------------------------------------------- 1 | package problem289 2 | -------------------------------------------------------------------------------- /problems/gas-station/gas_station.go: -------------------------------------------------------------------------------- 1 | package problem134 2 | -------------------------------------------------------------------------------- /problems/gas-station/gas_station_test.go: -------------------------------------------------------------------------------- 1 | package problem134 2 | -------------------------------------------------------------------------------- /problems/generalized-abbreviation/generalized_abbreviation.go: -------------------------------------------------------------------------------- 1 | package problem320 2 | -------------------------------------------------------------------------------- /problems/generalized-abbreviation/generalized_abbreviation_test.go: -------------------------------------------------------------------------------- 1 | package problem320 2 | -------------------------------------------------------------------------------- /problems/global-and-local-inversions/global_and_local_inversions.go: -------------------------------------------------------------------------------- 1 | package problem775 2 | -------------------------------------------------------------------------------- /problems/graph-valid-tree/graph_valid_tree.go: -------------------------------------------------------------------------------- 1 | package problem261 2 | -------------------------------------------------------------------------------- /problems/graph-valid-tree/graph_valid_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem261 2 | -------------------------------------------------------------------------------- /problems/gray-code/gray_code.go: -------------------------------------------------------------------------------- 1 | package problem89 2 | -------------------------------------------------------------------------------- /problems/gray-code/gray_code_test.go: -------------------------------------------------------------------------------- 1 | package problem89 2 | -------------------------------------------------------------------------------- /problems/group-anagrams/group_anagrams.go: -------------------------------------------------------------------------------- 1 | package problem49 2 | -------------------------------------------------------------------------------- /problems/group-anagrams/group_anagrams_test.go: -------------------------------------------------------------------------------- 1 | package problem49 2 | -------------------------------------------------------------------------------- /problems/group-shifted-strings/group_shifted_strings.go: -------------------------------------------------------------------------------- 1 | package problem249 2 | -------------------------------------------------------------------------------- /problems/group-shifted-strings/group_shifted_strings_test.go: -------------------------------------------------------------------------------- 1 | package problem249 2 | -------------------------------------------------------------------------------- /problems/guess-number-higher-or-lower/guess_number_higher_or_lower.go: -------------------------------------------------------------------------------- 1 | package problem374 2 | -------------------------------------------------------------------------------- /problems/guess-the-word/guess_the_word.go: -------------------------------------------------------------------------------- 1 | package problem843 2 | -------------------------------------------------------------------------------- /problems/guess-the-word/guess_the_word_test.go: -------------------------------------------------------------------------------- 1 | package problem843 2 | -------------------------------------------------------------------------------- /problems/h-index-ii/h_index_ii.go: -------------------------------------------------------------------------------- 1 | package problem275 2 | -------------------------------------------------------------------------------- /problems/h-index-ii/h_index_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem275 2 | -------------------------------------------------------------------------------- /problems/h-index/h_index.go: -------------------------------------------------------------------------------- 1 | package problem274 2 | -------------------------------------------------------------------------------- /problems/h-index/h_index_test.go: -------------------------------------------------------------------------------- 1 | package problem274 2 | -------------------------------------------------------------------------------- /problems/hand-of-straights/hand_of_straights.go: -------------------------------------------------------------------------------- 1 | package problem846 2 | -------------------------------------------------------------------------------- /problems/hand-of-straights/hand_of_straights_test.go: -------------------------------------------------------------------------------- 1 | package problem846 2 | -------------------------------------------------------------------------------- /problems/heaters/heaters.go: -------------------------------------------------------------------------------- 1 | package problem475 2 | -------------------------------------------------------------------------------- /problems/heaters/heaters_test.go: -------------------------------------------------------------------------------- 1 | package problem475 2 | -------------------------------------------------------------------------------- /problems/house-robber-ii/house_robber_ii.go: -------------------------------------------------------------------------------- 1 | package problem213 2 | -------------------------------------------------------------------------------- /problems/house-robber-ii/house_robber_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem213 2 | -------------------------------------------------------------------------------- /problems/house-robber-iii/house_robber_iii.go: -------------------------------------------------------------------------------- 1 | package problem337 2 | -------------------------------------------------------------------------------- /problems/house-robber-iii/house_robber_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem337 2 | -------------------------------------------------------------------------------- /problems/image-overlap/image_overlap.go: -------------------------------------------------------------------------------- 1 | package problem835 2 | -------------------------------------------------------------------------------- /problems/image-overlap/image_overlap_test.go: -------------------------------------------------------------------------------- 1 | package problem835 2 | -------------------------------------------------------------------------------- /problems/implement-magic-dictionary/implement_magic_dictionary.go: -------------------------------------------------------------------------------- 1 | package problem676 2 | -------------------------------------------------------------------------------- /problems/implement-magic-dictionary/implement_magic_dictionary_test.go: -------------------------------------------------------------------------------- 1 | package problem676 2 | -------------------------------------------------------------------------------- /problems/implement-queue-using-stacks/implement_queue_using_stacks.go: -------------------------------------------------------------------------------- 1 | package problem232 2 | -------------------------------------------------------------------------------- /problems/implement-rand10-using-rand7/implement_rand10_using_rand7.go: -------------------------------------------------------------------------------- 1 | package problem470 2 | -------------------------------------------------------------------------------- /problems/implement-stack-using-queues/implement_stack_using_queues.go: -------------------------------------------------------------------------------- 1 | package problem225 2 | -------------------------------------------------------------------------------- /problems/implement-trie-prefix-tree/implement_trie_prefix_tree.go: -------------------------------------------------------------------------------- 1 | package problem208 2 | -------------------------------------------------------------------------------- /problems/implement-trie-prefix-tree/implement_trie_prefix_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem208 2 | -------------------------------------------------------------------------------- /problems/increasing-order-search-tree/increasing_order_search_tree.go: -------------------------------------------------------------------------------- 1 | package problem897 2 | -------------------------------------------------------------------------------- /problems/increasing-subsequences/increasing_subsequences.go: -------------------------------------------------------------------------------- 1 | package problem491 2 | -------------------------------------------------------------------------------- /problems/increasing-subsequences/increasing_subsequences_test.go: -------------------------------------------------------------------------------- 1 | package problem491 2 | -------------------------------------------------------------------------------- /problems/inorder-successor-in-bst/inorder_successor_in_bst.go: -------------------------------------------------------------------------------- 1 | package problem285 2 | -------------------------------------------------------------------------------- /problems/inorder-successor-in-bst/inorder_successor_in_bst_test.go: -------------------------------------------------------------------------------- 1 | package problem285 2 | -------------------------------------------------------------------------------- /problems/insert-delete-getrandom-o1/insert_delete_getrandom_o1.go: -------------------------------------------------------------------------------- 1 | package problem380 2 | -------------------------------------------------------------------------------- /problems/insert-delete-getrandom-o1/insert_delete_getrandom_o1_test.go: -------------------------------------------------------------------------------- 1 | package problem380 2 | -------------------------------------------------------------------------------- /problems/insert-interval/insert_interval.go: -------------------------------------------------------------------------------- 1 | package problem57 2 | -------------------------------------------------------------------------------- /problems/insert-interval/insert_interval_test.go: -------------------------------------------------------------------------------- 1 | package problem57 2 | -------------------------------------------------------------------------------- /problems/insertion-sort-list/insertion_sort_list.go: -------------------------------------------------------------------------------- 1 | package problem147 2 | -------------------------------------------------------------------------------- /problems/insertion-sort-list/insertion_sort_list_test.go: -------------------------------------------------------------------------------- 1 | package problem147 2 | -------------------------------------------------------------------------------- /problems/integer-replacement/integer_replacement.go: -------------------------------------------------------------------------------- 1 | package problem397 2 | -------------------------------------------------------------------------------- /problems/integer-replacement/integer_replacement_test.go: -------------------------------------------------------------------------------- 1 | package problem397 2 | -------------------------------------------------------------------------------- /problems/integer-to-english-words/integer_to_english_words.go: -------------------------------------------------------------------------------- 1 | package problem273 2 | -------------------------------------------------------------------------------- /problems/integer-to-english-words/integer_to_english_words_test.go: -------------------------------------------------------------------------------- 1 | package problem273 2 | -------------------------------------------------------------------------------- /problems/interleaving-string/interleaving_string.go: -------------------------------------------------------------------------------- 1 | package problem97 2 | -------------------------------------------------------------------------------- /problems/interleaving-string/interleaving_string_test.go: -------------------------------------------------------------------------------- 1 | package problem97 2 | -------------------------------------------------------------------------------- /problems/intersection-of-two-arrays/intersection_of_two_arrays.go: -------------------------------------------------------------------------------- 1 | package problem349 2 | -------------------------------------------------------------------------------- /problems/intersection-of-two-arrays/intersection_of_two_arrays_test.go: -------------------------------------------------------------------------------- 1 | package problem349 2 | -------------------------------------------------------------------------------- /problems/interval-list-intersections/interval_list_intersections.go: -------------------------------------------------------------------------------- 1 | package problem986 2 | -------------------------------------------------------------------------------- /problems/ip-to-cidr/ip_to_cidr.go: -------------------------------------------------------------------------------- 1 | package problem751 2 | -------------------------------------------------------------------------------- /problems/ip-to-cidr/ip_to_cidr_test.go: -------------------------------------------------------------------------------- 1 | package problem751 2 | -------------------------------------------------------------------------------- /problems/ipo/ipo.go: -------------------------------------------------------------------------------- 1 | package problem502 2 | -------------------------------------------------------------------------------- /problems/ipo/ipo_test.go: -------------------------------------------------------------------------------- 1 | package problem502 2 | -------------------------------------------------------------------------------- /problems/is-graph-bipartite/is_graph_bipartite.go: -------------------------------------------------------------------------------- 1 | package problem785 2 | -------------------------------------------------------------------------------- /problems/is-graph-bipartite/is_graph_bipartite_test.go: -------------------------------------------------------------------------------- 1 | package problem785 2 | -------------------------------------------------------------------------------- /problems/is-subsequence/is_subsequence.go: -------------------------------------------------------------------------------- 1 | package problem392 2 | -------------------------------------------------------------------------------- /problems/is-subsequence/is_subsequence_test.go: -------------------------------------------------------------------------------- 1 | package problem392 2 | -------------------------------------------------------------------------------- /problems/island-perimeter/island_perimeter.go: -------------------------------------------------------------------------------- 1 | package problem463 2 | -------------------------------------------------------------------------------- /problems/island-perimeter/island_perimeter_test.go: -------------------------------------------------------------------------------- 1 | package problem463 2 | -------------------------------------------------------------------------------- /problems/isomorphic-strings/isomorphic_strings.go: -------------------------------------------------------------------------------- 1 | package problem205 2 | -------------------------------------------------------------------------------- /problems/isomorphic-strings/isomorphic_strings_test.go: -------------------------------------------------------------------------------- 1 | package problem205 2 | -------------------------------------------------------------------------------- /problems/jump-game-ii/jump_game_ii.go: -------------------------------------------------------------------------------- 1 | package problem45 2 | -------------------------------------------------------------------------------- /problems/jump-game-ii/jump_game_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem45 2 | -------------------------------------------------------------------------------- /problems/jump-game/jump_game.go: -------------------------------------------------------------------------------- 1 | package problem55 2 | -------------------------------------------------------------------------------- /problems/jump-game/jump_game_test.go: -------------------------------------------------------------------------------- 1 | package problem55 2 | -------------------------------------------------------------------------------- /problems/k-empty-slots/k_empty_slots.go: -------------------------------------------------------------------------------- 1 | package problem683 2 | -------------------------------------------------------------------------------- /problems/k-empty-slots/k_empty_slots_test.go: -------------------------------------------------------------------------------- 1 | package problem683 2 | -------------------------------------------------------------------------------- /problems/k-inverse-pairs-array/k_inverse_pairs_array.go: -------------------------------------------------------------------------------- 1 | package problem629 2 | -------------------------------------------------------------------------------- /problems/k-inverse-pairs-array/k_inverse_pairs_array_test.go: -------------------------------------------------------------------------------- 1 | package problem629 2 | -------------------------------------------------------------------------------- /problems/k-similar-strings/k_similar_strings.go: -------------------------------------------------------------------------------- 1 | package problem854 2 | -------------------------------------------------------------------------------- /problems/k-similar-strings/k_similar_strings_test.go: -------------------------------------------------------------------------------- 1 | package problem854 2 | -------------------------------------------------------------------------------- /problems/k-th-smallest-prime-fraction/k_th_smallest_prime_fraction.go: -------------------------------------------------------------------------------- 1 | package problem786 2 | -------------------------------------------------------------------------------- /problems/k-th-symbol-in-grammar/k_th_symbol_in_grammar.go: -------------------------------------------------------------------------------- 1 | package problem779 2 | -------------------------------------------------------------------------------- /problems/k-th-symbol-in-grammar/k_th_symbol_in_grammar_test.go: -------------------------------------------------------------------------------- 1 | package problem779 2 | -------------------------------------------------------------------------------- /problems/keyboard-row/keyboard_row.go: -------------------------------------------------------------------------------- 1 | package problem500 2 | -------------------------------------------------------------------------------- /problems/keyboard-row/keyboard_row_test.go: -------------------------------------------------------------------------------- 1 | package problem500 2 | -------------------------------------------------------------------------------- /problems/keys-and-rooms/keys_and_rooms.go: -------------------------------------------------------------------------------- 1 | package problem841 2 | -------------------------------------------------------------------------------- /problems/keys-and-rooms/keys_and_rooms_test.go: -------------------------------------------------------------------------------- 1 | package problem841 2 | -------------------------------------------------------------------------------- /problems/kill-process/kill_process.go: -------------------------------------------------------------------------------- 1 | package problem582 2 | -------------------------------------------------------------------------------- /problems/kill-process/kill_process_test.go: -------------------------------------------------------------------------------- 1 | package problem582 2 | -------------------------------------------------------------------------------- /problems/knight-dialer/knight_dialer.go: -------------------------------------------------------------------------------- 1 | package problem935 2 | -------------------------------------------------------------------------------- /problems/knight-dialer/knight_dialer_test.go: -------------------------------------------------------------------------------- 1 | package problem935 2 | -------------------------------------------------------------------------------- /problems/koko-eating-bananas/koko_eating_bananas.go: -------------------------------------------------------------------------------- 1 | package problem875 2 | -------------------------------------------------------------------------------- /problems/koko-eating-bananas/koko_eating_bananas_test.go: -------------------------------------------------------------------------------- 1 | package problem875 2 | -------------------------------------------------------------------------------- /problems/largest-bst-subtree/largest_bst_subtree.go: -------------------------------------------------------------------------------- 1 | package problem333 2 | -------------------------------------------------------------------------------- /problems/largest-bst-subtree/largest_bst_subtree_test.go: -------------------------------------------------------------------------------- 1 | package problem333 2 | -------------------------------------------------------------------------------- /problems/largest-divisible-subset/largest_divisible_subset.go: -------------------------------------------------------------------------------- 1 | package problem368 2 | -------------------------------------------------------------------------------- /problems/largest-divisible-subset/largest_divisible_subset_test.go: -------------------------------------------------------------------------------- 1 | package problem368 2 | -------------------------------------------------------------------------------- /problems/largest-number/largest_number.go: -------------------------------------------------------------------------------- 1 | package problem179 2 | -------------------------------------------------------------------------------- /problems/largest-number/largest_number_test.go: -------------------------------------------------------------------------------- 1 | package problem179 2 | -------------------------------------------------------------------------------- /problems/largest-palindrome-product/largest_palindrome_product.go: -------------------------------------------------------------------------------- 1 | package problem479 2 | -------------------------------------------------------------------------------- /problems/largest-palindrome-product/largest_palindrome_product_test.go: -------------------------------------------------------------------------------- 1 | package problem479 2 | -------------------------------------------------------------------------------- /problems/largest-plus-sign/largest_plus_sign.go: -------------------------------------------------------------------------------- 1 | package problem764 2 | -------------------------------------------------------------------------------- /problems/largest-plus-sign/largest_plus_sign_test.go: -------------------------------------------------------------------------------- 1 | package problem764 2 | -------------------------------------------------------------------------------- /problems/largest-sum-of-averages/largest_sum_of_averages.go: -------------------------------------------------------------------------------- 1 | package problem813 2 | -------------------------------------------------------------------------------- /problems/largest-sum-of-averages/largest_sum_of_averages_test.go: -------------------------------------------------------------------------------- 1 | package problem813 2 | -------------------------------------------------------------------------------- /problems/largest-triangle-area/largest_triangle_area.go: -------------------------------------------------------------------------------- 1 | package problem812 2 | -------------------------------------------------------------------------------- /problems/largest-triangle-area/largest_triangle_area_test.go: -------------------------------------------------------------------------------- 1 | package problem812 2 | -------------------------------------------------------------------------------- /problems/leaf-similar-trees/leaf_similar_trees.go: -------------------------------------------------------------------------------- 1 | package problem872 2 | -------------------------------------------------------------------------------- /problems/leaf-similar-trees/leaf_similar_trees_test.go: -------------------------------------------------------------------------------- 1 | package problem872 2 | -------------------------------------------------------------------------------- /problems/lemonade-change/lemonade_change.go: -------------------------------------------------------------------------------- 1 | package problem860 2 | -------------------------------------------------------------------------------- /problems/lemonade-change/lemonade_change_test.go: -------------------------------------------------------------------------------- 1 | package problem860 2 | -------------------------------------------------------------------------------- /problems/letter-case-permutation/letter_case_permutation.go: -------------------------------------------------------------------------------- 1 | package problem784 2 | -------------------------------------------------------------------------------- /problems/letter-case-permutation/letter_case_permutation_test.go: -------------------------------------------------------------------------------- 1 | package problem784 2 | -------------------------------------------------------------------------------- /problems/lexicographical-numbers/lexicographical_numbers.go: -------------------------------------------------------------------------------- 1 | package problem386 2 | -------------------------------------------------------------------------------- /problems/lexicographical-numbers/lexicographical_numbers_test.go: -------------------------------------------------------------------------------- 1 | package problem386 2 | -------------------------------------------------------------------------------- /problems/lfu-cache/lfu_cache.go: -------------------------------------------------------------------------------- 1 | package problem460 2 | -------------------------------------------------------------------------------- /problems/lfu-cache/lfu_cache_test.go: -------------------------------------------------------------------------------- 1 | package problem460 2 | -------------------------------------------------------------------------------- /problems/license-key-formatting/license_key_formatting.go: -------------------------------------------------------------------------------- 1 | package problem482 2 | -------------------------------------------------------------------------------- /problems/license-key-formatting/license_key_formatting_test.go: -------------------------------------------------------------------------------- 1 | package problem482 2 | -------------------------------------------------------------------------------- /problems/line-reflection/line_reflection.go: -------------------------------------------------------------------------------- 1 | package problem356 2 | -------------------------------------------------------------------------------- /problems/line-reflection/line_reflection_test.go: -------------------------------------------------------------------------------- 1 | package problem356 2 | -------------------------------------------------------------------------------- /problems/linked-list-components/linked_list_components.go: -------------------------------------------------------------------------------- 1 | package problem817 2 | -------------------------------------------------------------------------------- /problems/linked-list-components/linked_list_components_test.go: -------------------------------------------------------------------------------- 1 | package problem817 2 | -------------------------------------------------------------------------------- /problems/linked-list-cycle-ii/linked_list_cycle_ii.go: -------------------------------------------------------------------------------- 1 | package problem142 2 | -------------------------------------------------------------------------------- /problems/linked-list-cycle-ii/linked_list_cycle_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem142 2 | -------------------------------------------------------------------------------- /problems/linked-list-random-node/linked_list_random_node.go: -------------------------------------------------------------------------------- 1 | package problem382 2 | -------------------------------------------------------------------------------- /problems/linked-list-random-node/linked_list_random_node_test.go: -------------------------------------------------------------------------------- 1 | package problem382 2 | -------------------------------------------------------------------------------- /problems/logger-rate-limiter/logger_rate_limiter.go: -------------------------------------------------------------------------------- 1 | package problem359 2 | -------------------------------------------------------------------------------- /problems/logger-rate-limiter/logger_rate_limiter_test.go: -------------------------------------------------------------------------------- 1 | package problem359 2 | -------------------------------------------------------------------------------- /problems/lonely-pixel-i/lonely_pixel_i.go: -------------------------------------------------------------------------------- 1 | package problem531 2 | -------------------------------------------------------------------------------- /problems/lonely-pixel-i/lonely_pixel_i_test.go: -------------------------------------------------------------------------------- 1 | package problem531 2 | -------------------------------------------------------------------------------- /problems/lonely-pixel-ii/lonely_pixel_ii.go: -------------------------------------------------------------------------------- 1 | package problem533 2 | -------------------------------------------------------------------------------- /problems/lonely-pixel-ii/lonely_pixel_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem533 2 | -------------------------------------------------------------------------------- /problems/longest-absolute-file-path/longest_absolute_file_path.go: -------------------------------------------------------------------------------- 1 | package problem388 2 | -------------------------------------------------------------------------------- /problems/longest-absolute-file-path/longest_absolute_file_path_test.go: -------------------------------------------------------------------------------- 1 | package problem388 2 | -------------------------------------------------------------------------------- /problems/longest-consecutive-sequence/longest_consecutive_sequence.go: -------------------------------------------------------------------------------- 1 | package problem128 2 | -------------------------------------------------------------------------------- /problems/longest-mountain-in-array/longest_mountain_in_array.go: -------------------------------------------------------------------------------- 1 | package problem845 2 | -------------------------------------------------------------------------------- /problems/longest-mountain-in-array/longest_mountain_in_array_test.go: -------------------------------------------------------------------------------- 1 | package problem845 2 | -------------------------------------------------------------------------------- /problems/longest-palindrome/longest_palindrome.go: -------------------------------------------------------------------------------- 1 | package problem409 2 | -------------------------------------------------------------------------------- /problems/longest-palindrome/longest_palindrome_test.go: -------------------------------------------------------------------------------- 1 | package problem409 2 | -------------------------------------------------------------------------------- /problems/longest-turbulent-subarray/longest_turbulent_subarray.go: -------------------------------------------------------------------------------- 1 | package problem978 2 | -------------------------------------------------------------------------------- /problems/longest-univalue-path/longest_univalue_path.go: -------------------------------------------------------------------------------- 1 | package problem687 2 | -------------------------------------------------------------------------------- /problems/longest-univalue-path/longest_univalue_path_test.go: -------------------------------------------------------------------------------- 1 | package problem687 2 | -------------------------------------------------------------------------------- /problems/longest-word-in-dictionary/longest_word_in_dictionary.go: -------------------------------------------------------------------------------- 1 | package problem720 2 | -------------------------------------------------------------------------------- /problems/longest-word-in-dictionary/longest_word_in_dictionary_test.go: -------------------------------------------------------------------------------- 1 | package problem720 2 | -------------------------------------------------------------------------------- /problems/loud-and-rich/loud_and_rich.go: -------------------------------------------------------------------------------- 1 | package problem851 2 | -------------------------------------------------------------------------------- /problems/loud-and-rich/loud_and_rich_test.go: -------------------------------------------------------------------------------- 1 | package problem851 2 | -------------------------------------------------------------------------------- /problems/lru-cache/lru_cache.go: -------------------------------------------------------------------------------- 1 | package problem146 2 | -------------------------------------------------------------------------------- /problems/lru-cache/lru_cache_test.go: -------------------------------------------------------------------------------- 1 | package problem146 2 | -------------------------------------------------------------------------------- /problems/magical-string/magical_string.go: -------------------------------------------------------------------------------- 1 | package problem481 2 | -------------------------------------------------------------------------------- /problems/magical-string/magical_string_test.go: -------------------------------------------------------------------------------- 1 | package problem481 2 | -------------------------------------------------------------------------------- /problems/majority-element-ii/majority_element_ii.go: -------------------------------------------------------------------------------- 1 | package problem229 2 | -------------------------------------------------------------------------------- /problems/majority-element-ii/majority_element_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem229 2 | -------------------------------------------------------------------------------- /problems/making-a-large-island/making_a_large_island.go: -------------------------------------------------------------------------------- 1 | package problem827 2 | -------------------------------------------------------------------------------- /problems/making-a-large-island/making_a_large_island_test.go: -------------------------------------------------------------------------------- 1 | package problem827 2 | -------------------------------------------------------------------------------- /problems/map-sum-pairs/map_sum_pairs.go: -------------------------------------------------------------------------------- 1 | package problem677 2 | -------------------------------------------------------------------------------- /problems/map-sum-pairs/map_sum_pairs_test.go: -------------------------------------------------------------------------------- 1 | package problem677 2 | -------------------------------------------------------------------------------- /problems/masking-personal-information/masking_personal_information.go: -------------------------------------------------------------------------------- 1 | package problem831 2 | -------------------------------------------------------------------------------- /problems/matchsticks-to-square/matchsticks_to_square.go: -------------------------------------------------------------------------------- 1 | package problem473 2 | -------------------------------------------------------------------------------- /problems/matchsticks-to-square/matchsticks_to_square_test.go: -------------------------------------------------------------------------------- 1 | package problem473 2 | -------------------------------------------------------------------------------- /problems/max-area-of-island/max_area_of_island.go: -------------------------------------------------------------------------------- 1 | package problem695 2 | -------------------------------------------------------------------------------- /problems/max-area-of-island/max_area_of_island_test.go: -------------------------------------------------------------------------------- 1 | package problem695 2 | -------------------------------------------------------------------------------- /problems/max-chunks-to-make-sorted-ii/max_chunks_to_make_sorted_ii.go: -------------------------------------------------------------------------------- 1 | package problem768 2 | -------------------------------------------------------------------------------- /problems/max-chunks-to-make-sorted/max_chunks_to_make_sorted.go: -------------------------------------------------------------------------------- 1 | package problem769 2 | -------------------------------------------------------------------------------- /problems/max-chunks-to-make-sorted/max_chunks_to_make_sorted_test.go: -------------------------------------------------------------------------------- 1 | package problem769 2 | -------------------------------------------------------------------------------- /problems/max-consecutive-ones-ii/max_consecutive_ones_ii.go: -------------------------------------------------------------------------------- 1 | package problem487 2 | -------------------------------------------------------------------------------- /problems/max-consecutive-ones-ii/max_consecutive_ones_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem487 2 | -------------------------------------------------------------------------------- /problems/max-points-on-a-line/max_points_on_a_line.go: -------------------------------------------------------------------------------- 1 | package problem149 2 | -------------------------------------------------------------------------------- /problems/max-points-on-a-line/max_points_on_a_line_test.go: -------------------------------------------------------------------------------- 1 | package problem149 2 | -------------------------------------------------------------------------------- /problems/max-stack/max_stack.go: -------------------------------------------------------------------------------- 1 | package problem716 2 | -------------------------------------------------------------------------------- /problems/max-stack/max_stack_test.go: -------------------------------------------------------------------------------- 1 | package problem716 2 | -------------------------------------------------------------------------------- /problems/maximal-rectangle/maximal_rectangle.go: -------------------------------------------------------------------------------- 1 | package problem85 2 | -------------------------------------------------------------------------------- /problems/maximal-rectangle/maximal_rectangle_test.go: -------------------------------------------------------------------------------- 1 | package problem85 2 | -------------------------------------------------------------------------------- /problems/maximal-square/maximal_square.go: -------------------------------------------------------------------------------- 1 | package problem221 2 | -------------------------------------------------------------------------------- /problems/maximal-square/maximal_square_test.go: -------------------------------------------------------------------------------- 1 | package problem221 2 | -------------------------------------------------------------------------------- /problems/maximum-average-subarray-ii/maximum_average_subarray_ii.go: -------------------------------------------------------------------------------- 1 | package problem644 2 | -------------------------------------------------------------------------------- /problems/maximum-binary-tree-ii/maximum_binary_tree_ii.go: -------------------------------------------------------------------------------- 1 | package problem998 2 | -------------------------------------------------------------------------------- /problems/maximum-binary-tree/maximum_binary_tree.go: -------------------------------------------------------------------------------- 1 | package problem654 2 | -------------------------------------------------------------------------------- /problems/maximum-binary-tree/maximum_binary_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem654 2 | -------------------------------------------------------------------------------- /problems/maximum-depth-of-n-ary-tree/maximum_depth_of_n_ary_tree.go: -------------------------------------------------------------------------------- 1 | package problem559 2 | -------------------------------------------------------------------------------- /problems/maximum-distance-in-arrays/maximum_distance_in_arrays.go: -------------------------------------------------------------------------------- 1 | package problem624 2 | -------------------------------------------------------------------------------- /problems/maximum-distance-in-arrays/maximum_distance_in_arrays_test.go: -------------------------------------------------------------------------------- 1 | package problem624 2 | -------------------------------------------------------------------------------- /problems/maximum-frequency-stack/maximum_frequency_stack.go: -------------------------------------------------------------------------------- 1 | package problem895 2 | -------------------------------------------------------------------------------- /problems/maximum-frequency-stack/maximum_frequency_stack_test.go: -------------------------------------------------------------------------------- 1 | package problem895 2 | -------------------------------------------------------------------------------- /problems/maximum-gap/maximum_gap.go: -------------------------------------------------------------------------------- 1 | package problem164 2 | -------------------------------------------------------------------------------- /problems/maximum-gap/maximum_gap_test.go: -------------------------------------------------------------------------------- 1 | package problem164 2 | -------------------------------------------------------------------------------- /problems/maximum-length-of-pair-chain/maximum_length_of_pair_chain.go: -------------------------------------------------------------------------------- 1 | package problem646 2 | -------------------------------------------------------------------------------- /problems/maximum-product-subarray/maximum_product_subarray.go: -------------------------------------------------------------------------------- 1 | package problem152 2 | -------------------------------------------------------------------------------- /problems/maximum-product-subarray/maximum_product_subarray_test.go: -------------------------------------------------------------------------------- 1 | package problem152 2 | -------------------------------------------------------------------------------- /problems/maximum-swap/maximum_swap.go: -------------------------------------------------------------------------------- 1 | package problem670 2 | -------------------------------------------------------------------------------- /problems/maximum-swap/maximum_swap_test.go: -------------------------------------------------------------------------------- 1 | package problem670 2 | -------------------------------------------------------------------------------- /problems/maximum-vacation-days/maximum_vacation_days.go: -------------------------------------------------------------------------------- 1 | package problem568 2 | -------------------------------------------------------------------------------- /problems/maximum-vacation-days/maximum_vacation_days_test.go: -------------------------------------------------------------------------------- 1 | package problem568 2 | -------------------------------------------------------------------------------- /problems/maximum-width-of-binary-tree/maximum_width_of_binary_tree.go: -------------------------------------------------------------------------------- 1 | package problem662 2 | -------------------------------------------------------------------------------- /problems/meeting-rooms-ii/meeting_rooms_ii.go: -------------------------------------------------------------------------------- 1 | package problem253 2 | -------------------------------------------------------------------------------- /problems/meeting-rooms-ii/meeting_rooms_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem253 2 | -------------------------------------------------------------------------------- /problems/meeting-rooms/meeting_rooms.go: -------------------------------------------------------------------------------- 1 | package problem252 2 | -------------------------------------------------------------------------------- /problems/meeting-rooms/meeting_rooms_test.go: -------------------------------------------------------------------------------- 1 | package problem252 2 | -------------------------------------------------------------------------------- /problems/merge-intervals/merge_intervals.go: -------------------------------------------------------------------------------- 1 | package problem56 2 | -------------------------------------------------------------------------------- /problems/merge-intervals/merge_intervals_test.go: -------------------------------------------------------------------------------- 1 | package problem56 2 | -------------------------------------------------------------------------------- /problems/middle-of-the-linked-list/middle_of_the_linked_list.go: -------------------------------------------------------------------------------- 1 | package problem876 2 | -------------------------------------------------------------------------------- /problems/middle-of-the-linked-list/middle_of_the_linked_list_test.go: -------------------------------------------------------------------------------- 1 | package problem876 2 | -------------------------------------------------------------------------------- /problems/minesweeper/minesweeper.go: -------------------------------------------------------------------------------- 1 | package problem529 2 | -------------------------------------------------------------------------------- /problems/minesweeper/minesweeper_test.go: -------------------------------------------------------------------------------- 1 | package problem529 2 | -------------------------------------------------------------------------------- /problems/mini-parser/mini_parser.go: -------------------------------------------------------------------------------- 1 | package problem385 2 | -------------------------------------------------------------------------------- /problems/mini-parser/mini_parser_test.go: -------------------------------------------------------------------------------- 1 | package problem385 2 | -------------------------------------------------------------------------------- /problems/minimize-malware-spread-ii/minimize_malware_spread_ii.go: -------------------------------------------------------------------------------- 1 | package problem928 2 | -------------------------------------------------------------------------------- /problems/minimize-malware-spread-ii/minimize_malware_spread_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem928 2 | -------------------------------------------------------------------------------- /problems/minimize-malware-spread/minimize_malware_spread.go: -------------------------------------------------------------------------------- 1 | package problem924 2 | -------------------------------------------------------------------------------- /problems/minimize-malware-spread/minimize_malware_spread_test.go: -------------------------------------------------------------------------------- 1 | package problem924 2 | -------------------------------------------------------------------------------- /problems/minimum-area-rectangle/minimum_area_rectangle.go: -------------------------------------------------------------------------------- 1 | package problem939 2 | -------------------------------------------------------------------------------- /problems/minimum-area-rectangle/minimum_area_rectangle_test.go: -------------------------------------------------------------------------------- 1 | package problem939 2 | -------------------------------------------------------------------------------- /problems/minimum-cost-for-tickets/minimum_cost_for_tickets.go: -------------------------------------------------------------------------------- 1 | package problem983 2 | -------------------------------------------------------------------------------- /problems/minimum-factorization/minimum_factorization.go: -------------------------------------------------------------------------------- 1 | package problem625 2 | -------------------------------------------------------------------------------- /problems/minimum-factorization/minimum_factorization_test.go: -------------------------------------------------------------------------------- 1 | package problem625 2 | -------------------------------------------------------------------------------- /problems/minimum-falling-path-sum/minimum_falling_path_sum.go: -------------------------------------------------------------------------------- 1 | package problem931 2 | -------------------------------------------------------------------------------- /problems/minimum-genetic-mutation/minimum_genetic_mutation.go: -------------------------------------------------------------------------------- 1 | package problem433 2 | -------------------------------------------------------------------------------- /problems/minimum-height-trees/minimum_height_trees.go: -------------------------------------------------------------------------------- 1 | package problem310 2 | -------------------------------------------------------------------------------- /problems/minimum-height-trees/minimum_height_trees_test.go: -------------------------------------------------------------------------------- 1 | package problem310 2 | -------------------------------------------------------------------------------- /problems/minimum-path-sum/minimum_path_sum.go: -------------------------------------------------------------------------------- 1 | package problem64 2 | -------------------------------------------------------------------------------- /problems/minimum-path-sum/minimum_path_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem64 2 | -------------------------------------------------------------------------------- /problems/minimum-size-subarray-sum/minimum_size_subarray_sum.go: -------------------------------------------------------------------------------- 1 | package problem209 2 | -------------------------------------------------------------------------------- /problems/minimum-time-difference/minimum_time_difference.go: -------------------------------------------------------------------------------- 1 | package problem539 2 | -------------------------------------------------------------------------------- /problems/minimum-time-difference/minimum_time_difference_test.go: -------------------------------------------------------------------------------- 1 | package problem539 2 | -------------------------------------------------------------------------------- /problems/minimum-window-subsequence/minimum_window_subsequence.go: -------------------------------------------------------------------------------- 1 | package problem727 2 | -------------------------------------------------------------------------------- /problems/minimum-window-substring/minimum_window_substring.go: -------------------------------------------------------------------------------- 1 | package problem76 2 | -------------------------------------------------------------------------------- /problems/minimum-window-substring/minimum_window_substring_test.go: -------------------------------------------------------------------------------- 1 | package problem76 2 | -------------------------------------------------------------------------------- /problems/mirror-reflection/mirror_reflection.go: -------------------------------------------------------------------------------- 1 | package problem858 2 | -------------------------------------------------------------------------------- /problems/mirror-reflection/mirror_reflection_test.go: -------------------------------------------------------------------------------- 1 | package problem858 2 | -------------------------------------------------------------------------------- /problems/missing-ranges/missing_ranges.go: -------------------------------------------------------------------------------- 1 | package problem163 2 | -------------------------------------------------------------------------------- /problems/missing-ranges/missing_ranges_test.go: -------------------------------------------------------------------------------- 1 | package problem163 2 | -------------------------------------------------------------------------------- /problems/monotone-increasing-digits/monotone_increasing_digits.go: -------------------------------------------------------------------------------- 1 | package problem738 2 | -------------------------------------------------------------------------------- /problems/most-frequent-subtree-sum/most_frequent_subtree_sum.go: -------------------------------------------------------------------------------- 1 | package problem508 2 | -------------------------------------------------------------------------------- /problems/most-profit-assigning-work/most_profit_assigning_work.go: -------------------------------------------------------------------------------- 1 | package problem826 2 | -------------------------------------------------------------------------------- /problems/multiply-strings/multiply_strings.go: -------------------------------------------------------------------------------- 1 | package problem43 2 | -------------------------------------------------------------------------------- /problems/multiply-strings/multiply_strings_test.go: -------------------------------------------------------------------------------- 1 | package problem43 2 | -------------------------------------------------------------------------------- /problems/my-calendar-i/my_calendar_i.go: -------------------------------------------------------------------------------- 1 | package problem729 2 | -------------------------------------------------------------------------------- /problems/my-calendar-i/my_calendar_i_test.go: -------------------------------------------------------------------------------- 1 | package problem729 2 | -------------------------------------------------------------------------------- /problems/my-calendar-ii/my_calendar_ii.go: -------------------------------------------------------------------------------- 1 | package problem731 2 | -------------------------------------------------------------------------------- /problems/my-calendar-ii/my_calendar_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem731 2 | -------------------------------------------------------------------------------- /problems/my-calendar-iii/my_calendar_iii.go: -------------------------------------------------------------------------------- 1 | package problem732 2 | -------------------------------------------------------------------------------- /problems/my-calendar-iii/my_calendar_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem732 2 | -------------------------------------------------------------------------------- /problems/n-queens-ii/n_queens_ii.go: -------------------------------------------------------------------------------- 1 | package problem52 2 | -------------------------------------------------------------------------------- /problems/n-queens-ii/n_queens_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem52 2 | -------------------------------------------------------------------------------- /problems/n-queens/n_queens.go: -------------------------------------------------------------------------------- 1 | package problem51 2 | -------------------------------------------------------------------------------- /problems/n-queens/n_queens_test.go: -------------------------------------------------------------------------------- 1 | package problem51 2 | -------------------------------------------------------------------------------- /problems/nested-list-weight-sum-ii/nested_list_weight_sum_ii.go: -------------------------------------------------------------------------------- 1 | package problem364 2 | -------------------------------------------------------------------------------- /problems/nested-list-weight-sum/nested_list_weight_sum.go: -------------------------------------------------------------------------------- 1 | package problem339 2 | -------------------------------------------------------------------------------- /problems/nested-list-weight-sum/nested_list_weight_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem339 2 | -------------------------------------------------------------------------------- /problems/network-delay-time/network_delay_time.go: -------------------------------------------------------------------------------- 1 | package problem743 2 | -------------------------------------------------------------------------------- /problems/network-delay-time/network_delay_time_test.go: -------------------------------------------------------------------------------- 1 | package problem743 2 | -------------------------------------------------------------------------------- /problems/new-21-game/new_21_game.go: -------------------------------------------------------------------------------- 1 | package problem837 2 | -------------------------------------------------------------------------------- /problems/new-21-game/new_21_game_test.go: -------------------------------------------------------------------------------- 1 | package problem837 2 | -------------------------------------------------------------------------------- /problems/next-closest-time/next_closest_time.go: -------------------------------------------------------------------------------- 1 | package problem681 2 | -------------------------------------------------------------------------------- /problems/next-closest-time/next_closest_time_test.go: -------------------------------------------------------------------------------- 1 | package problem681 2 | -------------------------------------------------------------------------------- /problems/next-greater-element-i/next_greater_element_i.go: -------------------------------------------------------------------------------- 1 | package problem496 2 | -------------------------------------------------------------------------------- /problems/next-greater-element-i/next_greater_element_i_test.go: -------------------------------------------------------------------------------- 1 | package problem496 2 | -------------------------------------------------------------------------------- /problems/next-greater-element-ii/next_greater_element_ii.go: -------------------------------------------------------------------------------- 1 | package problem503 2 | -------------------------------------------------------------------------------- /problems/next-greater-element-ii/next_greater_element_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem503 2 | -------------------------------------------------------------------------------- /problems/next-greater-element-iii/next_greater_element_iii.go: -------------------------------------------------------------------------------- 1 | package problem556 2 | -------------------------------------------------------------------------------- /problems/next-permutation/next_permutation.go: -------------------------------------------------------------------------------- 1 | package problem31 2 | -------------------------------------------------------------------------------- /problems/next-permutation/next_permutation_test.go: -------------------------------------------------------------------------------- 1 | package problem31 2 | -------------------------------------------------------------------------------- /problems/non-overlapping-intervals/non_overlapping_intervals.go: -------------------------------------------------------------------------------- 1 | package problem435 2 | -------------------------------------------------------------------------------- /problems/nth-digit/nth_digit.go: -------------------------------------------------------------------------------- 1 | package problem400 2 | -------------------------------------------------------------------------------- /problems/nth-digit/nth_digit_test.go: -------------------------------------------------------------------------------- 1 | package problem400 2 | -------------------------------------------------------------------------------- /problems/nth-magical-number/nth_magical_number.go: -------------------------------------------------------------------------------- 1 | package problem878 2 | -------------------------------------------------------------------------------- /problems/nth-magical-number/nth_magical_number_test.go: -------------------------------------------------------------------------------- 1 | package problem878 2 | -------------------------------------------------------------------------------- /problems/number-complement/number_complement.go: -------------------------------------------------------------------------------- 1 | package problem476 2 | -------------------------------------------------------------------------------- /problems/number-complement/number_complement_test.go: -------------------------------------------------------------------------------- 1 | package problem476 2 | -------------------------------------------------------------------------------- /problems/number-of-atoms/number_of_atoms.go: -------------------------------------------------------------------------------- 1 | package problem726 2 | -------------------------------------------------------------------------------- /problems/number-of-atoms/number_of_atoms_test.go: -------------------------------------------------------------------------------- 1 | package problem726 2 | -------------------------------------------------------------------------------- /problems/number-of-boomerangs/number_of_boomerangs.go: -------------------------------------------------------------------------------- 1 | package problem447 2 | -------------------------------------------------------------------------------- /problems/number-of-boomerangs/number_of_boomerangs_test.go: -------------------------------------------------------------------------------- 1 | package problem447 2 | -------------------------------------------------------------------------------- /problems/number-of-distinct-islands/number_of_distinct_islands.go: -------------------------------------------------------------------------------- 1 | package problem694 2 | -------------------------------------------------------------------------------- /problems/number-of-islands-ii/number_of_islands_ii.go: -------------------------------------------------------------------------------- 1 | package problem305 2 | -------------------------------------------------------------------------------- /problems/number-of-islands-ii/number_of_islands_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem305 2 | -------------------------------------------------------------------------------- /problems/number-of-islands/number_of_islands.go: -------------------------------------------------------------------------------- 1 | package problem200 2 | -------------------------------------------------------------------------------- /problems/number-of-islands/number_of_islands_test.go: -------------------------------------------------------------------------------- 1 | package problem200 2 | -------------------------------------------------------------------------------- /problems/number-of-music-playlists/number_of_music_playlists.go: -------------------------------------------------------------------------------- 1 | package problem920 2 | -------------------------------------------------------------------------------- /problems/number-of-squareful-arrays/number_of_squareful_arrays.go: -------------------------------------------------------------------------------- 1 | package problem996 2 | -------------------------------------------------------------------------------- /problems/odd-even-jump/odd_even_jump.go: -------------------------------------------------------------------------------- 1 | package problem975 2 | -------------------------------------------------------------------------------- /problems/odd-even-linked-list/odd_even_linked_list.go: -------------------------------------------------------------------------------- 1 | package problem328 2 | -------------------------------------------------------------------------------- /problems/odd-even-linked-list/odd_even_linked_list_test.go: -------------------------------------------------------------------------------- 1 | package problem328 2 | -------------------------------------------------------------------------------- /problems/one-edit-distance/one_edit_distance.go: -------------------------------------------------------------------------------- 1 | package problem161 2 | -------------------------------------------------------------------------------- /problems/one-edit-distance/one_edit_distance_test.go: -------------------------------------------------------------------------------- 1 | package problem161 2 | -------------------------------------------------------------------------------- /problems/ones-and-zeroes/ones_and_zeroes.go: -------------------------------------------------------------------------------- 1 | package problem474 2 | -------------------------------------------------------------------------------- /problems/ones-and-zeroes/ones_and_zeroes_test.go: -------------------------------------------------------------------------------- 1 | package problem474 2 | -------------------------------------------------------------------------------- /problems/online-election/online_election.go: -------------------------------------------------------------------------------- 1 | package problem911 2 | -------------------------------------------------------------------------------- /problems/online-election/online_election_test.go: -------------------------------------------------------------------------------- 1 | package problem911 2 | -------------------------------------------------------------------------------- /problems/online-stock-span/online_stock_span.go: -------------------------------------------------------------------------------- 1 | package problem901 2 | -------------------------------------------------------------------------------- /problems/online-stock-span/online_stock_span_test.go: -------------------------------------------------------------------------------- 1 | package problem901 2 | -------------------------------------------------------------------------------- /problems/open-the-lock/open_the_lock.go: -------------------------------------------------------------------------------- 1 | package problem752 2 | -------------------------------------------------------------------------------- /problems/open-the-lock/open_the_lock_test.go: -------------------------------------------------------------------------------- 1 | package problem752 2 | -------------------------------------------------------------------------------- /problems/optimal-account-balancing/optimal_account_balancing.go: -------------------------------------------------------------------------------- 1 | package problem465 2 | -------------------------------------------------------------------------------- /problems/optimal-division/optimal_division.go: -------------------------------------------------------------------------------- 1 | package problem553 2 | -------------------------------------------------------------------------------- /problems/optimal-division/optimal_division_test.go: -------------------------------------------------------------------------------- 1 | package problem553 2 | -------------------------------------------------------------------------------- /problems/orderly-queue/orderly_queue.go: -------------------------------------------------------------------------------- 1 | package problem899 2 | -------------------------------------------------------------------------------- /problems/orderly-queue/orderly_queue_test.go: -------------------------------------------------------------------------------- 1 | package problem899 2 | -------------------------------------------------------------------------------- /problems/out-of-boundary-paths/out_of_boundary_paths.go: -------------------------------------------------------------------------------- 1 | package problem576 2 | -------------------------------------------------------------------------------- /problems/out-of-boundary-paths/out_of_boundary_paths_test.go: -------------------------------------------------------------------------------- 1 | package problem576 2 | -------------------------------------------------------------------------------- /problems/output-contest-matches/output_contest_matches.go: -------------------------------------------------------------------------------- 1 | package problem544 2 | -------------------------------------------------------------------------------- /problems/output-contest-matches/output_contest_matches_test.go: -------------------------------------------------------------------------------- 1 | package problem544 2 | -------------------------------------------------------------------------------- /problems/paint-fence/paint_fence.go: -------------------------------------------------------------------------------- 1 | package problem276 2 | -------------------------------------------------------------------------------- /problems/paint-fence/paint_fence_test.go: -------------------------------------------------------------------------------- 1 | package problem276 2 | -------------------------------------------------------------------------------- /problems/paint-house-ii/paint_house_ii.go: -------------------------------------------------------------------------------- 1 | package problem265 2 | -------------------------------------------------------------------------------- /problems/paint-house-ii/paint_house_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem265 2 | -------------------------------------------------------------------------------- /problems/paint-house/paint_house.go: -------------------------------------------------------------------------------- 1 | package problem256 2 | -------------------------------------------------------------------------------- /problems/paint-house/paint_house_test.go: -------------------------------------------------------------------------------- 1 | package problem256 2 | -------------------------------------------------------------------------------- /problems/palindrome-pairs/palindrome_pairs.go: -------------------------------------------------------------------------------- 1 | package problem336 2 | -------------------------------------------------------------------------------- /problems/palindrome-pairs/palindrome_pairs_test.go: -------------------------------------------------------------------------------- 1 | package problem336 2 | -------------------------------------------------------------------------------- /problems/palindrome-partitioning-ii/palindrome_partitioning_ii.go: -------------------------------------------------------------------------------- 1 | package problem132 2 | -------------------------------------------------------------------------------- /problems/palindrome-partitioning/palindrome_partitioning.go: -------------------------------------------------------------------------------- 1 | package problem131 2 | -------------------------------------------------------------------------------- /problems/palindrome-partitioning/palindrome_partitioning_test.go: -------------------------------------------------------------------------------- 1 | package problem131 2 | -------------------------------------------------------------------------------- /problems/palindrome-permutation-ii/palindrome_permutation_ii.go: -------------------------------------------------------------------------------- 1 | package problem267 2 | -------------------------------------------------------------------------------- /problems/palindrome-permutation/palindrome_permutation.go: -------------------------------------------------------------------------------- 1 | package problem266 2 | -------------------------------------------------------------------------------- /problems/palindrome-permutation/palindrome_permutation_test.go: -------------------------------------------------------------------------------- 1 | package problem266 2 | -------------------------------------------------------------------------------- /problems/palindromic-substrings/palindromic_substrings.go: -------------------------------------------------------------------------------- 1 | package problem647 2 | -------------------------------------------------------------------------------- /problems/palindromic-substrings/palindromic_substrings_test.go: -------------------------------------------------------------------------------- 1 | package problem647 2 | -------------------------------------------------------------------------------- /problems/pancake-sorting/pancake_sorting.go: -------------------------------------------------------------------------------- 1 | package problem969 2 | -------------------------------------------------------------------------------- /problems/parse-lisp-expression/parse_lisp_expression.go: -------------------------------------------------------------------------------- 1 | package problem736 2 | -------------------------------------------------------------------------------- /problems/parse-lisp-expression/parse_lisp_expression_test.go: -------------------------------------------------------------------------------- 1 | package problem736 2 | -------------------------------------------------------------------------------- /problems/partition-equal-subset-sum/partition_equal_subset_sum.go: -------------------------------------------------------------------------------- 1 | package problem416 2 | -------------------------------------------------------------------------------- /problems/partition-labels/partition_labels.go: -------------------------------------------------------------------------------- 1 | package problem763 2 | -------------------------------------------------------------------------------- /problems/partition-labels/partition_labels_test.go: -------------------------------------------------------------------------------- 1 | package problem763 2 | -------------------------------------------------------------------------------- /problems/partition-list/partition_list.go: -------------------------------------------------------------------------------- 1 | package problem86 2 | -------------------------------------------------------------------------------- /problems/partition-list/partition_list_test.go: -------------------------------------------------------------------------------- 1 | package problem86 2 | -------------------------------------------------------------------------------- /problems/patching-array/patching_array.go: -------------------------------------------------------------------------------- 1 | package problem330 2 | -------------------------------------------------------------------------------- /problems/patching-array/patching_array_test.go: -------------------------------------------------------------------------------- 1 | package problem330 2 | -------------------------------------------------------------------------------- /problems/path-sum-ii/path_sum_ii.go: -------------------------------------------------------------------------------- 1 | package problem113 2 | -------------------------------------------------------------------------------- /problems/path-sum-ii/path_sum_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem113 2 | -------------------------------------------------------------------------------- /problems/path-sum-iv/path_sum_iv.go: -------------------------------------------------------------------------------- 1 | package problem666 2 | -------------------------------------------------------------------------------- /problems/path-sum-iv/path_sum_iv_test.go: -------------------------------------------------------------------------------- 1 | package problem666 2 | -------------------------------------------------------------------------------- /problems/peeking-iterator/peeking_iterator.go: -------------------------------------------------------------------------------- 1 | package problem284 2 | -------------------------------------------------------------------------------- /problems/peeking-iterator/peeking_iterator_test.go: -------------------------------------------------------------------------------- 1 | package problem284 2 | -------------------------------------------------------------------------------- /problems/perfect-rectangle/perfect_rectangle.go: -------------------------------------------------------------------------------- 1 | package problem391 2 | -------------------------------------------------------------------------------- /problems/perfect-rectangle/perfect_rectangle_test.go: -------------------------------------------------------------------------------- 1 | package problem391 2 | -------------------------------------------------------------------------------- /problems/perfect-squares/perfect_squares.go: -------------------------------------------------------------------------------- 1 | package problem279 2 | -------------------------------------------------------------------------------- /problems/perfect-squares/perfect_squares_test.go: -------------------------------------------------------------------------------- 1 | package problem279 2 | -------------------------------------------------------------------------------- /problems/permutation-in-string/permutation_in_string.go: -------------------------------------------------------------------------------- 1 | package problem567 2 | -------------------------------------------------------------------------------- /problems/permutation-in-string/permutation_in_string_test.go: -------------------------------------------------------------------------------- 1 | package problem567 2 | -------------------------------------------------------------------------------- /problems/permutation-sequence/permutation_sequence.go: -------------------------------------------------------------------------------- 1 | package problem60 2 | -------------------------------------------------------------------------------- /problems/permutation-sequence/permutation_sequence_test.go: -------------------------------------------------------------------------------- 1 | package problem60 2 | -------------------------------------------------------------------------------- /problems/permutations-ii/permutations_ii.go: -------------------------------------------------------------------------------- 1 | package problem47 2 | -------------------------------------------------------------------------------- /problems/permutations-ii/permutations_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem47 2 | -------------------------------------------------------------------------------- /problems/permutations/permutations.go: -------------------------------------------------------------------------------- 1 | package problem46 2 | -------------------------------------------------------------------------------- /problems/permutations/permutations_test.go: -------------------------------------------------------------------------------- 1 | package problem46 2 | -------------------------------------------------------------------------------- /problems/plus-one-linked-list/plus_one_linked_list.go: -------------------------------------------------------------------------------- 1 | package problem369 2 | -------------------------------------------------------------------------------- /problems/plus-one-linked-list/plus_one_linked_list_test.go: -------------------------------------------------------------------------------- 1 | package problem369 2 | -------------------------------------------------------------------------------- /problems/poor-pigs/poor_pigs.go: -------------------------------------------------------------------------------- 1 | package problem458 2 | -------------------------------------------------------------------------------- /problems/poor-pigs/poor_pigs_test.go: -------------------------------------------------------------------------------- 1 | package problem458 2 | -------------------------------------------------------------------------------- /problems/possible-bipartition/possible_bipartition.go: -------------------------------------------------------------------------------- 1 | package problem886 2 | -------------------------------------------------------------------------------- /problems/possible-bipartition/possible_bipartition_test.go: -------------------------------------------------------------------------------- 1 | package problem886 2 | -------------------------------------------------------------------------------- /problems/pour-water/pour_water.go: -------------------------------------------------------------------------------- 1 | package problem755 2 | -------------------------------------------------------------------------------- /problems/pour-water/pour_water_test.go: -------------------------------------------------------------------------------- 1 | package problem755 2 | -------------------------------------------------------------------------------- /problems/predict-the-winner/predict_the_winner.go: -------------------------------------------------------------------------------- 1 | package problem486 2 | -------------------------------------------------------------------------------- /problems/predict-the-winner/predict_the_winner_test.go: -------------------------------------------------------------------------------- 1 | package problem486 2 | -------------------------------------------------------------------------------- /problems/prefix-and-suffix-search/prefix_and_suffix_search.go: -------------------------------------------------------------------------------- 1 | package problem745 2 | -------------------------------------------------------------------------------- /problems/prime-palindrome/prime_palindrome.go: -------------------------------------------------------------------------------- 1 | package problem866 2 | -------------------------------------------------------------------------------- /problems/prime-palindrome/prime_palindrome_test.go: -------------------------------------------------------------------------------- 1 | package problem866 2 | -------------------------------------------------------------------------------- /problems/print-binary-tree/print_binary_tree.go: -------------------------------------------------------------------------------- 1 | package problem655 2 | -------------------------------------------------------------------------------- /problems/print-binary-tree/print_binary_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem655 2 | -------------------------------------------------------------------------------- /problems/prison-cells-after-n-days/prison_cells_after_n_days.go: -------------------------------------------------------------------------------- 1 | package problem957 2 | -------------------------------------------------------------------------------- /problems/profitable-schemes/profitable_schemes.go: -------------------------------------------------------------------------------- 1 | package problem879 2 | -------------------------------------------------------------------------------- /problems/profitable-schemes/profitable_schemes_test.go: -------------------------------------------------------------------------------- 1 | package problem879 2 | -------------------------------------------------------------------------------- /problems/push-dominoes/push_dominoes.go: -------------------------------------------------------------------------------- 1 | package problem838 2 | -------------------------------------------------------------------------------- /problems/push-dominoes/push_dominoes_test.go: -------------------------------------------------------------------------------- 1 | package problem838 2 | -------------------------------------------------------------------------------- /problems/pyramid-transition-matrix/pyramid_transition_matrix.go: -------------------------------------------------------------------------------- 1 | package problem756 2 | -------------------------------------------------------------------------------- /problems/rabbits-in-forest/rabbits_in_forest.go: -------------------------------------------------------------------------------- 1 | package problem781 2 | -------------------------------------------------------------------------------- /problems/rabbits-in-forest/rabbits_in_forest_test.go: -------------------------------------------------------------------------------- 1 | package problem781 2 | -------------------------------------------------------------------------------- /problems/race-car/race_car.go: -------------------------------------------------------------------------------- 1 | package problem818 2 | -------------------------------------------------------------------------------- /problems/race-car/race_car_test.go: -------------------------------------------------------------------------------- 1 | package problem818 2 | -------------------------------------------------------------------------------- /problems/random-flip-matrix/random_flip_matrix.go: -------------------------------------------------------------------------------- 1 | package problem519 2 | -------------------------------------------------------------------------------- /problems/random-flip-matrix/random_flip_matrix_test.go: -------------------------------------------------------------------------------- 1 | package problem519 2 | -------------------------------------------------------------------------------- /problems/random-pick-index/random_pick_index.go: -------------------------------------------------------------------------------- 1 | package problem398 2 | -------------------------------------------------------------------------------- /problems/random-pick-index/random_pick_index_test.go: -------------------------------------------------------------------------------- 1 | package problem398 2 | -------------------------------------------------------------------------------- /problems/random-pick-with-blacklist/random_pick_with_blacklist.go: -------------------------------------------------------------------------------- 1 | package problem710 2 | -------------------------------------------------------------------------------- /problems/random-pick-with-weight/random_pick_with_weight.go: -------------------------------------------------------------------------------- 1 | package problem528 2 | -------------------------------------------------------------------------------- /problems/random-pick-with-weight/random_pick_with_weight_test.go: -------------------------------------------------------------------------------- 1 | package problem528 2 | -------------------------------------------------------------------------------- /problems/range-addition/range_addition.go: -------------------------------------------------------------------------------- 1 | package problem370 2 | -------------------------------------------------------------------------------- /problems/range-addition/range_addition_test.go: -------------------------------------------------------------------------------- 1 | package problem370 2 | -------------------------------------------------------------------------------- /problems/range-module/range_module.go: -------------------------------------------------------------------------------- 1 | package problem715 2 | -------------------------------------------------------------------------------- /problems/range-module/range_module_test.go: -------------------------------------------------------------------------------- 1 | package problem715 2 | -------------------------------------------------------------------------------- /problems/range-sum-query-2d-mutable/range_sum_query_2d_mutable.go: -------------------------------------------------------------------------------- 1 | package problem308 2 | -------------------------------------------------------------------------------- /problems/range-sum-query-mutable/range_sum_query_mutable.go: -------------------------------------------------------------------------------- 1 | package problem307 2 | -------------------------------------------------------------------------------- /problems/range-sum-query-mutable/range_sum_query_mutable_test.go: -------------------------------------------------------------------------------- 1 | package problem307 2 | -------------------------------------------------------------------------------- /problems/rank-scores/rank_scores.sql: -------------------------------------------------------------------------------- 1 | # Write your MySQL query statement below 2 | -------------------------------------------------------------------------------- /problems/reach-a-number/reach_a_number.go: -------------------------------------------------------------------------------- 1 | package problem754 2 | -------------------------------------------------------------------------------- /problems/reach-a-number/reach_a_number_test.go: -------------------------------------------------------------------------------- 1 | package problem754 2 | -------------------------------------------------------------------------------- /problems/reaching-points/reaching_points.go: -------------------------------------------------------------------------------- 1 | package problem780 2 | -------------------------------------------------------------------------------- /problems/reaching-points/reaching_points_test.go: -------------------------------------------------------------------------------- 1 | package problem780 2 | -------------------------------------------------------------------------------- /problems/reconstruct-itinerary/reconstruct_itinerary.go: -------------------------------------------------------------------------------- 1 | package problem332 2 | -------------------------------------------------------------------------------- /problems/reconstruct-itinerary/reconstruct_itinerary_test.go: -------------------------------------------------------------------------------- 1 | package problem332 2 | -------------------------------------------------------------------------------- /problems/recover-binary-search-tree/recover_binary_search_tree.go: -------------------------------------------------------------------------------- 1 | package problem99 2 | -------------------------------------------------------------------------------- /problems/rectangle-area-ii/rectangle_area_ii.go: -------------------------------------------------------------------------------- 1 | package problem850 2 | -------------------------------------------------------------------------------- /problems/rectangle-area-ii/rectangle_area_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem850 2 | -------------------------------------------------------------------------------- /problems/rectangle-area/rectangle_area.go: -------------------------------------------------------------------------------- 1 | package problem223 2 | -------------------------------------------------------------------------------- /problems/rectangle-area/rectangle_area_test.go: -------------------------------------------------------------------------------- 1 | package problem223 2 | -------------------------------------------------------------------------------- /problems/rectangle-overlap/rectangle_overlap.go: -------------------------------------------------------------------------------- 1 | package problem836 2 | -------------------------------------------------------------------------------- /problems/rectangle-overlap/rectangle_overlap_test.go: -------------------------------------------------------------------------------- 1 | package problem836 2 | -------------------------------------------------------------------------------- /problems/redundant-connection-ii/redundant_connection_ii.go: -------------------------------------------------------------------------------- 1 | package problem685 2 | -------------------------------------------------------------------------------- /problems/redundant-connection-ii/redundant_connection_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem685 2 | -------------------------------------------------------------------------------- /problems/redundant-connection/redundant_connection.go: -------------------------------------------------------------------------------- 1 | package problem684 2 | -------------------------------------------------------------------------------- /problems/redundant-connection/redundant_connection_test.go: -------------------------------------------------------------------------------- 1 | package problem684 2 | -------------------------------------------------------------------------------- /problems/regions-cut-by-slashes/regions_cut_by_slashes.go: -------------------------------------------------------------------------------- 1 | package problem959 2 | -------------------------------------------------------------------------------- /problems/regions-cut-by-slashes/regions_cut_by_slashes_test.go: -------------------------------------------------------------------------------- 1 | package problem959 2 | -------------------------------------------------------------------------------- /problems/relative-ranks/relative_ranks.go: -------------------------------------------------------------------------------- 1 | package problem506 2 | -------------------------------------------------------------------------------- /problems/relative-ranks/relative_ranks_test.go: -------------------------------------------------------------------------------- 1 | package problem506 2 | -------------------------------------------------------------------------------- /problems/relative-sort-array/relative_sort_array.go: -------------------------------------------------------------------------------- 1 | package problem1122 2 | -------------------------------------------------------------------------------- /problems/remove-9/remove_9.go: -------------------------------------------------------------------------------- 1 | package problem660 2 | -------------------------------------------------------------------------------- /problems/remove-9/remove_9_test.go: -------------------------------------------------------------------------------- 1 | package problem660 2 | -------------------------------------------------------------------------------- /problems/remove-boxes/remove_boxes.go: -------------------------------------------------------------------------------- 1 | package problem546 2 | -------------------------------------------------------------------------------- /problems/remove-boxes/remove_boxes_test.go: -------------------------------------------------------------------------------- 1 | package problem546 2 | -------------------------------------------------------------------------------- /problems/remove-comments/remove_comments.go: -------------------------------------------------------------------------------- 1 | package problem722 2 | -------------------------------------------------------------------------------- /problems/remove-comments/remove_comments_test.go: -------------------------------------------------------------------------------- 1 | package problem722 2 | -------------------------------------------------------------------------------- /problems/remove-duplicate-letters/remove_duplicate_letters.go: -------------------------------------------------------------------------------- 1 | package problem316 2 | -------------------------------------------------------------------------------- /problems/remove-invalid-parentheses/remove_invalid_parentheses.go: -------------------------------------------------------------------------------- 1 | package problem301 2 | -------------------------------------------------------------------------------- /problems/remove-k-digits/remove_k_digits.go: -------------------------------------------------------------------------------- 1 | package problem402 2 | -------------------------------------------------------------------------------- /problems/remove-k-digits/remove_k_digits_test.go: -------------------------------------------------------------------------------- 1 | package problem402 2 | -------------------------------------------------------------------------------- /problems/reorder-list/reorder_list.go: -------------------------------------------------------------------------------- 1 | package problem143 2 | -------------------------------------------------------------------------------- /problems/reorder-list/reorder_list_test.go: -------------------------------------------------------------------------------- 1 | package problem143 2 | -------------------------------------------------------------------------------- /problems/reordered-power-of-2/reordered_power_of_2.go: -------------------------------------------------------------------------------- 1 | package problem869 2 | -------------------------------------------------------------------------------- /problems/reordered-power-of-2/reordered_power_of_2_test.go: -------------------------------------------------------------------------------- 1 | package problem869 2 | -------------------------------------------------------------------------------- /problems/reorganize-string/reorganize_string.go: -------------------------------------------------------------------------------- 1 | package problem767 2 | -------------------------------------------------------------------------------- /problems/reorganize-string/reorganize_string_test.go: -------------------------------------------------------------------------------- 1 | package problem767 2 | -------------------------------------------------------------------------------- /problems/repeated-dna-sequences/repeated_dna_sequences.go: -------------------------------------------------------------------------------- 1 | package problem187 2 | -------------------------------------------------------------------------------- /problems/repeated-dna-sequences/repeated_dna_sequences_test.go: -------------------------------------------------------------------------------- 1 | package problem187 2 | -------------------------------------------------------------------------------- /problems/replace-words/replace_words.go: -------------------------------------------------------------------------------- 1 | package problem648 2 | -------------------------------------------------------------------------------- /problems/replace-words/replace_words_test.go: -------------------------------------------------------------------------------- 1 | package problem648 2 | -------------------------------------------------------------------------------- /problems/reported-posts/reported_posts.sql: -------------------------------------------------------------------------------- 1 | # Write your MySQL query statement below 2 | -------------------------------------------------------------------------------- /problems/restore-ip-addresses/restore_ip_addresses.go: -------------------------------------------------------------------------------- 1 | package problem93 2 | -------------------------------------------------------------------------------- /problems/restore-ip-addresses/restore_ip_addresses_test.go: -------------------------------------------------------------------------------- 1 | package problem93 2 | -------------------------------------------------------------------------------- /problems/reverse-linked-list-ii/reverse_linked_list_ii.go: -------------------------------------------------------------------------------- 1 | package problem92 2 | -------------------------------------------------------------------------------- /problems/reverse-linked-list-ii/reverse_linked_list_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem92 2 | -------------------------------------------------------------------------------- /problems/reverse-nodes-in-k-group/reverse_nodes_in_k_group.go: -------------------------------------------------------------------------------- 1 | package problem25 2 | -------------------------------------------------------------------------------- /problems/reverse-nodes-in-k-group/reverse_nodes_in_k_group_test.go: -------------------------------------------------------------------------------- 1 | package problem25 2 | -------------------------------------------------------------------------------- /problems/reverse-pairs/reverse_pairs.go: -------------------------------------------------------------------------------- 1 | package problem493 2 | -------------------------------------------------------------------------------- /problems/reverse-pairs/reverse_pairs_test.go: -------------------------------------------------------------------------------- 1 | package problem493 2 | -------------------------------------------------------------------------------- /problems/rle-iterator/rle_iterator.go: -------------------------------------------------------------------------------- 1 | package problem900 2 | -------------------------------------------------------------------------------- /problems/rle-iterator/rle_iterator_test.go: -------------------------------------------------------------------------------- 1 | package problem900 2 | -------------------------------------------------------------------------------- /problems/robot-room-cleaner/robot_room_cleaner.go: -------------------------------------------------------------------------------- 1 | package problem489 2 | -------------------------------------------------------------------------------- /problems/robot-room-cleaner/robot_room_cleaner_test.go: -------------------------------------------------------------------------------- 1 | package problem489 2 | -------------------------------------------------------------------------------- /problems/rotate-function/rotate_function.go: -------------------------------------------------------------------------------- 1 | package problem396 2 | -------------------------------------------------------------------------------- /problems/rotate-function/rotate_function_test.go: -------------------------------------------------------------------------------- 1 | package problem396 2 | -------------------------------------------------------------------------------- /problems/rotate-list/rotate_list.go: -------------------------------------------------------------------------------- 1 | package problem61 2 | -------------------------------------------------------------------------------- /problems/rotate-list/rotate_list_test.go: -------------------------------------------------------------------------------- 1 | package problem61 2 | -------------------------------------------------------------------------------- /problems/russian-doll-envelopes/russian_doll_envelopes.go: -------------------------------------------------------------------------------- 1 | package problem354 2 | -------------------------------------------------------------------------------- /problems/russian-doll-envelopes/russian_doll_envelopes_test.go: -------------------------------------------------------------------------------- 1 | package problem354 2 | -------------------------------------------------------------------------------- /problems/sales-person/sales_person.sql: -------------------------------------------------------------------------------- 1 | # Write your MySQL query statement below 2 | -------------------------------------------------------------------------------- /problems/score-of-parentheses/score_of_parentheses.go: -------------------------------------------------------------------------------- 1 | package problem856 2 | -------------------------------------------------------------------------------- /problems/score-of-parentheses/score_of_parentheses_test.go: -------------------------------------------------------------------------------- 1 | package problem856 2 | -------------------------------------------------------------------------------- /problems/scramble-string/scramble_string.go: -------------------------------------------------------------------------------- 1 | package problem87 2 | -------------------------------------------------------------------------------- /problems/scramble-string/scramble_string_test.go: -------------------------------------------------------------------------------- 1 | package problem87 2 | -------------------------------------------------------------------------------- /problems/search-a-2d-matrix-ii/search_a_2d_matrix_ii.go: -------------------------------------------------------------------------------- 1 | package problem240 2 | -------------------------------------------------------------------------------- /problems/search-a-2d-matrix-ii/search_a_2d_matrix_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem240 2 | -------------------------------------------------------------------------------- /problems/search-a-2d-matrix/search_a_2d_matrix.go: -------------------------------------------------------------------------------- 1 | package problem74 2 | -------------------------------------------------------------------------------- /problems/search-a-2d-matrix/search_a_2d_matrix_test.go: -------------------------------------------------------------------------------- 1 | package problem74 2 | -------------------------------------------------------------------------------- /problems/self-crossing/self_crossing.go: -------------------------------------------------------------------------------- 1 | package problem335 2 | -------------------------------------------------------------------------------- /problems/self-crossing/self_crossing_test.go: -------------------------------------------------------------------------------- 1 | package problem335 2 | -------------------------------------------------------------------------------- /problems/sentence-screen-fitting/sentence_screen_fitting.go: -------------------------------------------------------------------------------- 1 | package problem418 2 | -------------------------------------------------------------------------------- /problems/sentence-screen-fitting/sentence_screen_fitting_test.go: -------------------------------------------------------------------------------- 1 | package problem418 2 | -------------------------------------------------------------------------------- /problems/sentence-similarity-ii/sentence_similarity_ii.go: -------------------------------------------------------------------------------- 1 | package problem737 2 | -------------------------------------------------------------------------------- /problems/sentence-similarity-ii/sentence_similarity_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem737 2 | -------------------------------------------------------------------------------- /problems/sentence-similarity/sentence_similarity.go: -------------------------------------------------------------------------------- 1 | package problem734 2 | -------------------------------------------------------------------------------- /problems/sentence-similarity/sentence_similarity_test.go: -------------------------------------------------------------------------------- 1 | package problem734 2 | -------------------------------------------------------------------------------- /problems/sequence-reconstruction/sequence_reconstruction.go: -------------------------------------------------------------------------------- 1 | package problem444 2 | -------------------------------------------------------------------------------- /problems/sequence-reconstruction/sequence_reconstruction_test.go: -------------------------------------------------------------------------------- 1 | package problem444 2 | -------------------------------------------------------------------------------- /problems/set-matrix-zeroes/set_matrix_zeroes.go: -------------------------------------------------------------------------------- 1 | package problem73 2 | -------------------------------------------------------------------------------- /problems/set-matrix-zeroes/set_matrix_zeroes_test.go: -------------------------------------------------------------------------------- 1 | package problem73 2 | -------------------------------------------------------------------------------- /problems/set-mismatch/set_mismatch.go: -------------------------------------------------------------------------------- 1 | package problem645 2 | -------------------------------------------------------------------------------- /problems/set-mismatch/set_mismatch_test.go: -------------------------------------------------------------------------------- 1 | package problem645 2 | -------------------------------------------------------------------------------- /problems/shifting-letters/shifting_letters.go: -------------------------------------------------------------------------------- 1 | package problem848 2 | -------------------------------------------------------------------------------- /problems/shifting-letters/shifting_letters_test.go: -------------------------------------------------------------------------------- 1 | package problem848 2 | -------------------------------------------------------------------------------- /problems/shopping-offers/shopping_offers.go: -------------------------------------------------------------------------------- 1 | package problem638 2 | -------------------------------------------------------------------------------- /problems/shopping-offers/shopping_offers_test.go: -------------------------------------------------------------------------------- 1 | package problem638 2 | -------------------------------------------------------------------------------- /problems/short-encoding-of-words/short_encoding_of_words.go: -------------------------------------------------------------------------------- 1 | package problem820 2 | -------------------------------------------------------------------------------- /problems/short-encoding-of-words/short_encoding_of_words_test.go: -------------------------------------------------------------------------------- 1 | package problem820 2 | -------------------------------------------------------------------------------- /problems/shortest-bridge/shortest_bridge.go: -------------------------------------------------------------------------------- 1 | package problem934 2 | -------------------------------------------------------------------------------- /problems/shortest-bridge/shortest_bridge_test.go: -------------------------------------------------------------------------------- 1 | package problem934 2 | -------------------------------------------------------------------------------- /problems/shortest-completing-word/shortest_completing_word.go: -------------------------------------------------------------------------------- 1 | package problem748 2 | -------------------------------------------------------------------------------- /problems/shortest-palindrome/shortest_palindrome.go: -------------------------------------------------------------------------------- 1 | package problem214 2 | -------------------------------------------------------------------------------- /problems/shortest-palindrome/shortest_palindrome_test.go: -------------------------------------------------------------------------------- 1 | package problem214 2 | -------------------------------------------------------------------------------- /problems/shortest-word-distance-ii/shortest_word_distance_ii.go: -------------------------------------------------------------------------------- 1 | package problem244 2 | -------------------------------------------------------------------------------- /problems/shortest-word-distance-iii/shortest_word_distance_iii.go: -------------------------------------------------------------------------------- 1 | package problem245 2 | -------------------------------------------------------------------------------- /problems/shortest-word-distance/shortest_word_distance.go: -------------------------------------------------------------------------------- 1 | package problem243 2 | -------------------------------------------------------------------------------- /problems/shortest-word-distance/shortest_word_distance_test.go: -------------------------------------------------------------------------------- 1 | package problem243 2 | -------------------------------------------------------------------------------- /problems/shuffle-an-array/shuffle_an_array.go: -------------------------------------------------------------------------------- 1 | package problem384 2 | -------------------------------------------------------------------------------- /problems/shuffle-an-array/shuffle_an_array_test.go: -------------------------------------------------------------------------------- 1 | package problem384 2 | -------------------------------------------------------------------------------- /problems/similar-rgb-color/similar_rgb_color.go: -------------------------------------------------------------------------------- 1 | package problem800 2 | -------------------------------------------------------------------------------- /problems/similar-rgb-color/similar_rgb_color_test.go: -------------------------------------------------------------------------------- 1 | package problem800 2 | -------------------------------------------------------------------------------- /problems/similar-string-groups/similar_string_groups.go: -------------------------------------------------------------------------------- 1 | package problem839 2 | -------------------------------------------------------------------------------- /problems/similar-string-groups/similar_string_groups_test.go: -------------------------------------------------------------------------------- 1 | package problem839 2 | -------------------------------------------------------------------------------- /problems/single-number-iii/single_number_iii.go: -------------------------------------------------------------------------------- 1 | package problem260 2 | -------------------------------------------------------------------------------- /problems/single-number-iii/single_number_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem260 2 | -------------------------------------------------------------------------------- /problems/sliding-puzzle/sliding_puzzle.go: -------------------------------------------------------------------------------- 1 | package problem773 2 | -------------------------------------------------------------------------------- /problems/sliding-puzzle/sliding_puzzle_test.go: -------------------------------------------------------------------------------- 1 | package problem773 2 | -------------------------------------------------------------------------------- /problems/sliding-window-maximum/sliding_window_maximum.go: -------------------------------------------------------------------------------- 1 | package problem239 2 | -------------------------------------------------------------------------------- /problems/sliding-window-maximum/sliding_window_maximum_test.go: -------------------------------------------------------------------------------- 1 | package problem239 2 | -------------------------------------------------------------------------------- /problems/sliding-window-median/sliding_window_median.go: -------------------------------------------------------------------------------- 1 | package problem480 2 | -------------------------------------------------------------------------------- /problems/sliding-window-median/sliding_window_median_test.go: -------------------------------------------------------------------------------- 1 | package problem480 2 | -------------------------------------------------------------------------------- /problems/smallest-good-base/smallest_good_base.go: -------------------------------------------------------------------------------- 1 | package problem483 2 | -------------------------------------------------------------------------------- /problems/smallest-good-base/smallest_good_base_test.go: -------------------------------------------------------------------------------- 1 | package problem483 2 | -------------------------------------------------------------------------------- /problems/smallest-range-ii/smallest_range_ii.go: -------------------------------------------------------------------------------- 1 | package problem910 2 | -------------------------------------------------------------------------------- /problems/smallest-range-ii/smallest_range_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem910 2 | -------------------------------------------------------------------------------- /problems/smallest-sufficient-team/smallest_sufficient_team.go: -------------------------------------------------------------------------------- 1 | package problem1125 2 | -------------------------------------------------------------------------------- /problems/snakes-and-ladders/snakes_and_ladders.go: -------------------------------------------------------------------------------- 1 | package problem909 2 | -------------------------------------------------------------------------------- /problems/snakes-and-ladders/snakes_and_ladders_test.go: -------------------------------------------------------------------------------- 1 | package problem909 2 | -------------------------------------------------------------------------------- /problems/solve-the-equation/solve_the_equation.go: -------------------------------------------------------------------------------- 1 | package problem640 2 | -------------------------------------------------------------------------------- /problems/solve-the-equation/solve_the_equation_test.go: -------------------------------------------------------------------------------- 1 | package problem640 2 | -------------------------------------------------------------------------------- /problems/sort-colors/sort_colors.go: -------------------------------------------------------------------------------- 1 | package problem75 2 | -------------------------------------------------------------------------------- /problems/sort-colors/sort_colors_test.go: -------------------------------------------------------------------------------- 1 | package problem75 2 | -------------------------------------------------------------------------------- /problems/sort-list/sort_list.go: -------------------------------------------------------------------------------- 1 | package problem148 2 | -------------------------------------------------------------------------------- /problems/sort-list/sort_list_test.go: -------------------------------------------------------------------------------- 1 | package problem148 2 | -------------------------------------------------------------------------------- /problems/sort-transformed-array/sort_transformed_array.go: -------------------------------------------------------------------------------- 1 | package problem360 2 | -------------------------------------------------------------------------------- /problems/sort-transformed-array/sort_transformed_array_test.go: -------------------------------------------------------------------------------- 1 | package problem360 2 | -------------------------------------------------------------------------------- /problems/soup-servings/soup_servings.go: -------------------------------------------------------------------------------- 1 | package problem808 2 | -------------------------------------------------------------------------------- /problems/soup-servings/soup_servings_test.go: -------------------------------------------------------------------------------- 1 | package problem808 2 | -------------------------------------------------------------------------------- /problems/special-binary-string/special_binary_string.go: -------------------------------------------------------------------------------- 1 | package problem761 2 | -------------------------------------------------------------------------------- /problems/special-binary-string/special_binary_string_test.go: -------------------------------------------------------------------------------- 1 | package problem761 2 | -------------------------------------------------------------------------------- /problems/spiral-matrix-ii/spiral_matrix_ii.go: -------------------------------------------------------------------------------- 1 | package problem59 2 | -------------------------------------------------------------------------------- /problems/spiral-matrix-ii/spiral_matrix_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem59 2 | -------------------------------------------------------------------------------- /problems/spiral-matrix-iii/spiral_matrix_iii.go: -------------------------------------------------------------------------------- 1 | package problem885 2 | -------------------------------------------------------------------------------- /problems/spiral-matrix-iii/spiral_matrix_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem885 2 | -------------------------------------------------------------------------------- /problems/spiral-matrix/spiral_matrix.go: -------------------------------------------------------------------------------- 1 | package problem54 2 | -------------------------------------------------------------------------------- /problems/spiral-matrix/spiral_matrix_test.go: -------------------------------------------------------------------------------- 1 | package problem54 2 | -------------------------------------------------------------------------------- /problems/split-array-largest-sum/split_array_largest_sum.go: -------------------------------------------------------------------------------- 1 | package problem410 2 | -------------------------------------------------------------------------------- /problems/split-array-largest-sum/split_array_largest_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem410 2 | -------------------------------------------------------------------------------- /problems/split-array-with-equal-sum/split_array_with_equal_sum.go: -------------------------------------------------------------------------------- 1 | package problem548 2 | -------------------------------------------------------------------------------- /problems/split-bst/split_bst.go: -------------------------------------------------------------------------------- 1 | package problem776 2 | -------------------------------------------------------------------------------- /problems/split-bst/split_bst_test.go: -------------------------------------------------------------------------------- 1 | package problem776 2 | -------------------------------------------------------------------------------- /problems/split-concatenated-strings/split_concatenated_strings.go: -------------------------------------------------------------------------------- 1 | package problem555 2 | -------------------------------------------------------------------------------- /problems/split-linked-list-in-parts/split_linked_list_in_parts.go: -------------------------------------------------------------------------------- 1 | package problem725 2 | -------------------------------------------------------------------------------- /problems/squirrel-simulation/squirrel_simulation.go: -------------------------------------------------------------------------------- 1 | package problem573 2 | -------------------------------------------------------------------------------- /problems/squirrel-simulation/squirrel_simulation_test.go: -------------------------------------------------------------------------------- 1 | package problem573 2 | -------------------------------------------------------------------------------- /problems/stamping-the-sequence/stamping_the_sequence.go: -------------------------------------------------------------------------------- 1 | package problem936 2 | -------------------------------------------------------------------------------- /problems/stamping-the-sequence/stamping_the_sequence_test.go: -------------------------------------------------------------------------------- 1 | package problem936 2 | -------------------------------------------------------------------------------- /problems/stickers-to-spell-word/stickers_to_spell_word.go: -------------------------------------------------------------------------------- 1 | package problem691 2 | -------------------------------------------------------------------------------- /problems/stickers-to-spell-word/stickers_to_spell_word_test.go: -------------------------------------------------------------------------------- 1 | package problem691 2 | -------------------------------------------------------------------------------- /problems/strange-printer/strange_printer.go: -------------------------------------------------------------------------------- 1 | package problem664 2 | -------------------------------------------------------------------------------- /problems/strange-printer/strange_printer_test.go: -------------------------------------------------------------------------------- 1 | package problem664 2 | -------------------------------------------------------------------------------- /problems/strobogrammatic-number-ii/strobogrammatic_number_ii.go: -------------------------------------------------------------------------------- 1 | package problem247 2 | -------------------------------------------------------------------------------- /problems/strobogrammatic-number-iii/strobogrammatic_number_iii.go: -------------------------------------------------------------------------------- 1 | package problem248 2 | -------------------------------------------------------------------------------- /problems/strobogrammatic-number/strobogrammatic_number.go: -------------------------------------------------------------------------------- 1 | package problem246 2 | -------------------------------------------------------------------------------- /problems/strobogrammatic-number/strobogrammatic_number_test.go: -------------------------------------------------------------------------------- 1 | package problem246 2 | -------------------------------------------------------------------------------- /problems/strong-password-checker/strong_password_checker.go: -------------------------------------------------------------------------------- 1 | package problem420 2 | -------------------------------------------------------------------------------- /problems/strong-password-checker/strong_password_checker_test.go: -------------------------------------------------------------------------------- 1 | package problem420 2 | -------------------------------------------------------------------------------- /problems/subarray-sum-equals-k/subarray_sum_equals_k.go: -------------------------------------------------------------------------------- 1 | package problem560 2 | -------------------------------------------------------------------------------- /problems/subarray-sum-equals-k/subarray_sum_equals_k_test.go: -------------------------------------------------------------------------------- 1 | package problem560 2 | -------------------------------------------------------------------------------- /problems/subdomain-visit-count/subdomain_visit_count.go: -------------------------------------------------------------------------------- 1 | package problem811 2 | -------------------------------------------------------------------------------- /problems/subdomain-visit-count/subdomain_visit_count_test.go: -------------------------------------------------------------------------------- 1 | package problem811 2 | -------------------------------------------------------------------------------- /problems/subsets-ii/subsets_ii.go: -------------------------------------------------------------------------------- 1 | package problem90 2 | -------------------------------------------------------------------------------- /problems/subsets-ii/subsets_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem90 2 | -------------------------------------------------------------------------------- /problems/subsets/subsets.go: -------------------------------------------------------------------------------- 1 | package problem78 2 | -------------------------------------------------------------------------------- /problems/subsets/subsets_test.go: -------------------------------------------------------------------------------- 1 | package problem78 2 | -------------------------------------------------------------------------------- /problems/subtree-of-another-tree/subtree_of_another_tree.go: -------------------------------------------------------------------------------- 1 | package problem572 2 | -------------------------------------------------------------------------------- /problems/subtree-of-another-tree/subtree_of_another_tree_test.go: -------------------------------------------------------------------------------- 1 | package problem572 2 | -------------------------------------------------------------------------------- /problems/sudoku-solver/sudoku_solver.go: -------------------------------------------------------------------------------- 1 | package problem37 2 | -------------------------------------------------------------------------------- /problems/sudoku-solver/sudoku_solver_test.go: -------------------------------------------------------------------------------- 1 | package problem37 2 | -------------------------------------------------------------------------------- /problems/sum-of-distances-in-tree/sum_of_distances_in_tree.go: -------------------------------------------------------------------------------- 1 | package problem834 2 | -------------------------------------------------------------------------------- /problems/sum-of-left-leaves/sum_of_left_leaves.go: -------------------------------------------------------------------------------- 1 | package problem404 2 | -------------------------------------------------------------------------------- /problems/sum-of-left-leaves/sum_of_left_leaves_test.go: -------------------------------------------------------------------------------- 1 | package problem404 2 | -------------------------------------------------------------------------------- /problems/sum-of-square-numbers/sum_of_square_numbers.go: -------------------------------------------------------------------------------- 1 | package problem633 2 | -------------------------------------------------------------------------------- /problems/sum-of-square-numbers/sum_of_square_numbers_test.go: -------------------------------------------------------------------------------- 1 | package problem633 2 | -------------------------------------------------------------------------------- /problems/sum-of-subarray-minimums/sum_of_subarray_minimums.go: -------------------------------------------------------------------------------- 1 | package problem907 2 | -------------------------------------------------------------------------------- /problems/sum-of-subsequence-widths/sum_of_subsequence_widths.go: -------------------------------------------------------------------------------- 1 | package problem891 2 | -------------------------------------------------------------------------------- /problems/sum-root-to-leaf-numbers/sum_root_to_leaf_numbers.go: -------------------------------------------------------------------------------- 1 | package problem129 2 | -------------------------------------------------------------------------------- /problems/summary-ranges/summary_ranges.go: -------------------------------------------------------------------------------- 1 | package problem228 2 | -------------------------------------------------------------------------------- /problems/summary-ranges/summary_ranges_test.go: -------------------------------------------------------------------------------- 1 | package problem228 2 | -------------------------------------------------------------------------------- /problems/super-egg-drop/super_egg_drop.go: -------------------------------------------------------------------------------- 1 | package problem887 2 | -------------------------------------------------------------------------------- /problems/super-egg-drop/super_egg_drop_test.go: -------------------------------------------------------------------------------- 1 | package problem887 2 | -------------------------------------------------------------------------------- /problems/super-palindromes/super_palindromes.go: -------------------------------------------------------------------------------- 1 | package problem906 2 | -------------------------------------------------------------------------------- /problems/super-palindromes/super_palindromes_test.go: -------------------------------------------------------------------------------- 1 | package problem906 2 | -------------------------------------------------------------------------------- /problems/super-pow/super_pow.go: -------------------------------------------------------------------------------- 1 | package problem372 2 | -------------------------------------------------------------------------------- /problems/super-pow/super_pow_test.go: -------------------------------------------------------------------------------- 1 | package problem372 2 | -------------------------------------------------------------------------------- /problems/super-ugly-number/super_ugly_number.go: -------------------------------------------------------------------------------- 1 | package problem313 2 | -------------------------------------------------------------------------------- /problems/super-ugly-number/super_ugly_number_test.go: -------------------------------------------------------------------------------- 1 | package problem313 2 | -------------------------------------------------------------------------------- /problems/super-washing-machines/super_washing_machines.go: -------------------------------------------------------------------------------- 1 | package problem517 2 | -------------------------------------------------------------------------------- /problems/super-washing-machines/super_washing_machines_test.go: -------------------------------------------------------------------------------- 1 | package problem517 2 | -------------------------------------------------------------------------------- /problems/surface-area-of-3d-shapes/surface_area_of_3d_shapes.go: -------------------------------------------------------------------------------- 1 | package problem892 2 | -------------------------------------------------------------------------------- /problems/surrounded-regions/surrounded_regions.go: -------------------------------------------------------------------------------- 1 | package problem130 2 | -------------------------------------------------------------------------------- /problems/surrounded-regions/surrounded_regions_test.go: -------------------------------------------------------------------------------- 1 | package problem130 2 | -------------------------------------------------------------------------------- /problems/swap-adjacent-in-lr-string/swap_adjacent_in_lr_string.go: -------------------------------------------------------------------------------- 1 | package problem777 2 | -------------------------------------------------------------------------------- /problems/swap-nodes-in-pairs/swap_nodes_in_pairs.go: -------------------------------------------------------------------------------- 1 | package problem24 2 | -------------------------------------------------------------------------------- /problems/swap-nodes-in-pairs/swap_nodes_in_pairs_test.go: -------------------------------------------------------------------------------- 1 | package problem24 2 | -------------------------------------------------------------------------------- /problems/swim-in-rising-water/swim_in_rising_water.go: -------------------------------------------------------------------------------- 1 | package problem778 2 | -------------------------------------------------------------------------------- /problems/swim-in-rising-water/swim_in_rising_water_test.go: -------------------------------------------------------------------------------- 1 | package problem778 2 | -------------------------------------------------------------------------------- /problems/tag-validator/tag_validator.go: -------------------------------------------------------------------------------- 1 | package problem591 2 | -------------------------------------------------------------------------------- /problems/tag-validator/tag_validator_test.go: -------------------------------------------------------------------------------- 1 | package problem591 2 | -------------------------------------------------------------------------------- /problems/tallest-billboard/tallest_billboard.go: -------------------------------------------------------------------------------- 1 | package problem956 2 | -------------------------------------------------------------------------------- /problems/tallest-billboard/tallest_billboard_test.go: -------------------------------------------------------------------------------- 1 | package problem956 2 | -------------------------------------------------------------------------------- /problems/target-sum/target_sum.go: -------------------------------------------------------------------------------- 1 | package problem494 2 | -------------------------------------------------------------------------------- /problems/target-sum/target_sum_test.go: -------------------------------------------------------------------------------- 1 | package problem494 2 | -------------------------------------------------------------------------------- /problems/task-scheduler/task_scheduler.go: -------------------------------------------------------------------------------- 1 | package problem621 2 | -------------------------------------------------------------------------------- /problems/task-scheduler/task_scheduler_test.go: -------------------------------------------------------------------------------- 1 | package problem621 2 | -------------------------------------------------------------------------------- /problems/teemo-attacking/teemo_attacking.go: -------------------------------------------------------------------------------- 1 | package problem495 2 | -------------------------------------------------------------------------------- /problems/teemo-attacking/teemo_attacking_test.go: -------------------------------------------------------------------------------- 1 | package problem495 2 | -------------------------------------------------------------------------------- /problems/ternary-expression-parser/ternary_expression_parser.go: -------------------------------------------------------------------------------- 1 | package problem439 2 | -------------------------------------------------------------------------------- /problems/text-justification/text_justification.go: -------------------------------------------------------------------------------- 1 | package problem68 2 | -------------------------------------------------------------------------------- /problems/text-justification/text_justification_test.go: -------------------------------------------------------------------------------- 1 | package problem68 2 | -------------------------------------------------------------------------------- /problems/the-maze-ii/the_maze_ii.go: -------------------------------------------------------------------------------- 1 | package problem505 2 | -------------------------------------------------------------------------------- /problems/the-maze-ii/the_maze_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem505 2 | -------------------------------------------------------------------------------- /problems/the-maze-iii/the_maze_iii.go: -------------------------------------------------------------------------------- 1 | package problem499 2 | -------------------------------------------------------------------------------- /problems/the-maze-iii/the_maze_iii_test.go: -------------------------------------------------------------------------------- 1 | package problem499 2 | -------------------------------------------------------------------------------- /problems/the-maze/the_maze.go: -------------------------------------------------------------------------------- 1 | package problem490 2 | -------------------------------------------------------------------------------- /problems/the-maze/the_maze_test.go: -------------------------------------------------------------------------------- 1 | package problem490 2 | -------------------------------------------------------------------------------- /problems/the-skyline-problem/the_skyline_problem.go: -------------------------------------------------------------------------------- 1 | package problem218 2 | -------------------------------------------------------------------------------- /problems/the-skyline-problem/the_skyline_problem_test.go: -------------------------------------------------------------------------------- 1 | package problem218 2 | -------------------------------------------------------------------------------- /problems/three-equal-parts/three_equal_parts.go: -------------------------------------------------------------------------------- 1 | package problem927 2 | -------------------------------------------------------------------------------- /problems/three-equal-parts/three_equal_parts_test.go: -------------------------------------------------------------------------------- 1 | package problem927 2 | -------------------------------------------------------------------------------- /problems/time-based-key-value-store/time_based_key_value_store.go: -------------------------------------------------------------------------------- 1 | package problem981 2 | -------------------------------------------------------------------------------- /problems/top-k-frequent-elements/top_k_frequent_elements.go: -------------------------------------------------------------------------------- 1 | package problem347 2 | -------------------------------------------------------------------------------- /problems/top-k-frequent-elements/top_k_frequent_elements_test.go: -------------------------------------------------------------------------------- 1 | package problem347 2 | -------------------------------------------------------------------------------- /problems/top-k-frequent-words/top_k_frequent_words.go: -------------------------------------------------------------------------------- 1 | package problem692 2 | -------------------------------------------------------------------------------- /problems/top-k-frequent-words/top_k_frequent_words_test.go: -------------------------------------------------------------------------------- 1 | package problem692 2 | -------------------------------------------------------------------------------- /problems/total-hamming-distance/total_hamming_distance.go: -------------------------------------------------------------------------------- 1 | package problem477 2 | -------------------------------------------------------------------------------- /problems/total-hamming-distance/total_hamming_distance_test.go: -------------------------------------------------------------------------------- 1 | package problem477 2 | -------------------------------------------------------------------------------- /problems/transform-to-chessboard/transform_to_chessboard.go: -------------------------------------------------------------------------------- 1 | package problem782 2 | -------------------------------------------------------------------------------- /problems/transform-to-chessboard/transform_to_chessboard_test.go: -------------------------------------------------------------------------------- 1 | package problem782 2 | -------------------------------------------------------------------------------- /problems/transpose-file/file.txt: -------------------------------------------------------------------------------- 1 | name age 2 | alice 21 3 | ryan 30 4 | -------------------------------------------------------------------------------- /problems/trapping-rain-water-ii/trapping_rain_water_ii.go: -------------------------------------------------------------------------------- 1 | package problem407 2 | -------------------------------------------------------------------------------- /problems/trapping-rain-water-ii/trapping_rain_water_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem407 2 | -------------------------------------------------------------------------------- /problems/trapping-rain-water/trapping_rain_water.go: -------------------------------------------------------------------------------- 1 | package problem42 2 | -------------------------------------------------------------------------------- /problems/trapping-rain-water/trapping_rain_water_test.go: -------------------------------------------------------------------------------- 1 | package problem42 2 | -------------------------------------------------------------------------------- /problems/tree-node/tree_node.sql: -------------------------------------------------------------------------------- 1 | # Write your MySQL query statement below 2 | -------------------------------------------------------------------------------- /problems/triangle/triangle.go: -------------------------------------------------------------------------------- 1 | package problem120 2 | -------------------------------------------------------------------------------- /problems/triangle/triangle_test.go: -------------------------------------------------------------------------------- 1 | package problem120 2 | -------------------------------------------------------------------------------- /problems/trim-a-binary-search-tree/trim_a_binary_search_tree.go: -------------------------------------------------------------------------------- 1 | package problem669 2 | -------------------------------------------------------------------------------- /problems/two-sum-iv-input-is-a-bst/two_sum_iv_input_is_a_bst.go: -------------------------------------------------------------------------------- 1 | package problem653 2 | -------------------------------------------------------------------------------- /problems/unique-binary-search-trees/unique_binary_search_trees.go: -------------------------------------------------------------------------------- 1 | package problem96 2 | -------------------------------------------------------------------------------- /problems/unique-paths-ii/unique_paths_ii.go: -------------------------------------------------------------------------------- 1 | package problem63 2 | -------------------------------------------------------------------------------- /problems/unique-paths-ii/unique_paths_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem63 2 | -------------------------------------------------------------------------------- /problems/unique-paths-iii/unique_paths_iii.go: -------------------------------------------------------------------------------- 1 | package problem980 2 | -------------------------------------------------------------------------------- /problems/unique-paths/unique_paths.go: -------------------------------------------------------------------------------- 1 | package problem62 2 | -------------------------------------------------------------------------------- /problems/unique-paths/unique_paths_test.go: -------------------------------------------------------------------------------- 1 | package problem62 2 | -------------------------------------------------------------------------------- /problems/unique-word-abbreviation/unique_word_abbreviation.go: -------------------------------------------------------------------------------- 1 | package problem288 2 | -------------------------------------------------------------------------------- /problems/valid-parenthesis-string/valid_parenthesis_string.go: -------------------------------------------------------------------------------- 1 | package problem678 2 | -------------------------------------------------------------------------------- /problems/valid-square/valid_square.go: -------------------------------------------------------------------------------- 1 | package problem593 2 | -------------------------------------------------------------------------------- /problems/valid-square/valid_square_test.go: -------------------------------------------------------------------------------- 1 | package problem593 2 | -------------------------------------------------------------------------------- /problems/valid-tic-tac-toe-state/valid_tic_tac_toe_state.go: -------------------------------------------------------------------------------- 1 | package problem794 2 | -------------------------------------------------------------------------------- /problems/valid-tic-tac-toe-state/valid_tic_tac_toe_state_test.go: -------------------------------------------------------------------------------- 1 | package problem794 2 | -------------------------------------------------------------------------------- /problems/valid-triangle-number/valid_triangle_number.go: -------------------------------------------------------------------------------- 1 | package problem611 2 | -------------------------------------------------------------------------------- /problems/valid-triangle-number/valid_triangle_number_test.go: -------------------------------------------------------------------------------- 1 | package problem611 2 | -------------------------------------------------------------------------------- /problems/valid-word-abbreviation/valid_word_abbreviation.go: -------------------------------------------------------------------------------- 1 | package problem408 2 | -------------------------------------------------------------------------------- /problems/valid-word-abbreviation/valid_word_abbreviation_test.go: -------------------------------------------------------------------------------- 1 | package problem408 2 | -------------------------------------------------------------------------------- /problems/valid-word-square/valid_word_square.go: -------------------------------------------------------------------------------- 1 | package problem422 2 | -------------------------------------------------------------------------------- /problems/valid-word-square/valid_word_square_test.go: -------------------------------------------------------------------------------- 1 | package problem422 2 | -------------------------------------------------------------------------------- /problems/validate-stack-sequences/validate_stack_sequences.go: -------------------------------------------------------------------------------- 1 | package problem946 2 | -------------------------------------------------------------------------------- /problems/vowel-spellchecker/vowel_spellchecker.go: -------------------------------------------------------------------------------- 1 | package problem966 2 | -------------------------------------------------------------------------------- /problems/walking-robot-simulation/walking_robot_simulation.go: -------------------------------------------------------------------------------- 1 | package problem874 2 | -------------------------------------------------------------------------------- /problems/walls-and-gates/walls_and_gates.go: -------------------------------------------------------------------------------- 1 | package problem286 2 | -------------------------------------------------------------------------------- /problems/walls-and-gates/walls_and_gates_test.go: -------------------------------------------------------------------------------- 1 | package problem286 2 | -------------------------------------------------------------------------------- /problems/water-and-jug-problem/water_and_jug_problem.go: -------------------------------------------------------------------------------- 1 | package problem365 2 | -------------------------------------------------------------------------------- /problems/water-and-jug-problem/water_and_jug_problem_test.go: -------------------------------------------------------------------------------- 1 | package problem365 2 | -------------------------------------------------------------------------------- /problems/wiggle-sort-ii/wiggle_sort_ii.go: -------------------------------------------------------------------------------- 1 | package problem324 2 | -------------------------------------------------------------------------------- /problems/wiggle-sort-ii/wiggle_sort_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem324 2 | -------------------------------------------------------------------------------- /problems/wiggle-sort/wiggle_sort.go: -------------------------------------------------------------------------------- 1 | package problem280 2 | -------------------------------------------------------------------------------- /problems/wiggle-sort/wiggle_sort_test.go: -------------------------------------------------------------------------------- 1 | package problem280 2 | -------------------------------------------------------------------------------- /problems/wiggle-subsequence/wiggle_subsequence.go: -------------------------------------------------------------------------------- 1 | package problem376 2 | -------------------------------------------------------------------------------- /problems/wiggle-subsequence/wiggle_subsequence_test.go: -------------------------------------------------------------------------------- 1 | package problem376 2 | -------------------------------------------------------------------------------- /problems/wildcard-matching/wildcard_matching.go: -------------------------------------------------------------------------------- 1 | package problem44 2 | -------------------------------------------------------------------------------- /problems/wildcard-matching/wildcard_matching_test.go: -------------------------------------------------------------------------------- 1 | package problem44 2 | -------------------------------------------------------------------------------- /problems/word-abbreviation/word_abbreviation.go: -------------------------------------------------------------------------------- 1 | package problem527 2 | -------------------------------------------------------------------------------- /problems/word-abbreviation/word_abbreviation_test.go: -------------------------------------------------------------------------------- 1 | package problem527 2 | -------------------------------------------------------------------------------- /problems/word-break-ii/word_break_ii.go: -------------------------------------------------------------------------------- 1 | package problem140 2 | -------------------------------------------------------------------------------- /problems/word-break-ii/word_break_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem140 2 | -------------------------------------------------------------------------------- /problems/word-frequency/words.txt: -------------------------------------------------------------------------------- 1 | the day is sunny the the 2 | the sunny is is 3 | -------------------------------------------------------------------------------- /problems/word-ladder-ii/word_ladder_ii.go: -------------------------------------------------------------------------------- 1 | package problem126 2 | -------------------------------------------------------------------------------- /problems/word-ladder-ii/word_ladder_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem126 2 | -------------------------------------------------------------------------------- /problems/word-ladder/word_ladder.go: -------------------------------------------------------------------------------- 1 | package problem127 2 | -------------------------------------------------------------------------------- /problems/word-ladder/word_ladder_test.go: -------------------------------------------------------------------------------- 1 | package problem127 2 | -------------------------------------------------------------------------------- /problems/word-pattern-ii/word_pattern_ii.go: -------------------------------------------------------------------------------- 1 | package problem291 2 | -------------------------------------------------------------------------------- /problems/word-pattern-ii/word_pattern_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem291 2 | -------------------------------------------------------------------------------- /problems/word-search-ii/word_search_ii.go: -------------------------------------------------------------------------------- 1 | package problem212 2 | -------------------------------------------------------------------------------- /problems/word-search-ii/word_search_ii_test.go: -------------------------------------------------------------------------------- 1 | package problem212 2 | -------------------------------------------------------------------------------- /problems/word-search/word_search.go: -------------------------------------------------------------------------------- 1 | package problem79 2 | -------------------------------------------------------------------------------- /problems/word-search/word_search_test.go: -------------------------------------------------------------------------------- 1 | package problem79 2 | -------------------------------------------------------------------------------- /problems/word-squares/word_squares.go: -------------------------------------------------------------------------------- 1 | package problem425 2 | -------------------------------------------------------------------------------- /problems/word-squares/word_squares_test.go: -------------------------------------------------------------------------------- 1 | package problem425 2 | -------------------------------------------------------------------------------- /problems/word-subsets/word_subsets.go: -------------------------------------------------------------------------------- 1 | package problem916 2 | -------------------------------------------------------------------------------- /problems/word-subsets/word_subsets_test.go: -------------------------------------------------------------------------------- 1 | package problem916 2 | -------------------------------------------------------------------------------- /problems/zigzag-iterator/zigzag_iterator.go: -------------------------------------------------------------------------------- 1 | package problem281 2 | -------------------------------------------------------------------------------- /problems/zigzag-iterator/zigzag_iterator_test.go: -------------------------------------------------------------------------------- 1 | package problem281 2 | -------------------------------------------------------------------------------- /problems/zuma-game/zuma_game.go: -------------------------------------------------------------------------------- 1 | package problem488 2 | -------------------------------------------------------------------------------- /problems/zuma-game/zuma_game_test.go: -------------------------------------------------------------------------------- 1 | package problem488 2 | --------------------------------------------------------------------------------