public static void main(String args[]){
        AllAdjacentCombination adc = new AllAdjacentCombination();
        int input[] = {1,2,3,4,5};
        int result[] = new int[input.length];
        adc.combination(input,result,3,0,0);
    }
Generate all combination of size k and less of adjacent numbers
e.g 1,2,3,4 k = 2
1 2 3 4
12 3 4
1 23 4
1 2 3 34
12 34
@author tusroy
src/com/interview/recursion/AllAdjacentCombination.java