├── .gitignore ├── README.md ├── SUMMARY.md ├── array ├── README.md ├── find_minimum_in_rotated_sorted_array.md ├── find_peak_element.md ├── largest_rectangle_in_histogram.md ├── maximal_rectangle.md ├── merge_sorted_array.md ├── palindrome_number.md ├── pascals_triangle.md ├── plus_one.md ├── remove_duplicates_from_sorted_array.md ├── remove_element.md ├── search_a_2d_matrix.md ├── search_for_a_range.md ├── search_insert_position.md └── sum.md ├── backtracking ├── README.md ├── combination.md ├── permutation.md └── subsets.md ├── bit_manipulation ├── README.md ├── missing_number.md ├── number_of_1_bits.md └── power_of_two.md ├── dynamic_programming ├── README.md ├── best_time_to_buy_and_sell_stock.md ├── climbing_stairs.md ├── maximum_subarray.md ├── perfect_squares.md ├── triangle.md ├── unique_binary_search_trees.md └── unique_paths.md ├── greedy ├── README.md ├── candy.md ├── gas_station.md ├── jump_game.md └── word_break.md ├── linked_list ├── README.md ├── add_two_numbers.md ├── copy_list_with_random_pointer.md ├── linked_list_cycle.md ├── merge_sorted_lists.md ├── partition_list.md ├── remove_duplicates_from_sorted_list.md ├── reorder_list.md ├── reverse_linked_list.md ├── rotate_list.md ├── sort_list.md └── swap_nodes_in_pairs.md ├── math ├── README.md └── reverse_integer.md ├── string ├── README.md ├── add_binary.md └── basic_calculator_2.md └── tree ├── README.md ├── balanced_binary_tree.md ├── binary_search_tree_iterator.md ├── binary_tree_depth_order_traversal.md ├── binary_tree_level_order_traversal.md ├── binary_tree_path.md ├── construct_binary_tree.md ├── convert_sorted_listarray_to_binary_search_tree.md ├── count_complete_tree_nodes.md ├── depth_of_binary_tree.md ├── flatten_binary_tree_to_linked_list.md ├── path_sum.md ├── path_sum_ii.md ├── populating_next_right_pointers_in_each_node.md ├── recover_binary_search_tree.md ├── same_tree.md ├── sum_root_to_leaf_numbers.md ├── symmetric_tree.md └── validate_binary_search_tree.md /.gitignore: -------------------------------------------------------------------------------- 1 | _book -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/README.md -------------------------------------------------------------------------------- /SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/SUMMARY.md -------------------------------------------------------------------------------- /array/README.md: -------------------------------------------------------------------------------- 1 | # Array 2 | -------------------------------------------------------------------------------- /array/find_minimum_in_rotated_sorted_array.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/find_minimum_in_rotated_sorted_array.md -------------------------------------------------------------------------------- /array/find_peak_element.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/find_peak_element.md -------------------------------------------------------------------------------- /array/largest_rectangle_in_histogram.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/largest_rectangle_in_histogram.md -------------------------------------------------------------------------------- /array/maximal_rectangle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/maximal_rectangle.md -------------------------------------------------------------------------------- /array/merge_sorted_array.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/merge_sorted_array.md -------------------------------------------------------------------------------- /array/palindrome_number.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/palindrome_number.md -------------------------------------------------------------------------------- /array/pascals_triangle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/pascals_triangle.md -------------------------------------------------------------------------------- /array/plus_one.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/plus_one.md -------------------------------------------------------------------------------- /array/remove_duplicates_from_sorted_array.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/remove_duplicates_from_sorted_array.md -------------------------------------------------------------------------------- /array/remove_element.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/remove_element.md -------------------------------------------------------------------------------- /array/search_a_2d_matrix.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/search_a_2d_matrix.md -------------------------------------------------------------------------------- /array/search_for_a_range.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/search_for_a_range.md -------------------------------------------------------------------------------- /array/search_insert_position.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/search_insert_position.md -------------------------------------------------------------------------------- /array/sum.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/array/sum.md -------------------------------------------------------------------------------- /backtracking/README.md: -------------------------------------------------------------------------------- 1 | # Backtracking 2 | -------------------------------------------------------------------------------- /backtracking/combination.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/backtracking/combination.md -------------------------------------------------------------------------------- /backtracking/permutation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/backtracking/permutation.md -------------------------------------------------------------------------------- /backtracking/subsets.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/backtracking/subsets.md -------------------------------------------------------------------------------- /bit_manipulation/README.md: -------------------------------------------------------------------------------- 1 | # Bit Manipulation 2 | -------------------------------------------------------------------------------- /bit_manipulation/missing_number.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/bit_manipulation/missing_number.md -------------------------------------------------------------------------------- /bit_manipulation/number_of_1_bits.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/bit_manipulation/number_of_1_bits.md -------------------------------------------------------------------------------- /bit_manipulation/power_of_two.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/bit_manipulation/power_of_two.md -------------------------------------------------------------------------------- /dynamic_programming/README.md: -------------------------------------------------------------------------------- 1 | # Dynamic Programming 2 | -------------------------------------------------------------------------------- /dynamic_programming/best_time_to_buy_and_sell_stock.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/best_time_to_buy_and_sell_stock.md -------------------------------------------------------------------------------- /dynamic_programming/climbing_stairs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/climbing_stairs.md -------------------------------------------------------------------------------- /dynamic_programming/maximum_subarray.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/maximum_subarray.md -------------------------------------------------------------------------------- /dynamic_programming/perfect_squares.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/perfect_squares.md -------------------------------------------------------------------------------- /dynamic_programming/triangle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/triangle.md -------------------------------------------------------------------------------- /dynamic_programming/unique_binary_search_trees.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/unique_binary_search_trees.md -------------------------------------------------------------------------------- /dynamic_programming/unique_paths.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/dynamic_programming/unique_paths.md -------------------------------------------------------------------------------- /greedy/README.md: -------------------------------------------------------------------------------- 1 | # Greedy 2 | -------------------------------------------------------------------------------- /greedy/candy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/greedy/candy.md -------------------------------------------------------------------------------- /greedy/gas_station.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/greedy/gas_station.md -------------------------------------------------------------------------------- /greedy/jump_game.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/greedy/jump_game.md -------------------------------------------------------------------------------- /greedy/word_break.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/greedy/word_break.md -------------------------------------------------------------------------------- /linked_list/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/README.md -------------------------------------------------------------------------------- /linked_list/add_two_numbers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/add_two_numbers.md -------------------------------------------------------------------------------- /linked_list/copy_list_with_random_pointer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/copy_list_with_random_pointer.md -------------------------------------------------------------------------------- /linked_list/linked_list_cycle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/linked_list_cycle.md -------------------------------------------------------------------------------- /linked_list/merge_sorted_lists.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/merge_sorted_lists.md -------------------------------------------------------------------------------- /linked_list/partition_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/partition_list.md -------------------------------------------------------------------------------- /linked_list/remove_duplicates_from_sorted_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/remove_duplicates_from_sorted_list.md -------------------------------------------------------------------------------- /linked_list/reorder_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/reorder_list.md -------------------------------------------------------------------------------- /linked_list/reverse_linked_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/reverse_linked_list.md -------------------------------------------------------------------------------- /linked_list/rotate_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/rotate_list.md -------------------------------------------------------------------------------- /linked_list/sort_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/sort_list.md -------------------------------------------------------------------------------- /linked_list/swap_nodes_in_pairs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/linked_list/swap_nodes_in_pairs.md -------------------------------------------------------------------------------- /math/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/math/README.md -------------------------------------------------------------------------------- /math/reverse_integer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/math/reverse_integer.md -------------------------------------------------------------------------------- /string/README.md: -------------------------------------------------------------------------------- 1 | # String 2 | > 在这一章,我们将会覆盖leetcode上跟string有关联的题目. 3 | -------------------------------------------------------------------------------- /string/add_binary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/string/add_binary.md -------------------------------------------------------------------------------- /string/basic_calculator_2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/string/basic_calculator_2.md -------------------------------------------------------------------------------- /tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/README.md -------------------------------------------------------------------------------- /tree/balanced_binary_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/balanced_binary_tree.md -------------------------------------------------------------------------------- /tree/binary_search_tree_iterator.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/binary_search_tree_iterator.md -------------------------------------------------------------------------------- /tree/binary_tree_depth_order_traversal.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/binary_tree_depth_order_traversal.md -------------------------------------------------------------------------------- /tree/binary_tree_level_order_traversal.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/binary_tree_level_order_traversal.md -------------------------------------------------------------------------------- /tree/binary_tree_path.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/binary_tree_path.md -------------------------------------------------------------------------------- /tree/construct_binary_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/construct_binary_tree.md -------------------------------------------------------------------------------- /tree/convert_sorted_listarray_to_binary_search_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/convert_sorted_listarray_to_binary_search_tree.md -------------------------------------------------------------------------------- /tree/count_complete_tree_nodes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/count_complete_tree_nodes.md -------------------------------------------------------------------------------- /tree/depth_of_binary_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/depth_of_binary_tree.md -------------------------------------------------------------------------------- /tree/flatten_binary_tree_to_linked_list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/flatten_binary_tree_to_linked_list.md -------------------------------------------------------------------------------- /tree/path_sum.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/path_sum.md -------------------------------------------------------------------------------- /tree/path_sum_ii.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/path_sum_ii.md -------------------------------------------------------------------------------- /tree/populating_next_right_pointers_in_each_node.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/populating_next_right_pointers_in_each_node.md -------------------------------------------------------------------------------- /tree/recover_binary_search_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/recover_binary_search_tree.md -------------------------------------------------------------------------------- /tree/same_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/same_tree.md -------------------------------------------------------------------------------- /tree/sum_root_to_leaf_numbers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/sum_root_to_leaf_numbers.md -------------------------------------------------------------------------------- /tree/symmetric_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/symmetric_tree.md -------------------------------------------------------------------------------- /tree/validate_binary_search_tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/leetcode-solution/HEAD/tree/validate_binary_search_tree.md --------------------------------------------------------------------------------