摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are+,-,*,/. Each operand may be an integer or another expre 阅读全文
posted @ 2017-07-16 21:52 王大咩的图书馆 阅读(183) 评论(0) 推荐(1) 编辑
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. 阅读全文
posted @ 2017-07-16 20:19 王大咩的图书馆 阅读(171) 评论(0) 推荐(1) 编辑
摘要: Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring. For"(()", the longes 阅读全文
posted @ 2017-07-16 16:12 王大咩的图书馆 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid. The brackets must close in the correct 阅读全文
posted @ 2017-07-16 10:36 王大咩的图书馆 阅读(259) 评论(0) 推荐(0) 编辑