摘要: Given an unsorted array, find the largest pair sum. Solution 1. O(n*logn) runtime, using sorting Solution 2. O(n) runtime, using heapify (max priority 阅读全文
posted @ 2017-07-22 05:17 Review->Improve 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Given a string, reverse it without using any temporary variables. This problem is a variation of the problem swapping two integers without using any t 阅读全文
posted @ 2017-07-22 01:03 Review->Improve 阅读(154) 评论(0) 推荐(0) 编辑