How to identify recursion base condition

Think of smallest valid input .

public int findTargetSumWays(int[] nums, int target){}

➝ smallest valid input is empty nums array and
➝ target is 0

--

--

No responses yet