摘要: Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or minus... 阅读全文
posted @ 2015-10-08 11:12 amazingzoe 阅读(158) 评论(0) 推荐(0)
摘要: Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1 temp2) return 1;18 if(temp1 < temp2) return -1;19 ... 阅读全文
posted @ 2015-10-08 10:02 amazingzoe 阅读(150) 评论(0) 推荐(0)
摘要: Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --... 阅读全文
posted @ 2015-10-08 09:02 amazingzoe 阅读(136) 评论(0) 推荐(0)