摘要: This problem is more or less the same asFind Minimum in Rotated Sorted Array. And one key difference is as stated in the solution tag. That is, due to... 阅读全文
posted @ 2015-07-19 17:57 jianchao-li 阅读(177) 评论(0) 推荐(0) 编辑
摘要: As explained in the Solution tag, the key to solving this problem is to use invariants. We set two pointers:lfor the left andrfor the right. One key i... 阅读全文
posted @ 2015-07-19 15:57 jianchao-li 阅读(319) 评论(0) 推荐(0) 编辑
摘要: For those who have already solvedSearch in Rotated Sorted Array, this problem can be solved similarly using codes for that problem and simply adding c... 阅读全文
posted @ 2015-07-19 14:17 jianchao-li 阅读(269) 评论(0) 推荐(0) 编辑