LeetCode problems I finished in 2018
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
100_Same_Tree.cpp
101_Symmetric_Tree.cpp
102_Binary_Tree_Level_Order_Traversal.cpp
103_Binary_Tree_Zigzag_Level_Order_Traversal.cpp
104_Maximum_Depth_of_Binary_Tree.cpp
105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.cpp
106_Construct_Binary_Tree_from_Inorder_and_Postorder_traversal.cpp
107_Binary_Tree_Level_Order_Traversal II.cpp
108_Convert_Sorted_Array_to_Binary_Search_Tree.cpp
109_Convert_Sorted_List_to_Binary_Search_Tree.cpp
110_Balanced_Binary_Tree.cpp
111_Minimum_Depth_of_Binary_Tree.cpp
112_Path_Sum.cpp
113_Path_Sum_II.cpp
114_Flatten_Binary_Tree_to_Linked_List.cpp
116_Populating_Next_Right_Pointers_in_Each_Node.cpp
117_Populating_Next_Right_Pointers_in_Each_Node_II.cpp
118_Pascals_Triangle.cpp
119_Pascal's_Triangle_II.cpp
11_Container_With_Most_Water.cpp
120_Triangle.cpp
121_Best_Time_to_Buy_and_Sell_Stock.cpp
122_Best_Time_to_Buy_and_Sell_Stock_II.cpp
123_Best_Time_to_Buy_and_Sell_Stock_III.cpp
124_Binary_Tree_Maximum_Path_Sum.cpp
125_Valid_Palindrome.cpp
128_Longest_Consecutive_Sequence.cpp
129_Sum_Root_to_Leaf_Numbers.cpp
130_Surrounded_Regions.cpp
131_Palindrome_Partitioning.cpp
133_Clone_Graph.cpp
136_Single_Number.cpp
137_Single_Number_II.cpp
138_Copy_List_with_Random_Pointer.cpp
139_Word_Break.cpp
140_Word_Break_II.cpp
141_Linked_List_Cycle.cpp
142_Linked_List_Cycle_II.cpp
143_Reorder_List.cpp
144_Binary_Tree_reorder_Traversal.cpp
145_Binary_Tree_Postorder_Traversal.cpp
147_Insertion_Sort_List.cpp
148_Sort_List.cpp
14_Longest_Common_Prefix.cpp
150_Evaluate_Reverse_Polish_Notation.cpp
151_Reverse_Words_in_a_String.cpp
152_Maximum_Product_Subarray.cpp
153_Find_Minimum_in_Rotated_Sorted_Array.cpp
154_Find_Minimum_in_Rotated_Sorted_Array_II.cpp
155_Min_Stack.cpp
15_3Sum.cpp
160_Intersection_of_Two_Linked_Lists.cpp
162_Find_Peak_Element.cpp
167_Two_Sum_II_Input_array_is_sorted.cpp
168_Excel_Sheet_Column_Title.cpp
169_Majority_Element.cpp
16_3Sum_Closest.cpp
171_Excel_Sheet_Column_Number.cpp
172_Factorial_Trailing_Zeroes.cpp
173_Binary_Search_Tree_Iterator.cpp
175_Combine_Two_Tables.sql
179_Largest_Number.cpp
17_Letter_Combinations_of_a_Phone_Number.cpp
188_Best_Time_to_Buy_and_Sell_Stock_IV.cpp
189_Rotate_Array.cpp
198_House_Robber.cpp
199_Binary_Tree_Right_Side_View.cpp
19_Remove_Nth_Node_From_End_of_List.cpp
200_Number_of_Islands.cpp
201_Bitwise_AND_of_Numbers_Range.cpp
202_Happy_Number.cpp
203_Remove_Linked_List_Elements.cpp
204_Count_Primes.cpp
206_Reverse_Linked_List.cpp
207_Course_Schedule.cpp
209_Minimum_Size_Subarray_Sum.cpp
20_Valid_Parentheses.cpp
210_Course_Schedule_II.cpp
213_House_Robber_II.cpp
215_Kth_Largest_Element_in_an_Array.cpp
216_Combination_Sum_III.cpp
217_Contains_Duplicate.cpp
219_Contains_Duplicate_II.cpp
21_Merge_Two_Sorted_Lists.cpp
221_Maximal_Square.cpp
222_Count_Complete_Tree_Nodes.cpp
223_Rectangle_Area.cpp
225_Implement_Stack_using_Queues.cpp
226_Invert_Binary_Tree.cpp
227_Basic_Calculator_II.cpp
228_Summary_Ranges.cpp
229_Majority_Element_II.cpp
22_Generate_Parentheses.cpp
230_Kth_Smallest_Element_in_a_BST.cpp
231_Power_of_Two.cpp
232_Implement_Queue_using_Stacks.cpp
233_Number_of_Digit_One.cpp
234_Palindrome_Linked_List.cpp
236_Lowest_Common_Ancestor_of_a_Binary_Tree.cpp
237_Delete_Node_in_a_Linked_List.cpp
238_Product_of_Array_Except_Self.cpp
239_Sliding_Window_Maximum.cpp
23_Merge_k_Sorted_Lists.cpp
240_Search_a_2D_Matrix_II.cpp
242_Valid_Anagram.cpp
24_Swap_Nodes_in_Pairs.cpp
257_Binary_Tree_Paths.cpp
25_Reverse_Nodes_in_k-Group.cpp
260_Single_Number_III.cpp
263_Ugly_Number.cpp
264_Ugly_Number_II.cpp
268_Missing_Number.cpp
26_Remove_Duplicates_from_Sorted_Array.cpp
279_Perfect_Squares.cpp
27_Remove_Element.cpp
283_Move_Zeroes.cpp
287_Find_the_Duplicate_Number.cpp
28_Implement_strStr.cpp
297_Serialize_and_Deserialize_Binary_Tree.cpp
29_Divide_Two_Integers.cpp
2_Add_Two_Numbers.cpp
300_Longest_Increasing_Subsequence.cpp
310_Minimum_Height_Trees.cpp
313_Super_Ugly_Number.cpp
318_Maximum_Product_of_Word_Lengths.cpp
31_Next_Permutation.cpp
322_Coin_Change.cpp
326_Power_of_Three.cpp
328_Odd_Even_Linked_List.cpp
329_Longest_Increasing_Path_in_a_Matrix.cpp
32_Longest_Valid_Parentheses.cpp
334_Increasing_Triplet_Subsequence.cpp
337_House_Robber_III.cpp
338_Counting_Bits.cpp
33_Search_in_Rotated_Sorted_Array.cpp
341_Flatten_Nested_List_Iterator.cpp
342_Power_of_Four.cpp
343_Integer_Break.cpp
344_Reverse_String.cpp
347_Top_K_Frequent_Elements.cpp
349_Intersection_of_Two_Arrays.cpp
34_Search_for_a_Range.cpp
350_Intersection_of_Two_Arrays_II.cpp
357_Count_Numbers_with_Unique_Digits.cpp
35_Search_Insert_Position.cpp
36_Valid_Sudoku.cpp
372_Super_Pow.cpp
375_Guess_Number_Higher_or_Lower_II.cpp
376_Wiggle_Subsequence.cpp
377_Combination_Sum_IV.cpp
378_Kth_Smallest_Element_in_a_Sorted_Matrix.cpp
387_First_Unique_Character_in_a_String.cpp
394_Decode_String.cpp
397_Integer_Replacement.cpp
39_Combination_Sum.cpp
3_Longest_Substring_Without_Repeating_Characters.cpp
406_Queue_Reconstruction_by_Height.cpp
40_Combination_Sum_II.cpp
412_Fizz_Buzz.cpp
413_Arithmetic_Slices.cpp
414_Third_Maximum_Number.cpp
41_First_Missing_Positive.cpp
442_Find_All_Duplicates_in_an_Array.cpp
448_Find_All_Numbers_Disappeared_in_an_Array.cpp
451_Sort_Characters_By_Frequency.cpp
454_4Sum_II.cpp
461_Hamming_Distance.cpp
46_Permutations.cpp
47_Permutations_II.cpp
48_Rotate_Image.cpp
494_Target_Sum.cpp
49_Group_Anagrams.cpp
501_Find_Mode_in_Binary_Search_Tree.cpp
508_Most_Frequent_Subtree_Sum.cpp
50_Pow_x_n.cpp
513_Find_Bottom_Left_Tree_Value.cpp
515_Find_Largest_Value_in_Each_Tree_Row.cpp
516_Longest_Palindromic_Subsequence.cpp
51_N-Queens.cpp
52_N-Queens_II.cpp
537_Complex_Number_Multiplication.cpp
538_Convert_BST_to_Greater_Tree.cpp
53_Maximum_Subarray.cpp
543_Diameter_of_Binary_Tree.cpp
54_Spiral_Matrix.cpp
55_Jump_Game.cpp
567_Permutation_in_String.cpp
56_Merge_Intervals.cpp
581_Shortest_Unsorted_Continuous_Subarray.cpp
583_Delete_Operation_for_Two_Strings.cpp
58_Length_of_Last_Word.cpp
59_Spiral_Matrix_II.cpp
5_Longest_Palindromic_Substring.cpp
60_Permutation_Sequence.cpp
611_Valid_Triangle_Number.cpp
617_Merge_Two_Binary_Trees.cpp
61_Rotate_List.cpp
62_Unique_Paths.cpp
63_Unique_Paths_II.cpp
647_Palindromic_Substrings.cpp
64_Minimum_Path_Sum.cpp
654_Maximum_Binary_Tree.cpp
655_Print_Binary_Tree.cpp
662_Maximum_Width_of_Binary_Tree.cpp
665_Non-decreasing_Array.cpp
669_Trim_a_Binary_Search_Tree.cpp
671_Second_Minimum_Node_In_a_Binary_Tree.cpp
678_Valid_Parenthesis_String.cpp
684_Redundant_Connection.cpp
69_Sqrt_x.cpp
6_ZigZag_Conversion.cpp
70_Climbing_Stairs.cpp
725_Split_Linked_List_in_Parts.cpp
73_Set_Matrix_Zeroes.cpp
743_Network_Delay_Time.cpp
74_Search_a_2D_Matrix.cpp
754_Reach_a_Number.cpp
75_Sort_Colors.cpp
763_Partition_Labels.cpp
76_Minimum_Window_Substring.cpp
77_Combinations.cpp
781_Rabbits_in_Forest.cpp
78_Subsets.cpp
79_Word_Search.cpp
7_Reverse_Integer.cpp
80_Remove_Duplicates_from_Sorted_Array_II.cpp
82_Remove_Duplicates_from_Sorted_List_II.cpp
83_Remove_Duplicates_from_Sorted_List.cpp
84_Largest_Rectangle_in_Histogram.cpp
85_Maximal_Rectangle.cpp
86_Partition_List.cpp
88_Merge_Sorted_Array.cpp
89_Gray_Code.cpp
90_Subsets_II.cpp
91_Decode_Ways.cpp
92_Reverse_Linked_List_II.cpp
93_Restore_IP_Addresses.cpp
94_Binary_Tree_Inorder_Traversal.cpp
95_Unique_Binary_Search_Trees_II.cpp
96_Unique_Binary_Search_Trees.cpp
98_Validate_Binary_Search_Tree.cpp
9_Palindrome_Number.cpp
README.md

README.md

LeetCode 2018

LeetCode problems I finished in 2018. Mainly prepare for 2018 Summer Intern Interview.