LeetCode in pure C
Switch branches/tags
Nothing to show
Clone or download
begeekmyfriend Improvement
Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
Latest commit a147a57 Feb 12, 2018
Permalink
Failed to load latest commit information.
001_two_sum Improve Jan 2, 2018
002_add_two_numbers Number of island Dec 15, 2017
003_longest_substring_without_repeat Improve Jan 2, 2018
004_median_of_two_sorted_array Improve Jan 2, 2018
005_longest_palindromic_substring Improvement Feb 12, 2018
006_zigzag_conversion Improvement Feb 12, 2018
007_reverse_integer Reverse integer Aug 24, 2017
008_atoi Improvement Feb 12, 2018
009_palindrome_number Improvement Feb 12, 2018
010_regular_expression_matching Improvement Feb 12, 2018
011_container_with_most_water Water container Nov 4, 2017
012_roman_numeral Improvement Feb 12, 2018
013_roman_to_integer Improvement Feb 12, 2018
014_longest_common_prefix Improvement Feb 12, 2018
015_three_sum Improve Jan 2, 2018
016_three_sum_closest Improve Jan 2, 2018
017_letter_combinations_of_a_phone_number Improvement Feb 12, 2018
018_four_sum Improve Jan 2, 2018
019_remove_nth_node_from_end_of_list Improve Jan 2, 2018
020_valid_parentheses Valid parentheses Aug 2, 2017
021_merge_two_sorted_lists Merge two sorted lists Aug 16, 2017
022_generate_paratheses Improve Jan 2, 2018
023_merge_k_sorted_lists Improve Jan 2, 2018
024_swap_nodes_in_pairs Improve Jan 2, 2018
025_reverse_nodes_in_k_group Improve Jan 2, 2018
026_remove_duplicates_from_sorted_array Remove duplicates from sorted array Oct 1, 2017
027_remove_element Remov element Oct 3, 2017
028_implement_strstr Improve Jan 2, 2018
029_divide_two_integers Improvement Feb 12, 2018
030_substring_with_concatenation_of_all_words Improve Jan 2, 2018
031_next_permutation Improve Jan 2, 2018
032_longest_valid_parentheses Improve Jan 2, 2018
033_search_in_rotated_sorted_array Improve Jan 2, 2018
034_search_for_a_range Improvement Feb 12, 2018
035_search_insert_position Improvement Feb 12, 2018
036_valid_sudoku Improvement Feb 12, 2018
037_sudoku_solver Update Aug 18, 2017
038_count_and_say Count and say Oct 2, 2017
039_combination_sum Combination sum Jan 6, 2018
040_combination_sum_ii Combination sum Jan 6, 2018
041_first_missing_positive Improvement Feb 12, 2018
042_trapping_rain_water Improvement Feb 12, 2018
043_multiply_strings Improve Jan 2, 2018
044_wildcard_matching Wildcard matching Aug 29, 2017
045_jump_game_ii Improve Jan 2, 2018
046_permutations Improve Jan 2, 2018
047_permutations_ii Improve Jan 2, 2018
048_rotate_image Improvement Feb 12, 2018
049_group_anagrams Improve Jan 2, 2018
050_pow Improve Jan 2, 2018
051_n_queens N-Queen Jul 12, 2017
052_n_queens_ii Improve Jan 5, 2018
053_maximum_subarray Improve Jan 3, 2018
054_spiral_matrix Improve Jan 3, 2018
055_jump_game Improve Jan 3, 2018
056_merge_intervals Merge intervals Aug 4, 2017
057_insert_interval Merge intervals Aug 4, 2017
058_length_of_last_word Length of last word Oct 9, 2017
059_spiral_matrix_ii Spiral matrix Aug 31, 2017
060_permutation_sequence Improve Jan 3, 2018
061_rotate_list Rotate list Aug 4, 2017
062_unique_path Improve Jan 3, 2018
063_unique_paths_ii Unique path Aug 7, 2017
064_minumum_path_sum Improve Jan 3, 2018
065_valid_number Improve Jan 3, 2018
066_plus_one Binary calculation Oct 24, 2017
067_add_binary Binary calculation Oct 24, 2017
068_text_justification Text justification Aug 11, 2017
069_sqrt sqrt Oct 4, 2017
070_climbing_stairs Improve Jan 4, 2018
071_simplify_path Improve Jan 3, 2018
072_edit_distance Improve Jan 3, 2018
073_set_matrix_zeroes Improve Jan 3, 2018
074_search_a_2d_matrix Search a 2D matrix Sep 11, 2017
075_sort_colors Improve Jan 3, 2018
076_minimum_window_substring Update Aug 18, 2017
077_combinations Improve Jan 3, 2018
078_subsets Improve Jan 3, 2018
079_word_search Word Search Jan 7, 2018
080_remove_duplicates_from_sorted_array_ii Improve Jan 3, 2018
081_search_in_rotated_sorted_array_ii Improve Jan 3, 2018
082_remove_duplicates_from_sorted_list_ii Remove duplicates from sorted list Sep 7, 2017
083_remove_duplicates_from_sorted_list Remove duplicates from sorted list Sep 7, 2017
084_largest_rectangle_in_histogram Improve Jan 3, 2018
085_maximal_rectangle Improve Jan 3, 2018
086_partition_list Improve Jan 3, 2018
087_scramble_string Improve Jan 4, 2018
088_merge_sorted_array Merge sorted array Aug 20, 2017
089_gray_code Gray code Aug 1, 2017
090_subsets_ii Improve Jan 3, 2018
091_decode_ways Improve Jan 3, 2018
092_reverse_linked_list_ii Reverse linked list Aug 22, 2017
093_restore_ip_addresses Improve Jan 3, 2018
094_binary_tree_inorder_traversal Improve Jan 3, 2018
095_unique_binary_search_trees_ii Improve Jan 3, 2018
096_unique_binary_search_trees Improve Jan 3, 2018
097_interleaving_string Improve Jan 3, 2018
098_validate_binary_search_tree Improve Jan 3, 2018
099_recover_binary_search_tree Improve Jan 3, 2018
100_same_tree Improve Jan 3, 2018
101_symmetric_tree Symmetric tree Oct 11, 2017
102_binary_tree_level_order_traversal Improvement Oct 20, 2017
103_binary_tree_zigzag_level_order_traversal bst level order traversal Oct 30, 2017
104_maximum_depth_of_binary_tree Depth of binary tree Oct 26, 2017
105_construct_binary_tree_from_preorder_and_inorder_traversal Improve Jan 4, 2018
106_construct_binary_tree_from_inorder_and_postorder_traversal Improve Jan 4, 2018
107_binary_tree_level_order_traversal_ii bst level order traversal Oct 30, 2017
108_convert_sorted_array_to_binary_search_tree Improve Jan 4, 2018
109_convert_sorted_list_to_binary_search_tree Improve Jan 4, 2018
110_balanced_binary_tree Balanced BST Nov 3, 2017
111_minimum_depth_of_binary_tree Depth of binary tree Oct 26, 2017
112_path_sum Path sum Oct 20, 2017
113_path_sum_ii Improve Jan 4, 2018
114_flatten_binary_tree_to_linked_list Improve Jan 4, 2018
115_distinct_subsequences Improve Jan 4, 2018
116_populating_next_right_pointers_in_each_node Improve Jan 4, 2018
117_populating_next_right_pointers_in_each_node_ii Populating next right pointers in each node Oct 22, 2017
118_pascal_triangle Pascal triangle Oct 25, 2017
119_pascal_triangle_ii Pascal triangle Oct 25, 2017
120_triangle Improve Jan 4, 2018
121_best_time_to_buy_and_sell_stock Best time to buy and sell stock Sep 19, 2017
122_best_time_to_buy_and_sell_stock_ii Best time to buy and sell stock Sep 19, 2017
123_best_time_to_buy_and_sell_stock_iii Best time to buy and sell stock Nov 9, 2017
124_binary_tree_maximum_path_sum Improve Jan 4, 2018
125_valid_palindrome Valid palindrome Nov 2, 2017
126_word_ladder_ii Improve Jan 4, 2018
127_word_ladder Improve Jan 4, 2018
128_longest_consecutive_sequence Improve Jan 4, 2018
129_sum_root_to_leaf_numbers Improve Jan 4, 2018
130_surrounded_regions Improve Jan 4, 2018
131_palindrome_patitioning Improve Jan 4, 2018
132_palindrome_patitioning_ii Palindrome partitioning Sep 30, 2017
133_clone_graph Improve Jan 5, 2018
134_gas_station Clone graph Oct 31, 2017
135_candy Improve Jan 4, 2018
136_single_number Single number Oct 12, 2017
137_single_number_ii Single number Oct 12, 2017
138_copy_list_with_random_pointer Copy list with random pointer Nov 10, 2017
139_word_break Improve Jan 4, 2018
140_word_break_ii Improve Jan 4, 2018
141_linked_list_cycle Linked list cycle Oct 27, 2017
142_linked_list_cycle_ii Linked list cycle Oct 27, 2017
143_reorder_list Improve Jan 4, 2018
144_binary_tree_preorder_traversal Improve Jan 4, 2018
145_binary_tree_postorder_traversal Improve Jan 4, 2018
146_lru_cache Improve Jan 4, 2018
147_insertion_sort_list Reorder and insert list Oct 29, 2017
148_sort_list Improve Jan 4, 2018
149_max_points_on_a_line Improve Jan 5, 2018
150_evaluate_reverse_polish_notation Evaluate reverse polish notation Nov 10, 2017
151_reverse_words_in_a_string Reverse words in a string Nov 15, 2017
152_maximum_product_subarray Maximum product subarray Nov 16, 2017
153_find_minimum_in_rotated_sorted_array Find minimum in rotated sorted array Nov 13, 2017
154_find_minimum_in_rotated_sorted_array_ii Find minimum in rotated sorted array Nov 13, 2017
155_min_stack Min stack Nov 11, 2017
160_intersection_of_two_linked_list Intersection of two linked lists Nov 19, 2017
162_find_peak_element Find peak element Nov 17, 2017
164_maximum_gap Improve Jan 4, 2018
165_compare_version_numbers Compare version number Nov 21, 2017
166_fraction_to_recurring_decimal Fraction to recurring decimal Nov 23, 2017
167_two_sum_ii Intersection of two linked lists Nov 19, 2017
168_excel_sheet_column_title Excel sheet column Nov 18, 2017
169_majority_element Improvement Dec 19, 2017
171_excel_sheet_column_number Excel sheet column Nov 18, 2017
172_factorial_trailing_zeros majority element Nov 20, 2017
173_binary_search_tree_iterator Binary search tree iterator Nov 22, 2017
174_dungeon_game Dungeon game Nov 24, 2017
179_largest_number Improve Jan 4, 2018
188_best_time_to_buy_and_sell_stock_iv Best time to buy and sell stock Nov 29, 2017
189_rotate_array Rotate array Nov 24, 2017
190_reverse_bits Number of one bits Nov 26, 2017
191_number_of_one_bits Number of one bits Nov 26, 2017
198_house_robber House robber Dec 19, 2017
199_binary_tree_right_side_view Binary tree right side view Nov 30, 2017
200_number_of_islands Improve Jan 4, 2018
201_bitwise_and_of_numbers_range Biswise AND number of range Dec 23, 2017
202_happy_number Improve Jan 6, 2018
203_remove_linked_list_element Improve Jan 6, 2018
204_count_primes Improve Jan 6, 2018
205_isomorphic_strings Improve Jan 7, 2018
206_reverse_linked_list Improve Jan 6, 2018
207_course_schedule Improve Jan 7, 2018
208_implement_trie Implement trie Nov 27, 2017
209_minimum_size_subarray_sum Minimum size subarrya sum Dec 26, 2017
210_course_schedule_ii Improve Jan 7, 2018
211_add_and_search_word Implement trie Nov 27, 2017
212_word_search_ii Word Search Jan 7, 2018
213_house_robber_ii House robber Dec 19, 2017
214_shortest_palindrome Improve Jan 4, 2018
215_kth_largest_element_in_an_array Kth largest element in an array Dec 27, 2017
216_combination_sum_iii Combination sum Jan 6, 2018
221_maximal_square Maximal Square Jan 11, 2018
224_basic_calculator Basic calculator Jan 9, 2018
226_invert_binary_tree Invert binary tree Jan 11, 2018
227_basic_calculator_ii Basic calculator Jan 9, 2018
229_majority_element_ii Majority elements Jan 7, 2018
230_kth_smallest_element_in_a_bst Kth bst Jan 8, 2018
235_lowest_common_ancestor_of_a_binary_search_tree Lowest common ancestor of a binary tree Jan 11, 2018
236_lowest_common_ancestor_of_a_binary_tree Lowest common ancestor of a binary tree Jan 11, 2018
239_sliding_window_maximum Improve Jan 7, 2018
.gitignore Initial commit Jun 15, 2015
LICENSE Initial commit Jun 15, 2015
README.md Initial commit Jun 15, 2015

README.md

leetcode

Let's fuck it up