package leetcode;

/**
 * https://leetcode.com/problems/heaters/
 */
public class Problem475 {
    public int findRadius(int[] houses, int[] heaters) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem475 prob = new Problem475();
        System.out.println(prob.findRadius(new int[]{1, 2, 3}, new int[]{2})); // 1
        System.out.println(prob.findRadius(new int[]{1, 2, 3, 4}, new int[]{1, 4})); // 1
    }
}

@@ -445,20 +445,461 @@
  4%7D)); // 1%0A
+        System.out.println(prob.findRadius(new int%5B%5D%7B1, 2, 3, 4%7D, new int%5B%5D%7B1, 2%7D)); // 2%0A        System.out.println(prob.findRadius(new int%5B%5D%7B1, 2, 3, 4%7D, new int%5B%5D%7B1, 2%7D)); // 1%0A        System.out.println(prob.findRadius(new int%5B%5D%7B1, 2, 3%7D, new int%5B%5D%7B1%7D)); // 2%0A        System.out.println(prob.findRadius(new int%5B%5D%7B1, 2, 3, 4, 5, 6%7D, new int%5B%5D%7B3%7D)); // 3%0A        System.out.println(prob.findRadius(new int%5B%5D%7B1, 2, 6%7D, new int%5B%5D%7B1%7D)); // 5%0A
     %7D%0A%7D%0A

Update problem 475