Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
It’s 2
The function counts the number of subsets coming from the `num` array , which sums up to the `target` value . Which would definitely be 2
Try again
For reals? 👀
yes yes yes
But there are two subsets [1, 2, 4] and [3, 4] whose elements sum up to 7 , so it’s 2
No , it’s 3 😌
{1, 2, 4}, {2, 5}, and {3, 4}.
You’re only missing one
I was that close
yeah 😅 ✨
Brilliant
CONTRIBUTE TO THIS THREAD