活跃农民
- 积分
- 310
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2018-10-21
- 最后登录
- 1970-1-1
|
9.21 打卡第10天
做题笔记:
386. Lexicographical Numbers:这道题考的是优化,如何用其他的方法代替sort(nlogn)实现lexicographical order。
449. Serialize and Deserialize BST:与297题的区别是:we can reconstruct BST by only using preorder(/postorder/levelorder) traversal. If we want to directly construct BT, we have to use "#" or "null".
76. Minimum Window Substring: 移动窗口法。记录窗口内的字符及数量。当满足条件时,缩小窗口直到不满足条件为止,并记录最小窗口长度(起始位置)。
|
|