2 hi test cases pass ho rahe
Subset Sum easy
Hi,
you are considering only 2 elements. You should consider all 2^n subsets and check each subset sum to target.
You should consider subset not subarray.
2 hi test cases pass ho rahe
Hi,
you are considering only 2 elements. You should consider all 2^n subsets and check each subset sum to target.
You should consider subset not subarray.