Skip to content

debuginn/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Algorithm

problems: https://leetcode.cn/problemset/algorithms/

problems difficulty code test code tag
0001 两数之和 easy 0001_twoSum.go test.go violence, hash table
0002 两数相加 medium 0002_addTwoNumbers.go test.go linked list
0003 无重复字符的最长子串 medium 0003_lengthOfLongestSubstring.go test.go string
0004 寻找两个正序数组的中位数 hard 0004_findMedianSortedArrays.go test.go arrays
0005 最长回文子串 medium 0005_longestPalindrome.go test.go dp
0006 V字形变换 vConvert medium 0006_vConvert.go test.go string
0007 整数反转 medium 0007_reverse.go test.go -
0008 字符串转换整数 (atoi) medium 0008_myAtoi.go test.go -
0009 回文数 medium 0009_isPalindrome.go test.go -
0010 正则表达式匹配 hard 0010_isMatch.go test.go dp
0011 盛最多水的容器 medium 0011_maxArea.go test.go double pointer
0012 整数转罗马数字 medium 0012_intToRoman.go test.go hash table
0013 罗马数字转整数 medium 0013_romanToInt.go test.go hash table
0014 最长公共前缀 easy 0014_longestCommonPrefix.go test.go -
0015 三数之和 medium 0015_threeSum.go test.go double pointer
0016 最接近的三数之和 medium 0016_threeSumClosest.go test.go double pointer
0017 电话号码的字母组合 medium 0017_letterCombinations.go test.go backtracking
0018 四数之和 medium 0018_fourSum.go test.go double pointer
0019 删除链表的倒数第 N 个结点 medium 0019_removeNthFromEnd.go test.go fast and slow pointer
0020 有效的括号 easy 0020_isValid.go test.go stack
0021 合并两个有序链表 easy 0021_mergeTwoLists.go test.go Iterative
0022 括号生成 medium 0022_generateParenthesis.go test.go backtracking algorithm

gopher

About

leetcode algorithm/sql/shell code

Topics

Resources

Stars

Watchers

Forks

Contributors