For Leetcode and other algorithm problems
2_add_two_numbers.c
: Add two numbers3_solution.c
: Longest Substring Without Repeating Charactersspace_urlencode.c
: Change space to '%20' in O(n)./two_dimension_binary_search.c
: Binary search in two dimension sorted array./6_zigzag.c
: ZigZag Conversion./7_reverse_integer.c
: Reverse Integers./string2int.c
: String to Integer./search_number_appeared_more_than_half.c
: 找出数组中出现次数超过一半的数./152_maximum_product_subarray.c
: Maximum Product Subarray./9_palindrome_number.c
: 回文数, O(1)空间复杂度./14_longest_common_prefix.c
: Longest common prefix./19_Remove_Nth_Node_From_End_of_List.c
: Remove Nth Node From End of List./20. Valid Parentheses
: Valid Parentheses./21_Merge_Two_Sorted_Lists.c
: Merge two sorted lists./24_Swap_Nodes_in_Pairs.c
: Swap nodes in pairs./26_Remove_Duplicates_from_Sorted_Array.c
: Remove Duplicates from Sorted Array./27_Remove_Element.c
: Remove Element./38_Count_and_Say.c
: 38. Count and Say./58_Length_of_Last_Word.c
: 58. Length of Last Word./66_Plus_One.c
: 66. Plus one./67_Add_Binary.c
: 67. Add Binary./70_Climbing_Stairs.c
: 70. Climbing Stairs./83_Remove_Duplicates_from_Sorted_List.c
: 83. Remove Duplicates from Sorted List
- Compile:
gcc -c <file-name>.c -o a.out
- Run:
./a.out