摘要: Question:https://leetcode.com/submissions/detail/49732268/题目:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5... 阅读全文
posted @ 2016-01-05 09:19 一切不期而至 阅读(169) 评论(0) 推荐(0) 编辑
摘要: StackOverflow 中的相关讨论 :http://stackoverflow.com/questions/8621762/java-if-vs-try-catch-overheadYou really should not usetry/catchandifinterchangeably.t... 阅读全文
posted @ 2016-01-04 20:22 一切不期而至 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目:Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another expr... 阅读全文
posted @ 2016-01-04 19:41 一切不期而至 阅读(194) 评论(0) 推荐(0) 编辑
摘要: From:https://leetcode.com/problems/edit-distance/题目:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (e... 阅读全文
posted @ 2016-01-04 19:10 一切不期而至 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Quesiton from:https://leetcode.com/problems/divide-two-integers/题目:Divide two integers without using multiplication, division and mod operator.If it i... 阅读全文
posted @ 2016-01-04 03:35 一切不期而至 阅读(193) 评论(0) 推荐(0) 编辑