摘要: Given an array with n distinct elements, convert the given array to a form where all elements are in range from 0 to n-1. The order of elements is sam 阅读全文
posted @ 2017-08-17 06:05 Review->Improve 阅读(364) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, this array is rotated by some unknown times. Find if there is a pair in this array that sums to a given value. Solution 1. O(n * 阅读全文
posted @ 2017-08-17 05:41 Review->Improve 阅读(335) 评论(0) 推荐(0) 编辑