simplify the life

2016年8月7日 #

如何装最多的水? — leetcode 11. Container With Most Water

摘要: 炎炎夏日,还是呆在空调房里切切题吧。 "Container With Most Water" ,题意其实有点噱头,简化下就是,给一个数组,恩,就叫 吧,从中任选两项 i 和 j(i 1); if (a[mid] = target) end = mid 1; else start = mid + 1; 阅读全文

posted @ 2016-08-07 13:42 lessfish 阅读(1931) 评论(1) 推荐(2) 编辑

导航