Skip to content

yangzheng93/leetcode-practise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Roadmap

Daily Practise For Leetcode

ID Title JS Code Keys
1 Two Sum JS
2 Add Two Numbers JS
3 Longest Substring Without Repeating Characters JS 哈希表, 双指针, 字符串, Sliding Window
4 Median of Two Sorted Arrays JS 中位数, 二分查找, 分治 (没看懂)
5 Longest Palindromic Substring JS 字符串, 动态规划
7 Reverse Integer JS
9 Palindrome Number JS
11 Container With Most Water JS 数组, 双指针
12 Integer to Roman JS 字符串
13 Roman to Integer JS 字符串
14 Longest Common Prefix JS 二分查找
15 3 Sum JS 数组, 双指针
20 Valid Parentheses JS
21 Merge Two Sorted Lists JS 递归
26 Remove Duplicates from Sorted Array JS 双指针
27 Remove Element JS 双指针
28 Implement strStr() JS 字符串,实现 indexOf
35 Search Insert Position JS 二分查找
42 Trapping Rain Water JS 栈, 双指针, 数组
46 Permutations JS 回溯算法
50 Pow(x, n) JS 二分查找
53 Maximum Subarray JS 分治法
58 Length of Last Word JS 字符串
69 Sqrt(x) JS 二分查找, 牛顿迭代法
74 Search a 2D Matrix JS 二分查找
80 Remove Duplicates from Sorted Array II JS 数组, 双指针
83 Remove Duplicates from Sorted List JS 链表
88 Merge Sorted Array JS 数组, 双指针
100 Same Tree JS 深度优先搜索,树
101 Symmetric Tree JS 树,深度优先搜索,广度优先搜索
118 Pascal's Triangle JS 数组
125 Valid Palindrome JS 双指针,字符串
136 Single Number JS 位运算,哈希表
153 Find Minimum in Rotated Sorted Array JS 二分查找
154 Find Minimum in Rotated Sorted Array II JS 二分查找
155 Min Stack JS
162 Find Peak Element JS 二分查找
167 Two Sum II - Input array is sorted JS 二分查找, 双指针
169 Majority Element JS 位运算, 数组, 分治算法
191 Number of 1 Bits JS 位运算
234 Palindrome Linked List JS 双指针
287 Find the Duplicate Number JS 数组, 双指针, 二分查找
344 Reverse String JS 字符串, 双指针
349 Intersection of Two Arrays JS 排序, 双指针,二分查找
520 Detect Capital JS
532 K-diff Pairs in an Array JS 双指针
946 Validate Stack Sequences JS
976 Largest Perimeter Triangle JS 数学, 排序
977 Squares of a Sorted Array JS 数组, 双指针
1021 Remove Outermost Parentheses JS
1047 Remove All Adjacent Duplicates In String JS

About

日常防痴呆计划: Leetcode Practises

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published