File tree
118 files changed
+4349
-25
lines changed- cpp
- include
- sfo_03_find_duplicate_numbers_in_an_array_s1
- sfo_03_find_duplicate_numbers_in_an_array_s2
- sfo_04_find_a_number_in_2d_matrix_s1
- sfo_05_replace_spaces_s1
- sfo_06_print_a_linked_list_in_reverse_order_s1
- sfo_06_print_a_linked_list_in_reverse_order_s2
- sfo_07_reconstruct_binary_tree_s1
- sfo_09_implement_a_queue_using_two_stacks_s1
- sfo_10i_fibonacci_numbers_s1
- sfo_10ii_frog_jump_s1
- sfo_11_find_minimum_in_rotated_sorted_array_s1
- sfo_11_find_minimum_in_rotated_sorted_array_s2
- sfo_12_word_search_s1
- sfo_13_range_of_motion_of_a_robot_s1
- sfo_13_range_of_motion_of_a_robot_s2
- sfo_14i_cut_the_rope_i_s1
- sfo_14ii_cut_the_rope_ii_s1
- sfo_15_number_of_1_bits_s1
- sfo_15_number_of_1_bits_s2
- sfo_16_powers_of_integers_s1
- sfo_18_delete_a_node_from_a_linked_list_s1
- sfo_19_regular_expression_matching_s1
- sfo_19_regular_expression_matching_s2
- sfo_21_adjust_the_order_of_numbers_in_an_array_s1
- sfo_22_the_kth_node_from_the_end_of_a_linked_list_s1
- sfo_22_the_kth_node_from_the_end_of_a_linked_list_s2
- sfo_24_reverse_a_linked_list_s1
- sfo_24_reverse_a_linked_list_s2
- sfo_25_combine_two_sorted_linked_lists_s1
- sfo_26_substructure_of_a_binary_tree_s1
- sfo_27_mirror_of_a_binary_tree_s1
- sfo_27_mirror_of_a_binary_tree_s2
- sfo_28_symmetric_binary_tree_s1
- sfo_29_print_a_given_matrix_in_spiral_form_s1
- sfo_30_min_stack_s1
- sfo_31_validate_stack_sequences_s1
- sfo_32i_print_a_binary_tree_topbottom_i_s1
- sfo_32ii_print_a_binary_tree_topbottom_ii_s1
- sfo_32iii_print_a_binary_tree_topbottom_iii_s1
- sfo_32iii_print_a_binary_tree_topbottom_iii_s2
- sfo_33_postorder_traversal_of_a_binary_search_tree_s1
- sfo_33_postorder_traversal_of_a_binary_search_tree_s2
- sfo_34_all_xsum_paths_in_a_binary_tree_s1
- sfo_35_clone_a_linked_list_with_next_and_random_pointer_s1
- sfo_35_clone_a_linked_list_with_next_and_random_pointer_s2
- sfo_36_binary_search_tree_and_doubly_linked_list_s1
- sfo_37_serialize_and_deserialize_a_binary_tree_s1
- sfo_38_all_permutations_of_a_string_s1
- sfo_39_the_majority_element_in_an_array_s1
- sfo_39_the_majority_element_in_an_array_s2
- sfo_40_the_smallest_k_numbers_s1
- sfo_40_the_smallest_k_numbers_s2
- sfo_41_find_median_from_data_stream_s1
- sfo_42_largest_sum_contiguous_subarray_s1
- sfo_43_total_number_of_1_in_integers_from_1_to_n_s1
- sfo_44_nth_digit_s1
- sfo_45_arrange_an_array_into_the_smallest_number_s1
- sfo_45_arrange_an_array_into_the_smallest_number_s2
- sfo_46_translate_numbers_into_strings_s1
- sfo_46_translate_numbers_into_strings_s2
- sfo_46_translate_numbers_into_strings_s3
- sfo_47_the_maximum_value_of_gifts_s1
- sfo_47_the_maximum_value_of_gifts_s2
- sfo_48_the_longest_substring_without_repeated_characters_s1
- sfo_48_the_longest_substring_without_repeated_characters_s2
- sfo_48_the_longest_substring_without_repeated_characters_s3
- sfo_49_ugly_numbers_s1
- sfo_50_find_the_first_nonrepeating_character_in_a_string_s1
- sfo_50_find_the_first_nonrepeating_character_in_a_string_s2
- sfo_51_reversed_pairs_in_an_array_s1
- sfo_52_the_first_common_node_in_two_linked_lists_s1
- sfo_53i_find_a_number_in_a_sorted_array_s1
- sfo_53i_find_a_number_in_a_sorted_array_s2
- sfo_53ii_the_missing_number_from_0_to_n1_s1
- sfo_54_the_kth_largest_node_of_a_binary_search_tree_s1
- sfo_55i_depth_of_a_binary_tree_s1
- sfo_55i_depth_of_a_binary_tree_s2
- sfo_55ii_balanced_binary_tree_s1
- sfo_55ii_balanced_binary_tree_s2
- sfo_56i_single_number_i_s1
- sfo_56ii_single_number_ii_s1
- sfo_56ii_single_number_ii_s2
- sfo_57_two_numbers_with_sum_s_s1
- sfo_57ii_consecutive_numbers_with_sum_s_s1
- sfo_57ii_consecutive_numbers_with_sum_s_s2
- sfo_58ii_left_rotation_of_a_string_s1
- sfo_58ii_left_rotation_of_a_string_s2
- sfo_58ii_left_rotation_of_a_string_s3
- sfo_59ii_max_queue_s1
- sfo_60_probabilities_for_rolling_n_dices_s1
- sfo_61_straight_in_poker_s1
- sfo_61_straight_in_poker_s2
- sfo_62_josephus_problem_s1
- sfo_63_the_maximum_profit_of_stocks_s1
- sfo_64_solve_1_2___n_s1
- sfo_65_implement_addition_operation_without_arithmetic_operators_s1
- sfo_66_a_product_array_puzzle_s1
- sfo_67_convert_string_to_int_s1
- sfo_68i_the_nearest_common_ancestor_of_a_binary_search_tree_s1
- sfo_68i_the_nearest_common_ancestor_of_a_binary_search_tree_s2
- sfo_68i_the_nearest_common_ancestor_of_a_binary_search_tree_s3
- sfo_68ii_the_nearest_common_ancestor_of_a_binary_tree_s1
- sfo_68ii_the_nearest_common_ancestor_of_a_binary_tree_s2
- java
- include
- sfo_35_clone_a_linked_list_with_next_and_random_pointer_s1
- sfo_35_clone_a_linked_list_with_next_and_random_pointer_s2
- python
- include
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
118 files changed
+4349
-25
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
Lines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + |
Lines changed: 141 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + |
Lines changed: 63 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + |
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + |
Lines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + |
Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + |
Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + |
0 commit comments