Skip to content

The repository "Leetcode" : record the code for my leetcode journey.

Notifications You must be signed in to change notification settings

shelmin/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

The repository "Leetcode" : record the code for my leetcode journey.

-1.两数之和(twoSum)

-2.两个排序数组的中位数(findMedianSortedArrays)

<0的题未上传github/Leetcode

1.字符串转整数 (atoi)

2.最长公共前缀 (longestCommonPrefix)

3.三数之和(threeSum)

4.最接近的三数之和(threeSumClosest)

5.有效的括号(isValid)

6.删除排序数组中的重复项(removeDuplicates)

7.盛最多水的容器(maxArea)

8.最长回文子串(longestPalindrome)

9.字符串相乘(multiply)

10.反转字符串(reverseString)

11.反转字符串中的单词 III(reverseWords)

12.除自身以外数组的乘积(productExceptSelf)

13.存在重复元素(containsDuplicate)【快速排序】

14.螺旋矩阵Ⅰ(spiralOrder)

15.螺旋矩阵 Ⅱ(generateMatrix)

16.合并两个有序数组(merge)

17.反转链表(reverseList)

18.两数相加(addTwoNumbers)

19.合并两个有序链表(mergeTwoLists)

20.2的幂(isPowerOfTwo)

21.合并K个排序链表(mergeKLists)

22.旋转链表(rotateRight)

23.环形链表(hasCycle)

24.环形链表 II(detectCycle)

25.相交链表(getIntersectionNode)

26.删除链表中的节点(deleteNode)

27.整数反转(reverse)

28.回文数(isPalindrome)

29.只出现一次的数字(singleNumber)【位操作/异或】

30.求众数(majorityElement)【摩尔投票法】

31.爬楼梯(climb)【斐波那契数列】【动态规划】

32.最大子序和(maxSubArray)【动态规划】【分治】

33.买卖股票的最佳时机(maxProfit)

34.买卖股票的最佳时机 II(maxProfit)【贪心】

35.不同路径(uniquePaths)【递归】【动态规划】【组合】

About

The repository "Leetcode" : record the code for my leetcode journey.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages