摘要:
[抄题]: Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not printe 阅读全文
posted @ 2018-03-12 21:48
苗妙苗
阅读(310)
评论(0)
推荐(0)
摘要:
[抄题]: Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, [暴力解法]: 时间分析: 空间分 阅读全文
posted @ 2018-03-12 20:31
苗妙苗
阅读(179)
评论(0)
推荐(0)
摘要:
[抄题]: Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a lis 阅读全文
posted @ 2018-03-12 10:58
苗妙苗
阅读(422)
评论(0)
推荐(0)
摘要:
[抄题]: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tre 阅读全文
posted @ 2018-03-12 09:21
苗妙苗
阅读(179)
评论(0)
推荐(0)