// Target sum subsets is a program to print all subsets of an array (given by user) such that sum of all elements in subset equal to a target sum given by user // Algorithm Type: Backtracking // Time Complexity: O(2^N) import java.io.*; import java.util.*; public class targetSumSubsets { public static void main(String[] args) throws Exception { Scanner scn = new Scanner(System.in); // input size of array int n = scn.nextInt(); // input elements of array int[] arr = new int[n]; for(int i=0; i