摘要: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" click to show co 阅读全文
posted @ 2016-09-29 11:08 amazingzoe 阅读(112) 评论(0) 推荐(0)
摘要: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. Runtime: 59ms Runtime: 92ms 阅读全文
posted @ 2016-09-29 05:41 amazingzoe 阅读(94) 评论(0) 推荐(0)
摘要: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2016-09-29 04:05 amazingzoe 阅读(135) 评论(0) 推荐(0)