摘要: 题目: 根据每日 列表,请重新生成一个列表,对应位置的输入是你需要再等待多久温度才会升高超过该日的天数。如果之后都不会升高,请在该位置用 来代替。 例如,给定一个列表 ,你的输出应该是 。 Given a list of daily temperatures , return a list such 阅读全文
posted @ 2019-08-10 10:42 爱写Bug 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题目: 使用栈实现队列的下列操作: push(x) 将一个元素放入队列的尾部。 pop() 从队列首部移除元素。 peek() 返回队列首部的元素。 empty() 返回队列是否为空。 Implement the following operations of a queue using stack 阅读全文
posted @ 2019-08-10 10:28 爱写Bug 阅读(102) 评论(0) 推荐(0) 编辑