public static void main(String args[]) {
        int input[] = {1, 2, 3, 8};
        SmallestIntegerNotRepresentedBySubsetSum ss = new SmallestIntegerNotRepresentedBySubsetSum();
        System.out.println(ss.findSmallestInteger(input));

        int input1[] = {};
        System.out.println(ss.minPatches(input1, 7));
    }
Leetcode variation https://leetcode.com/problems/patching-array/
src/com/interview/array/SmallestIntegerNotRepresentedBySubsetSum.java