Directories ¶ Show internal Expand all Path Synopsis leetcode array/11_container_with_most_water/twopointer array/152_maximum_product_subarray/dp array/15_three_sum/sortandtwopointer array/167_two_sum_ii_sorted/twopointer array/16_three_sum_closest/sortandtwopointers array/170_two_sum_iii_design/quickadd array/170_two_sum_iii_design/quickfind array/18_four_sum/twopointer array/18_four_sum/twopointerwithconstraint array/1_two_sum/map array/209_minimum_size_subarray_sum/slidingwindow array/238_product_of_array_except_itself/twopass array/259_three_sum_smaller/twopointer array/325_maximum_size_subarray_sum_equals_k/prefixsumandmap array/523_continuous_subarray_sum/linear array/525_contiguous_array/linear array/560_subarray_sum_equals_k/prefixsum array/611_valid_triangle_number/binarysearch array/611_valid_triangle_number/twopointer array/628_maximum_product_of_three_numbers/linear array/653_two_sum_iv_bst/mapanddfs array/653_two_sum_iv_bst/mapandmorristraverse array/653_two_sum_iv_bst/stackandlessmemo array/713_subarray_product_less_than_k/slidingwindow array/724_find_pivot_index/linearandconstant array/76_minimum_window_substring/improvedslidingwindow array/76_minimum_window_substring/slidingwindow array/989_add_to_array_form_of_integer/best array/989_add_to_array_form_of_integer/notgood backtracking/22_generate_parentheses/dp backtracking/22_generate_parentheses/topdown backtracking/267_palindrome_permutation_ii/backtracking backtracking/37_sudoku_solver/backtracking backtracking/46_permutations/backtrackinglessmemo backtracking/46_permutations/backtrackingmorememo backtracking/47_permuations_ii/backtrackinglessmemo backtracking/47_permuations_ii/backtrackingmorememo backtracking/60_permutation_sequence/linear backtracking/77_combinations/backtracking backtracking/7_letter_combinations_of_a_phone_number/bottomup backtracking/7_letter_combinations_of_a_phone_number/topdown binarysearch/962_maximum_width_ramp/binarysearch binarysearch/962_maximum_width_ramp/sort company/airbnb/125_valid_palindrome company/airbnb/212_word_search_ii/trieandbacktracking company/airbnb/216_combination_sum_iii/backtracking company/airbnb/21_merge_two_sorted_lists/iterative company/airbnb/21_merge_two_sorted_lists/recursive company/airbnb/236_lowest_common_ancestor_of_a_binary_tree/recursive company/airbnb/236_lowest_common_ancestor_of_a_binary_tree/recursivecomplex company/airbnb/251_flatten_2d_vector/quickconstructor company/airbnb/251_flatten_2d_vector/quickhasnext company/airbnb/269_alien_dictionary/bfstopologicalsort company/airbnb/269_alien_dictionary/dfstopologicalsort company/airbnb/295_find_median_from_data_stream/twoheap company/airbnb/2_add_two_numbers/iterative company/airbnb/2_add_two_numbers/recursive company/airbnb/300_longest_increasing_subsequence/dp company/airbnb/300_longest_increasing_subsequence/dpandbinarysearch company/airbnb/324_wiggle_sort_ii/sortandarray company/airbnb/324_wiggle_sort_ii/threewaypartition1 company/airbnb/336_palindrome_pairs/hasmapandprefix company/airbnb/336_palindrome_pairs/trie company/airbnb/341_flatten_nested_list_iterator/stack company/airbnb/377_combination_sum_iv/dp company/airbnb/39_combination_sum/backtracking company/airbnb/39_combination_sum/backtrackingpreferred company/airbnb/40_combination_sum_ii/backtracking company/airbnb/41_first_missing_positive/constantspace company/airbnb/42_trapping_rain_water/dp company/airbnb/42_trapping_rain_water/stack company/airbnb/42_trapping_rain_water/twopointer company/airbnb/5_longest_palindromic_substring/dpfromendtostart company/airbnb/5_longest_palindromic_substring/dpfromstarttoend company/airbnb/5_longest_palindromic_substring/twopointer company/airbnb/622_design_circular_queue/naiveinit company/airbnb/622_design_circular_queue/smartinit company/airbnb/751_ip_to_cidr/iterativeandgreedy company/airbnb/751_ip_to_cidr/withoutlibfunction company/airbnb/755_pour_water/vn company/airbnb/755_pour_water/vnclear company/airbnb/756_pyramid_transition_matrix/backtracking company/airbnb/759_employee_free_time/priorityqueue company/airbnb/773_sliding_puzzle/bfs company/airbnb/773_sliding_puzzle/bfsstring company/airbnb/787_cheapest_flights_within_k_stops/bellmenford company/airbnb/79_word_search/dfs company/airbnb/79_word_search/dfsmorecall company/airbnb/7_reverse_integer/linear company/airbnb/815_bus_routes/bfs company/airbnb/829_consecutive_numbers_sum/math company/airbnb/829_consecutive_numbers_sum/math1 company/amazon/138_copy_list_with_random_pointer/constantspace company/amazon/138_copy_list_with_random_pointer/dfs company/amazon/138_copy_list_with_random_pointer/iterative company/amazon/141_linked_list_cycle/constactspace company/amazon/160_intersection_of_two_linked_lists/twopointerandconstspace company/amazon/189_rotate_array/extraspace company/amazon/189_rotate_array/inplace company/amazon/204_count_prime/best_solution company/amazon/204_count_prime/second_best company/amazon/234_palindrome_linked_list/inplace company/amazon/234_palindrome_linked_list/nspace company/amazon/242_valid_anagram/map company/amazon/6_zigzag_conversion/rearrageandscan company/amazon/6_zigzag_conversion/scaninroworder company/amazon/73_set_matrix_zeroes/inplace company/amazon/78_subsets/better company/amazon/78_subsets/bottomup company/amazon/89_gray_code/generatelevelbylevel company/amazon/90_subset_ii/backtracking company/doordash/562_longest_line_of_consecutive_one_in_matrix/dp company/doordash/695_max_area_of_island/dfs company/doordash/695_max_area_of_island/dfsnoextramap company/doordash/986_interval_list_intersections/mergesortclean company/doordash/986_interval_list_intersections/straightforward company/doordash/browser_history company/doordash/nary_tree_level_order_traversal/queue company/doordash/sort_array_in_0_to_200/extraarray company/doordash/valid_pick_up_and_delivery company/facebook/128_longest_consecutive_sequence/map company/facebook/128_longest_consecutive_sequence/unionfind company/facebook/14_longest_common_prefix/horizontalscanning company/facebook/14_longest_common_prefix/verticalscanning company/facebook/153_find_minimum_in_rotated_sorted_array/binarysearch company/facebook/247_strobogrammatic_number_ii/bottomup company/facebook/247_strobogrammatic_number_ii/topdown company/facebook/248_strobogrammatic_number_iii/dp company/facebook/252_meeting_room/sort company/facebook/253_meeting_room_ii/sort company/facebook/286_walls_and_gates/bfs company/facebook/301_remove_invalid_parentheses/backtacking company/facebook/32_longest_valid_parentheses/dp company/facebook/32_longest_valid_parentheses/leftandrightscan company/facebook/32_longest_valid_parentheses/stack company/facebook/334_increasing_triplet_subsequence/constantmemo company/facebook/34_find_first_and_last_position_of_element_in_sorted_array/twobinarysearch company/facebook/3_longest_substring_without_repeating_characters/slidingwindow company/facebook/3_longest_substring_without_repeating_characters/slidingwindowbetter company/facebook/88_merge_sorted_array/twopointersfromend company/facebook/9_palindrome_number/halfint company/facebook/9_palindrome_number/int company/google/1000_minimum_cost_to_merge_stones/2ddp company/google/1000_minimum_cost_to_merge_stones/3ddp company/google/131_palindrome_partitioning/backtracking company/google/131_palindrome_partitioning/backtrackingwithmemo company/google/132_palindrome_partitioning_ii/dp company/google/134_gas_station/onepass company/google/135_candy/bruteforce company/google/135_candy/onepassandconstspace company/google/135_candy/twopass company/google/139_word_break/dfswithmemo company/google/139_word_break/dp company/google/140_word_break_ii/dfsandmemo company/google/140_word_break_ii/dp company/google/157_read_n_characters_given_read4/linear company/google/158_read_n_characters_given_read_4_ii_call_multiple_times/globalbuffer company/google/159_longest_substring_with_at_most_two_distinct_characters/slidingwindow company/google/221_maximal_square/dp company/google/223_rectangle_area/overlap company/google/240_search_a_2d_matrix_ii/topright company/google/246_strobogrammatic_number/twopointer company/google/289_game_of_life/inplace company/google/290_word_pattern/twomap company/google/298_binary_tree_longest_consecutive_sequence/dfsandbottomup company/google/298_binary_tree_longest_consecutive_sequence/dfsandtopdown company/google/299_bulls_and_cows/twopass company/google/299_bulls_and_cows/twppassii company/google/308_range_sum_query_2d_mutable/bineryindextree company/google/30_substring_with_concatenation_of_all_words/map company/google/30_substring_with_concatenation_of_all_words/slidingwindow company/google/312_burst_balloons/dp company/google/315_count_of_smaller_numbers_after_self/binaryindextree company/google/315_count_of_smaller_numbers_after_self/bst company/google/316_remove_duplicate_letters/stackandgreedy company/google/327_count_of_range_sum/binaryindextree company/google/327_count_of_range_sum/mergesort company/google/327_count_of_range_sum/prefixsum company/google/329_longest_increasing_path_in_a_matrix/dfsandmemo company/google/354_russian_doll_envelopes/dp company/google/354_russian_doll_envelopes/dpandbinarysearch company/google/387_first_unique_character_in_a_string/twopass company/google/394_decode_string/iterativeandstack company/google/394_decode_string/recursive company/google/406_queue_reconstruction_by_height/smalltolarge company/google/410_split_array_largest_sum/binarysearch company/google/410_split_array_largest_sum/dp company/google/415_add_strings/positionbypositionfromback company/google/422_valid_word_square/constspace company/google/422_valid_word_square/twoforloop company/google/425_word_squares/dfsandtrie company/google/44_wildcard_matching/dp company/google/471_encode_string_with_shortest_length/dp company/google/488_zuma_game/backtackingbutwrong company/google/489_robot_room_cleaner/dfs company/google/493_reverse_pairs/mergesort company/google/4_median_of_two_sorted_arrays/binarysearch company/google/505_maze_ii/dfs company/google/505_maze_ii/dijkstra company/google/527_word_abbreviation/greedyandexpandprefix company/google/564_find_the_closest_palindrome/stringprocess company/google/659_split_array_into_consecutive_subsequence/greedy company/google/74_search_a_2d_matrix/binarysearch1d company/google/74_search_a_2d_matrix/binarysearch2d company/google/753_cracking_the_safe/eularpath company/google/753_cracking_the_safe/hamiltonianpath company/google/761_special_binary_string/recursive company/google/772_basic_calculator_iii/recursive company/google/774_minimize_max_distance_to_gas_station/binarysearch company/google/774_minimize_max_distance_to_gas_station/heap company/google/777_swap_adjacent_in_LR_string/conditioncheck company/google/777_swap_adjacent_in_LR_string/twopointer company/google/794_valid_tic_tac_tow_state/solution company/google/811_subdomain_visit_count/map company/google/812_largest_triangle_area/bruteforce company/google/833_find_and_replace_in_string/map company/google/837_new_21_game/dpandslidingwindow company/google/840_magic_squares_in_grid/bruteforce company/google/843_guess_the_word/heuristic company/google/84_largest_rectangle_in_histogram/squaretime company/google/84_largest_rectangle_in_histogram/stackandlinear company/google/850_rectangle_area_ii/linesweep company/google/857_minimum_cost_to_hire_k_workers/priorityqueue company/google/85_maximum_rectangle/dp company/google/85_maximum_rectangle/histogramseveryposition company/google/85_maximum_rectangle/maxrectanglehistogram company/google/914_x_of_a_kind_in_a_deck_of_cards/gcd company/google/920_number_of_music_playlist/dp company/google/929_unique_email_address/lib company/google/929_unique_email_address/loop company/google/935_knight_dialer/dp company/google/939_minimum_area_rectangle/sortanddiagonal company/google/943_find_the_shortest_superstring/dfsandbacktracking company/google/963_minimum_area_rectangle_ii company/google/975_odd_even_jump/dp company/google/975_odd_even_jump/dpandmonotonicstack company/houzz/10_regular_expression_matching/dpiterative company/houzz/10_regular_expression_matching/dprecursive company/houzz/10_regular_expression_matching/recursive company/houzz/121_best_time_to_buy_and_sell_stock/linear company/houzz/122_best_time_to_buy_and_sell_stock_ii/greedy company/houzz/123_best_time_to_buy_and_sell_stock_iii/dpandtwopass company/houzz/123_best_time_to_buy_and_sell_stock_iii/onepassandnoextraspace company/houzz/146_lru_cache/hasmapanddoublelinkedlist company/houzz/162_find_peak_elements/binarysearch company/houzz/162_find_peak_elements/linear company/houzz/174_dungeon_game/dp company/houzz/188_best_time_to_buy_and_sell_stock_iv/dp company/houzz/200_number_of_islands/dfs company/houzz/224_basic_calculator/interative company/houzz/224_basic_calculator/recursive company/houzz/227_2_base_calculator_ii_with_float/onestack company/houzz/227_basic_calculator_ii/onestack company/houzz/227_basic_calculator_ii/twostack company/houzz/304_range_sum_query_2d_immutable/prefixsum company/houzz/31_next_permutation/linear company/houzz/33_search_in_rotated_sorted_array/binarysearch company/houzz/43_multiply_strings/byposition company/houzz/48_rotate_image/onepass company/houzz/48_rotate_image/transposeandreverserow company/houzz/655_print_binary_tree/dfs company/houzz/65_valid_number/ifelse company/houzz/660_remove_9/base9 company/houzz/727_minimum_window_subsequence/dp company/houzz/785_is_graph_bipartite/bfs company/houzz/785_is_graph_bipartite/bfsii company/houzz/785_is_graph_bipartite/dfs company/houzz/byte_array_combination/online company/houzz/restore_array_order/bruteforce company/houzz/sqrt_of_float/byposition company/houzz/sqrt_of_float/deltamove company/houzz/string_to_binary_tree/recursive company/houzz/zigzag_matrix company/linkedin/126_word_ladder_ii/bfsanddfs company/linkedin/126_word_ladder_ii/bfsanddfsreverse company/linkedin/127_word_ladder/bfs company/linkedin/127_word_ladder/bidirectionalbfs company/linkedin/149_max_points_on_a_line/easyslope company/linkedin/149_max_points_on_a_line/slopenoprecisionloss company/linkedin/150_evaluate_reverse_polish_notation/stack company/linkedin/156_binary_tree_upside_down/iterative company/linkedin/156_binary_tree_upside_down/recursive company/linkedin/187_repeated_dna_sequences/bitmanipulation company/linkedin/187_repeated_dna_sequences/map company/linkedin/205_isomorphic_strings/map1 company/linkedin/205_isomorphic_strings/twomap company/linkedin/20_valid_parentheses/stack company/linkedin/243_shortest_word_distance/linear company/linkedin/244_shortest_word_distance_ii/goodconstructorgoodshortest company/linkedin/245_shortest_word_distance_iii/linear company/linkedin/254_factor_combinations/backtracking company/linkedin/270_closest_binary_search_tree_value/dfs company/linkedin/272_closest_binary_search_tree_value_ii/convlist company/linkedin/272_closest_binary_search_tree_value_ii/twostack company/linkedin/273_integer_to_english_words/threedigitgroup company/linkedin/277_find_the_celebrity/twopass company/linkedin/322_coin_change/dp company/linkedin/339_nested_list_weight_sum/bfs company/linkedin/339_nested_list_weight_sum/dfs company/linkedin/33_search_in_rotated_sorted_array/binarysearcheasytounderstand company/linkedin/33_search_in_rotated_sorted_array/binarysearchwithoutconsolidation company/linkedin/33_search_in_rotated_sorted_array/infvalue company/linkedin/33_search_in_rotated_sorted_array/modifiedbinarysearch company/linkedin/364_nested_list_weight_sum_ii/dfstwopass company/linkedin/364_nested_list_weight_sum_ii/onepass company/linkedin/366_find_leaves_of_binary_tree/dfs company/linkedin/384_shuffle_an_array/knuthshuffle company/linkedin/432_all_o_one_data_structure/doubledlinkedlist company/linkedin/516_longest_palindromic_subsequence/dp company/linkedin/528_random_pick_with_weight/binarysearch company/linkedin/605_can_place_flowers/linear company/linkedin/636_exclusive_time_of_functions/stack company/linkedin/636_exclusive_time_of_functions/stackii company/linkedin/671_second_minimum_node_in_a_binary_tree/helperrecursive company/linkedin/671_second_minimum_node_in_a_binary_tree/selfrecursive company/linkedin/68_text_justification/linear company/linkedin/698_partition_to_k_equal_sum_subsets/dfs company/linkedin/706_design_hashmap/separatechaining company/linkedin/715_range_module/sortedrange company/linkedin/716_max_stack/twostack company/linkedin/72_edit_distance/dp company/linkedin/81_search_in_rotated_sorted_array_ii/binarysearch company/linkedin/models company/pocketgem/133_clone_graph/dfs company/pocketgem/404_sum_of_left_leaves/recursive company/pocketgem/ternary_tree_conversion company/purestorage/12_roman_to_integer/linear company/purestorage/202_happy_number/cycledetection company/purestorage/202_happy_number/map company/purestorage/203_remove_linked_list_elements/iterative company/purestorage/203_remove_linked_list_elements/recursive company/purestorage/206_reverse_linked_list/iterative company/purestorage/206_reverse_linked_list/recursive company/purestorage/593_valid_square/checkalldistance company/purestorage/593_valid_square/sort company/purestorage/647_palindromic_substrings/dp company/purestorage/647_palindromic_substrings/pivotalletter company/purestorage/661_image_smoother/newarray company/purestorage/661_image_smoother/reusearray company/purestorage/730_count_different_palindromic_subsequences/dpandpreprocessnextposition company/purestorage/730_count_different_palindromic_subsequences/dpandtwopointer company/purestorage/75_sort_colors/onepass company/purestorage/75_sort_colors/twopass company/purestorage/buddy_system/solution1 company/purestorage/draw_circle/alloncircle company/purestorage/draw_circle/notexactlyoncircle company/purestorage/fire_events/nolock company/purestorage/fire_events/thread company/purestorage/o_one_set/versionnumber company/quip/54_spiral_matrix/layer company/quip/720_longest_word_in_dictionary/map company/quip/740_delete_and_earn/dp company/quip/855_exam_room/sortarray company/quip/fibonacci_number_three company/quip/next_greater_element_in_bst company/quip/num_of_path_in_matrix/dfs company/quip/num_of_path_in_matrix/dp company/quip/reverse_string company/quip/serialize_dictionary company/quip/sorted_circular_linked_list company/quip/spiral_matrix_inside_out company/quip/strings_only_in_one_list company/uber/255_verify_preorder_sequence_in_binary_search_tree/noextraspace company/uber/255_verify_preorder_sequence_in_binary_search_tree/recursive company/uber/255_verify_preorder_sequence_in_binary_search_tree/stackandlinear company/uber/279_perfect_square/dp company/uber/291_word_pattern_ii/onemapandbacktracking company/uber/291_word_pattern_ii/twomapandbacktracking company/uber/332_reconstruct_itinerary/hierholzers company/uber/346_moving_average_from_data_stream/circulararray company/uber/353_design_snake_game/dequeandmap company/uber/359_logger_rate_limiter/circulararray company/uber/359_logger_rate_limiter/map company/uber/361_bomb_enemy/memorize company/uber/362_design_hit_counter/circulararray company/uber/362_design_hit_counter/queue company/uber/36_valid_sudoku/stringencoding company/uber/465_optimal_account_balancing/dfs company/uber/490_the_maze/bfs company/uber/490_the_maze/dfs company/uber/49_group_anagram/nosort company/uber/535_encode_and_decode_tinyurl/base62andincrementalid company/uber/542_01_matrix/2passdp company/uber/658_find_k_closest_elements/bianrysearchandtwopointer company/uber/679_24_game/backtracking company/uber/780_reaching_points/searchbackward company/uber/780_reaching_points/searchbackwardoptimization dp/198_house_robber/dp dp/198_house_robber/dplessmemo dp/213_house_robber_ii/dp dp/256_paint_house/dp dp/265_paint_house_ii/dp dp/53_maximum_subarray/dp graph/207_course_schedule/dfs graph/207_course_schedule/topologicalsort graph/210_course_schedule_ii/dfs graph/210_course_schedule_ii/topologicalsort graph/310_minimum_height_trees/longestpath graph/399_evaluate_division/bfs graph/399_evaluate_division/dfs graph/399_evaluate_division/floydwarshall graph/924_minimize_malware_spread/unionfind greedy/621_task_scheduler/greedyandmath greedy/621_task_scheduler/greedyandpriorityqueue greedy/621_task_scheduler/greedyandsort greedy/767_reorganize_string/greedyandpriorityqueue linkedlist/147_insertion_sort_list/curptr linkedlist/147_insertion_sort_list/preptr linkedlist/23_merge_k_sorted_list/divideandconquermerge linkedlist/23_merge_k_sorted_list/divideandconquermergerecursive linkedlist/23_merge_k_sorted_list/priorityqueue math/263_ugly_number/iterative math/263_ugly_number/iterative2 math/263_ugly_number_ii/dp math/313_super_ugly_number/linearonepass math/313_super_ugly_number/lineartwopass math/313_super_ugly_number/priorityqueue matrix/363_max_sum_of_rectangle_no_larger_than_k/bruteforce matrix/363_max_sum_of_rectangle_no_larger_than_k/kadaneslike palindrome/266_palindrome_permutation/maponepass palindrome/266_palindrome_permutation/maptwopass priorityqueue/218_the_skyline_problem/priorityqueue priorityqueue/218_the_skyline_problem/priorityqueueclean priorityqueue/347_top_k_frequent_elements/bucketsort priorityqueue/347_top_k_frequent_elements/priorityqueue priorityqueue/347_top_k_frequent_elements/sort priorityqueue/373_find_k_pairs_with_smallest_sums/priorityqueue priorityqueue/378_kth_smallest_element_in_a_sorted_matrix/priorityqueue priorityqueue/407_trapping_rain_water_ii/priorityqueue priorityqueue/407_trapping_rain_water_ii/priorityqueueii queue/641_design_circular_deque/naiveinit queue/641_design_circular_deque/smartinit queue/862_shortest_subarray_with_sum_at_least_k/array queue/862_shortest_subarray_with_sum_at_least_k/customizeddeque queue/933_number_of_recent_calls/binarysearch queue/933_number_of_recent_calls/queue slidingwindow/239_sliding_window_maximum/sliding_window slidingwindow/904_fruit_into_baskets/slidingwindow slidingwindow/904_fruit_into_baskets/slidingwindowii sort/164_maximum_gap/bucketize sort/164_maximum_gap/radixsort1 sort/164_maximum_gap/radixsort2 sort/164_maximum_gap/sort sort/179_largest_number/sort sort/215_kth_largest_element_in_an_array/maxheap sort/215_kth_largest_element_in_an_array/minheap sort/215_kth_largest_element_in_an_array/quickselection sort/215_kth_largest_element_in_an_array/sort sort/274_h_index/countingsort sort/274_h_index/countingsortbetter sort/274_h_index/sort sort/451_sort_characters_by_frequency/bucketsort sort/451_sort_characters_by_frequency/sort sort/56_merge_intervals/sort sort/56_merge_intervals/sort2 sort/57_insert_interval/auxiliararray sort/710_random_pick_with_blacklist/map sort/973_k_closest_points_to_origin/priorityqueue sort/973_k_closest_points_to_origin/quickselect stack/155_min_stack/onestack stack/155_min_stack/twostack tree/102_binary_tree_level_order_traversal/dfs tree/102_binary_tree_level_order_traversal/queue tree/103_binary_tree_zigzag_level_order_traversal/iterative tree/103_binary_tree_zigzag_level_order_traversal/recursive tree/105_construct_binary_tree_from_preorder_and_inorder_traversal/recursive_i tree/105_construct_binary_tree_from_preorder_and_inorder_traversal/recursive_ii tree/107_binary_tree_level_order_traversal_ii/dfs tree/107_binary_tree_level_order_traversal_ii/queue tree/112_path_sum/iterative tree/112_path_sum/recursive tree/114_flatten_binary_tree_to_linked_list/iterative tree/114_flatten_binary_tree_to_linked_list/recursive tree/114_flatten_binary_tree_to_linked_list/recursiveii tree/117_path_sum_ii/recursive tree/124_binary_tree_maximum_path_sum/recursive tree/124_binary_tree_maximum_path_sum/recursivewithglobalvar tree/129_sum_root_to_leaf_numbers/recursive tree/129_sum_root_to_leaf_numbers/recursiveclean tree/129_sum_root_to_leaf_numbers/recursivewithglobalvar tree/144_binary_tree_preorder_traversal/iterative tree/144_binary_tree_preorder_traversal/morristraversal tree/144_binary_tree_preorder_traversal/recursive tree/145_binary_tree_postorder_traversal/iterativereversepreorder1 tree/145_binary_tree_postorder_traversal/iterativereversepreorder2 tree/145_binary_tree_postorder_traversal/recursive tree/173_binary_search_tree_iterator/morristraversal tree/173_binary_search_tree_iterator/slice tree/173_binary_search_tree_iterator/stack tree/199_binary_tree_right_side_view/bfs tree/199_binary_tree_right_side_view/dfs tree/222_count_complete_tree_node/divideandconquer tree/226_invert_binary_tree/iterative tree/226_invert_binary_tree/recursive tree/230_kth_smallest_element_in_a_bst/morris_traverse tree/235_lowest_common_ancestor_of_a_binary_search_tree/iterative tree/235_lowest_common_ancestor_of_a_binary_search_tree/recursive tree/257_binary_tree_paths/topdown tree/297_serialize_and_deserialize_binary_tree/iterativebfs tree/297_serialize_and_deserialize_binary_tree/recursive tree/337_house_robber_iii/recursive tree/437_path_sum_iii/bruteforce tree/437_path_sum_iii/prefixsum tree/450_delete_node_in_a_bst/iterative tree/450_delete_node_in_a_bst/recursive tree/501_find_mode_in_binary_search_tree/iterative tree/501_find_mode_in_binary_search_tree/iterativenotbestmemo tree/687_longest_univalue_path/bottomup tree/687_longest_univalue_path/bottomupwithglobalvar tree/94_binary_tree_inorder_traversal/iterative tree/94_binary_tree_inorder_traversal/morristraversal tree/94_binary_tree_inorder_traversal/recursive tree/95_unique_binary_search_trees_ii/dp tree/95_unique_binary_search_trees_ii/recursive tree/96_unique_binary_search_trees/dp tree/96_unique_binary_search_trees/recursive tree/98_validate_binary_search_tree/iterative tree/98_validate_binary_search_tree/morristraversal tree/98_validate_binary_search_tree/recursive_i tree/98_validate_binary_search_tree/recursive_ii tree/99_recover_binary_search_tree/iterative tree/99_recover_binary_search_tree/morristraversal tree/99_recover_binary_search_tree/recursive tree/models unionfind unionfind/684_redundant_connection_ii/unionfind unionfind/947_most_stones_removed_with_same_row_or_column/dfs unionfind/947_most_stones_removed_with_same_row_or_column/unionfind1 unionfind/947_most_stones_removed_with_same_row_or_column/unionfind2 Click to show internal directories. Click to hide internal directories.