摘要: The basic idea of is as follows:Maintain a dequeoperandsfor the numbers and another dequeoperationsfor the operators+, -, *,/`.Scan the expression fro... 阅读全文
posted @ 2015-06-22 23:27 jianchao-li 阅读(307) 评论(0) 推荐(0) 编辑
摘要: This problem can be solved elegantly using dynamic programming.We maintain two arrays:cnt[i][j] --- number of parentheses needed to add within s[i..j]... 阅读全文
posted @ 2015-06-22 17:58 jianchao-li 阅读(219) 评论(0) 推荐(0) 编辑