摘要:
这道题为简单题 题目: 思路: 利用栈,遍历列表ops,如果是数字就存入列表a,sum加上数字,如果是C,判断a是否还有数字,有就删除,如果是D,判断a是否还有数字,有就把num加上2倍a的最后一个数并将2倍之和的数添加到a中,如果是+,判断a是否还有两个数,有就将num加上那两个数,并将后面这两个 阅读全文
posted @ 2017-09-24 23:18
唐僧洗发爱飘柔
阅读(167)
评论(0)
推荐(0)
摘要:
这道题为中等题 题目: Given a time represented in the format "HH:MM", form the next closest time by reusing the current digits. There is no limit on how many ti 阅读全文
posted @ 2017-09-24 22:47
唐僧洗发爱飘柔
阅读(275)
评论(0)
推荐(0)