Day 19 – Recursion, Backtracking, and Math Logic
Jul 26, 2025 · 4 min read · 1. Subset Sum (Leetcode 78: Subsets) Problem: Return all possible subsets (the power set) of a given array of distinct integers. Intuition: At each index, we have two choices: include or exclude the current element. void solve(int i, vector<int>& num...
Join discussion