新农上路
- 积分
- 99
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2017-10-13
- 最后登录
- 1970-1-1
|
第二十七天 1/29
1. LRU Cache (HashMap + Doubly LinkedList)
2. Max Points on a Line (HashMap<int, map<int, int>>用每两个点之间x, y值的ratio判断在不在一条直线上)
3. Evaluate Reverse Polish Notation
4. Maximum Product Subarray (maintain max & min)
5. Find Minimum in Rotated Sorted Array II (Binary Search 还是能做的)
6. Min Stack (push时候把第二小的也push了,这样pop最小时候直接就知道第二小是什么)
7. Read N Characters Given Read4
8. Read N Characters Given Read4 II - Call multiple times
9. Longest Substring with At Most Two Distinct Characters
|
|