LeetCode 高频题

Fib
strstr
Reverse a linkedlist/integer/string
Matrix
-rotate matrix/rectangle
-move a matrix
-spiral matrix I II
Anagrams(find all unique/all non-unique) Hashtable





Two Pointers:
- 2/3/4 sums, 3 sum closet, combination sum
-Sort colors
-Remove duplicates from Array
-Remove duplicates from Sorted Array
-Remove duplicates from Linked List


Recursion:
-N-Queens I, II
-Generate Parentheses


Bit-Operation
-Single Number
-Single Number II
-O(1) check whether a number is power of 2




Big Date Google
-Add binary
-Add two numbers
-Multiply strings
-Plus one






边界条件 Linkedin 沟通
Pow(x,n) 
Sqrt(x)
Valid Number




Data Structure Java source code
HashMap/HashSet/Hashtable/LinkedHashMap, ArrayList, Comparator, Iterator


-Implement HashMap
-Implement peek() function for iterator
-LRU cache, implement LinkedHashMap
-Singleton






Stack & Queue
-Evaulate reverse polish notation
-Vlaid Parentheses
-Longest vaid parentheses
-Min stack
-Two stack implements a queue






Best Time to buy & sell stocks I, II, III
Maximum subarray
Trailing number of 0s
Linkedlist Cycle I, II


DP
Unique Path I, II  机器人走迷宫
数学方法
代码实现



如何做LeetCode?

1. Computer:完成题目,写 test cases
2. Paper:重做一遍
3. Computer: 优化代码风格、删除冗余代码
4. Paper: 默写







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值