RRajesh Gurajala·Sep 27, 2025RecursionA function calls itself until specific condition is met. Example: void print(int now, int target){ if(now==target) return; cout<<now<<endl; print(now+1, target); } int main(){ print(1,11); return 0; } What if there’s no if condi...4 min read·learning-dsa.hashnode.dev
CChetan Datta·Aug 25, 2024Subsequence Patterns | Power Set | SubsetsPattern 1 - Find all Subsequences Given an integer array nums of unique elements, return all possible (link) subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order. Example 1: Input: nums = [1,2...3 min read·chetan77.hashnode.dev