the one that I like to see how it works graphically is this one
public boolean splitArray(int[] nums) {
int index = 0;
int sum1 = 0;
int sum2 = 0;
return recallArray(nums, index, sum1, sum2);
}
public boolean recallArray(int[] nums, int index, int sum1, int sum2){
if(index >= nums.length){
return sum1 == sum2;
}
int value = nums[index];
return recallArray(nums,index + 1, sum1 + value,sum2)
|| recallArray(nums,index + 1, sum1 ,sum2 + value);
}
I try to use Jgrasp , that have a good visual debugger , but it only show me how the variables changes through the recursion calls, it is possible to Jgrasp to do the tree of recursion or something similar?, how?