Skip to content

cyrusin/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

For Leetcode and other algorithm problems

File description

  1. 2_add_two_numbers.c: Add two numbers
  2. 3_solution.c: Longest Substring Without Repeating Characters
  3. space_urlencode.c: Change space to '%20' in O(n)
  4. ./two_dimension_binary_search.c: Binary search in two dimension sorted array
  5. ./6_zigzag.c: ZigZag Conversion
  6. ./7_reverse_integer.c: Reverse Integers
  7. ./string2int.c: String to Integer
  8. ./search_number_appeared_more_than_half.c: 找出数组中出现次数超过一半的数
  9. ./152_maximum_product_subarray.c: Maximum Product Subarray
  10. ./9_palindrome_number.c: 回文数, O(1)空间复杂度
  11. ./14_longest_common_prefix.c: Longest common prefix
  12. ./19_Remove_Nth_Node_From_End_of_List.c: Remove Nth Node From End of List
  13. ./20. Valid Parentheses: Valid Parentheses
  14. ./21_Merge_Two_Sorted_Lists.c: Merge two sorted lists
  15. ./24_Swap_Nodes_in_Pairs.c: Swap nodes in pairs
  16. ./26_Remove_Duplicates_from_Sorted_Array.c: Remove Duplicates from Sorted Array
  17. ./27_Remove_Element.c: Remove Element
  18. ./38_Count_and_Say.c: 38. Count and Say
  19. ./58_Length_of_Last_Word.c: 58. Length of Last Word
  20. ./66_Plus_One.c: 66. Plus one
  21. ./67_Add_Binary.c: 67. Add Binary
  22. ./70_Climbing_Stairs.c: 70. Climbing Stairs
  23. ./83_Remove_Duplicates_from_Sorted_List.c: 83. Remove Duplicates from Sorted List

Usage:

  1. Compile: gcc -c <file-name>.c -o a.out
  2. Run: ./a.out

About

Resolution of some algorithm problems in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy