mardi 30 décembre 2014

return subsets of an Integer array in an array of arrays


Vote count:

-2




i want to return all the subsets of an array using recursion. I dont want to use any kind list or collections. I understand the logic, but i am not able to code it using simple arrays.


the method should look like



public static int[][] returnAllSubsets(int[] input, int beginIndex)


Please could you help me in coding this in Java?





asked 1 min ago







return subsets of an Integer array in an array of arrays

Aucun commentaire:

Enregistrer un commentaire