2017年1月3日

LeetCode---Binary Search

摘要: 475. Heaters 思路:每趟循环查找离房子最近的热水器,计算距离,最后取最大距离 public int findRadius(int[] houses, int[] heaters) { Arrays.sort(houses); Arrays.sort(heaters); int j = 0 阅读全文

posted @ 2017-01-03 11:22 LeonNew 阅读(160) 评论(0) 推荐(0)

导航