摘要: Problem:Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another... 阅读全文
posted @ 2015-09-03 10:21 airforce 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Problem:Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is re... 阅读全文
posted @ 2015-09-03 09:36 airforce 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"Analysis:This pr... 阅读全文
posted @ 2015-09-03 03:50 airforce 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Problem:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are ... 阅读全文
posted @ 2015-09-03 01:34 airforce 阅读(157) 评论(0) 推荐(0) 编辑