{"id":26885207,"url":"https://github.com/debuginn/leetcode","last_synced_at":"2025-06-26T01:02:26.810Z","repository":{"id":132498958,"uuid":"200467860","full_name":"debuginn/leetcode","owner":"debuginn","description":"leetcode algorithm/sql/shell code","archived":false,"fork":false,"pushed_at":"2023-11-19T11:20:10.000Z","size":1342,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T01:02:11.646Z","etag":null,"topics":["algorithm","golang"],"latest_commit_sha":null,"homepage":"https://blog.debuginn.cn/categories/algorithm/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debuginn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-04T08:23:50.000Z","updated_at":"2023-05-18T15:00:55.000Z","dependencies_parsed_at":"2023-11-19T12:36:10.256Z","dependency_job_id":null,"html_url":"https://github.com/debuginn/leetcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/debuginn/leetcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debuginn%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debuginn%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debuginn%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debuginn%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debuginn","download_url":"https://codeload.github.com/debuginn/leetcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debuginn%2Fleetcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978904,"owners_count":23239417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","golang"],"created_at":"2025-03-31T18:52:15.776Z","updated_at":"2025-06-26T01:02:25.306Z","avatar_url":"https://github.com/debuginn.png","language":"C++","readme":"## LeetCode Algorithm\n\nproblems: [https://leetcode.cn/problemset/algorithms/](https://leetcode.cn/problemset/algorithms/)\n\n|      | problems       | difficulty | code                                                                                    | test code                                                           | tag                    |\n|------|----------------|------------|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------|------------------------|\n| 0001 | 两数之和           | easy       | [0001_twoSum.go](./algorithm/golang/0001_twoSum.go)                                     | [test.go](./algorithm/golang/0001_twoSum_test.go)                   | violence, hash table   |\n| 0002 | 两数相加           | medium     | [0002_addTwoNumbers.go](./algorithm/golang/0002_addTwoNumbers.go)                       | [test.go](./algorithm/golang/0002_addTwoNumbers_test.go)            | linked list            |\n| 0003 | 无重复字符的最长子串     | medium     | [0003_lengthOfLongestSubstring.go](./algorithm/golang/0003_lengthOfLongestSubstring.go) | [test.go](./algorithm/golang/0003_lengthOfLongestSubstring_test.go) | string                 |\n| 0004 | 寻找两个正序数组的中位数   | hard       | [0004_findMedianSortedArrays.go](./algorithm/golang/0004_findMedianSortedArrays.go)     | [test.go](./algorithm/golang/0004_findMedianSortedArrays_test.go)   | arrays                 |\n| 0005 | 最长回文子串         | medium     | [0005_longestPalindrome.go](./algorithm/golang/0005_longestPalindrome.go)               | [test.go](./algorithm/golang/0005_longestPalindrome_test.go)        | dp                     |\n| 0006 | V字形变换 vConvert | medium     | [0006_vConvert.go](./algorithm/golang/0006_vConvert.go)                                 | [test.go](./algorithm/golang/0006_vConvert_test.go)                 | string                 |\n| 0007 | 整数反转           | medium     | [0007_reverse.go](./algorithm/golang/0007_reverse.go)                                   | [test.go](./algorithm/golang/0007_reverse_test.go)                  | -                      |\n| 0008 | 字符串转换整数 (atoi) | medium     | [0008_myAtoi.go](./algorithm/golang/0008_myAtoi.go)                                     | [test.go](./algorithm/golang/0008_myAtoi_test.go)                   | -                      |\n| 0009 | 回文数            | medium     | [0009_isPalindrome.go](./algorithm/golang/0009_isPalindrome.go)                         | [test.go](./algorithm/golang/0009_isPalindrome_test.go)             | -                      |\n| 0010 | 正则表达式匹配        | hard       | [0010_isMatch.go](./algorithm/golang/0010_isMatch.go)                                   | [test.go](./algorithm/golang/0010_isMatch_test.go)                  | dp                     |\n| 0011 | 盛最多水的容器        | medium     | [0011_maxArea.go](./algorithm/golang/0011_maxArea.go)                                   | [test.go](./algorithm/golang/0011_maxArea_test.go)                  | double pointer         |\n| 0012 | 整数转罗马数字        | medium     | [0012_intToRoman.go](./algorithm/golang/0012_intToRoman.go)                             | [test.go](./algorithm/golang/0012_intToRoman_test.go)               | hash table             |\n| 0013 | 罗马数字转整数        | medium     | [0013_romanToInt.go](./algorithm/golang/0013_romanToInt.go)                             | [test.go](./algorithm/golang/0013_romanToInt_test.go)               | hash table             |\n| 0014 | 最长公共前缀         | easy       | [0014_longestCommonPrefix.go](./algorithm/golang/0014_longestCommonPrefix.go)           | [test.go](./algorithm/golang/0014_longestCommonPrefix_test.go)      | -                      |\n| 0015 | 三数之和           | medium     | [0015_threeSum.go](./algorithm/golang/0015_threeSum.go)                                 | [test.go](./algorithm/golang/0015_threeSum_test.go)                 | double pointer         |\n| 0016 | 最接近的三数之和       | medium     | [0016_threeSumClosest.go](./algorithm/golang/0016_threeSumClosest.go)                   | [test.go](./algorithm/golang/0016_threeSumClosest_test.go)          | double pointer         |\n| 0017 | 电话号码的字母组合      | medium     | [0017_letterCombinations.go](./algorithm/golang/0017_letterCombinations.go)             | [test.go](./algorithm/golang/0017_letterCombinations_test.go)       | backtracking           |\n| 0018 | 四数之和           | medium     | [0018_fourSum.go](./algorithm/golang/0018_fourSum.go)                                   | [test.go](./algorithm/golang/0018_fourSum_test.go)                  | double pointer         |\n| 0019 | 删除链表的倒数第 N 个结点 | medium     | [0019_removeNthFromEnd.go](./algorithm/golang/0019_removeNthFromEnd.go)                 | [test.go](./algorithm/golang/0019_removeNthFromEnd_test.go)         | fast and slow pointer  |\n| 0020 | 有效的括号          | easy       | [0020_isValid.go](./algorithm/golang/0020_isValid.go)                                   | [test.go](./algorithm/golang/0020_isValid_test.go)                  | stack                  |\n| 0021 | 合并两个有序链表       | easy       | [0021_mergeTwoLists.go](./algorithm/golang/0021_mergeTwoLists.go)                       | [test.go](./algorithm/golang/0021_mergeTwoLists_test.go)            | Iterative              |\n| 0022 | 括号生成           | medium     | [0022_generateParenthesis.go](./algorithm/golang/0022_generateParenthesis.go)           | [test.go](./algorithm/golang/0022_generateParenthesis_test.go)      | backtracking algorithm |\n\n\n\n![gopher](./gophertop.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebuginn%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebuginn%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebuginn%2Fleetcode/lists"}