• Feed
  • Discussions
subset

subset

#subset
0 followers·2 articles

subset

#subset·0 followers·2 articles
subset
Shadab Ali
Shadab Ali
leetcodesubsets.hashnode.dev·Feb 24, 2025
Feb 24, 2025

Finding All Subsets of an Array or String – The Power of Recursion

Understanding Subsets Given an array or string, the goal is to find all possible subsets (including the empty set). The total number of subsets for a set of size n is 2^n. Example: For the array {1,2,3}, the subsets are: {},{1},{2},{3},{1,2},{1,3},{2...

Discuss·2 reads
tips Subset
Vineeth Chivukula
Vineeth Chivukula
vineethchivukula.hashnode.dev·Jul 06, 2024
Jul 06, 2024

Solving Subsets

To see the question, click here. Naive Approach The idea is to generate all possible subsets of a given array nums using a backtracking approach. Initialize a result list to store all subsets and a temporary list temp to store the current subset bein...

Discuss·1 read
subset

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

How Diamante’s DPoS Differs from L1 Chains.

Patience Uyire·33 reads

Beyond Speculation: The Real-World Utility of AEON

Prochino·20 reads

From Community to Governance: AEON’s 2030 Roadmap

Prochino·13 reads

Top commenters this week

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior
Ariska Hidayat
Ariska Hidayat
Buy Old Gmail Accounts
Buy Old Gmail Accounts
Jenny Williams
Jenny Williams
Arjun Pandit
Arjun Pandit
Sonu Goswami
Sonu Goswami