🏃🏃🏃 算法 🏃🏃🏃
实践&理论
![image](https://user-images.githubusercontent.com/12481194/64520438-c643de80-d328-11e9-84c2-598e604d0883.png)
Binary Search(二分查找)
easy
medium
- [ ] 33: search in sorted array
- [ ] 81: search in rotated sorted array ii
- [ ] 153: find minimum in rotated sorted array
- [ ] 162: find peak element
- [ ] 34: find first and last position of element in sorted array
- [ ] 300: longest increasing subsequence
hard
- [ ] 154: find minimum in rotated sorted array ii
- [ ] 315: count of smaller numbers after self
- [ ] 354: russian doll envelopes
Sort
- [ ] 冒泡排序
- [ ] 插入排序
- [ ] 选择排序
- [ ] 归并排序
- [ ] 桶排序
- [ ] 计数排序
- [ ] 基数排序
String
easy
- [ ] 28: Implement strStr()
Array
LinkedList
- [ ] 707: Design Linked List
- [ ] 206: Reverse Linked List
- [ ] 141: Linked List cycle
- [ ] 24: swap Nodes in Pairs
Queue
- [ ] 232: Implement Queue using stacks
Stack
- [ ] 20: valid parentheses
- [ ] 225: Implement Stack using Queue
跳表
Hash Table
Trie
medium
- [ ] 208: implement trie (prefix tree)
- [ ] 79: word search
hard
Tree
easy
- [x] 104: maximum depth of binary tree
- [ ] 111: minimum depth of binary tree
- [ ] 235: lowest common ancestor of a binary search tree
- [ ] 226: invert binary tree
- [ ] 112: path sum
medium
- [ ] 102: binary tree level order traversal
- [ ] 236: lowest common ancestor of a binary tree
- [ ] 98: validate binary search tree
- [ ] 863: all nodes distance k in binary tree
Heap
easy
- [ ] 703: Kth Largest Element in a Stream(求top-K)
hard
- [ ] 4: Median of Two Sorted Arrays(求中位数)
- [ ] 239: Sliding Window Maximum(返回滑动窗口的最大值)
- [ ] 215. Kth Largest Element in an Array
图
- [ ] 200: number of islands
- [ ] 36. Valid Sudoku
🍻🍻🍻 Daily-Question 🍻🍻🍻
LazyMan('Tony').sleep(10).eat('lunch');
// Hi I am Tony
// 等待了10秒...
// I am eating lunch
LazyMan('Tony').eat('lunch').sleep(10).eat('dinner);
// Hi I am Tony
// I am eating lunch
// 等待了10秒
// I am eating dinner
LazyMan('Tony).eat('lunch').eat('dinner').sleepFirst(5).sleep(10).eat('junk food')
// Hi I am Tony
// 等待了5秒
// I am eating lunch
// I am eating dinner
// 等待了10秒
// I am eating junk food
- [ ] 3: 介绍下`Set、Map、WeakSet、WeakMap`的区别
## 📚参考
+ [【前端面试】同学,你会手写代码吗?](https://juejin.im/post/5c9edb066fb9a05e267026dc#heading-13)
+ [自学转行前端3年经验,终入职阿里!](https://mp.weixin.qq.com/s/jXQVkyq3Nec6o2subyuyfw)
持续更新...