Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.8K+ articles
DSA
20.1K+ articles
Misc
8.2K+ articles
Mathematical
7.5K+ articles
Arrays
5.9K+ articles
Competitive Programming
3.0K+ articles
Greedy
2.0K+ articles
Sorting
1.6K+ articles
Dynamic Programming
1.5K+ articles
Bit Magic
1.1K+ articles
subset
216+ posts
Recent Articles
Popular Articles
Find all unique subsets of a given set using C++ STL
Last Updated: 26 September 2022
Given an array arr[] of integers of size N that might contain duplicates, the task is to find all possible unique subsets, using C++ STL.Note: Each subset should be sorted...
read more
Combinatorial
DSA
Arrays
subset
STL
cpp-set
Count of Subsets with given Difference
Last Updated: 11 July 2024
Given an array arr[] of size N and a given difference diff, the task is to count the number of partitions that we can perform such that the difference between the sum of t...
read more
DSA
subset
Find all Unique Subsets of a given Set
Last Updated: 19 March 2024
Given an array A[] of positive integers, print all the unique non-empty subsets of the array Note: The set can not contain duplicate elements, so any repeated subset shoul...
read more
Bit Magic
Backtracking
Recursion
Picked
DSA
Arrays
subset
Maximum Partitions such that any two numbers from two Subsets are co-prime
Last Updated: 21 December 2022
Given an array arr[] of length N, the task is to find the maximum number of subsets that can be obtained from the given array such that the GCD of every a and b that belon...
read more
DSA
subset
partition
Split Array into maximum Subsets with same bitwise AND
Last Updated: 29 November 2022
Given an array arr[] of size N, the task is to find the maximum number of subsets the array can be split such that the bitwise AND of the subsets is the same.Examples:Inpu...
read more
Misc
Recursion
DSA
Arrays
subset
Bitwise-AND
Find maximum sum of Subset which is multiple of M and XOR is 0
Last Updated: 17 January 2023
Given an array arr[] of size N, the task is to find the maximum sum of a subset of the array such that the sum is divisible by M and the Xor of the subsequence is 0.Exampl...
read more
Dynamic Programming
Technical Scripter
Technical Scripter 2022
DSA
Arrays
subset
Bitwise-XOR
Maximize the function by choosing Subsequence of size M
Last Updated: 06 January 2024
Given an array A[] with size N, Select a subsequence B = {B[1], B[2], B[3], .........B[N] } of size M from given array A[] (N ? M), the task is to find the maximum value o...
read more
Dynamic Programming
Technical Scripter
Technical Scripter 2022
DSA
Arrays
subset
subsequence
Number of ways whose sum is greater than or equal to K
Last Updated: 24 March 2023
Given an array, arr[], and an integer K, the task is to find the total number of ways in which we can divide the array into two groups such that the sum of each group is g...
read more
Dynamic Programming
Recursion
DSA
subset
Minimum Subset sum difference problem with Subset partitioning
Last Updated: 29 November 2023
Given a set of N integers with up to 40 elements, the task is to partition the set into two subsets of equal size (or the closest possible), such that the difference betwe...
read more
Searching
DSA
Arrays
subset
Arrays
Counting Subsets with prime product property
Last Updated: 17 August 2023
Given an array arr[] of size N. The task is to find a number of subsets whose product can be represented as a product of one or more distinct prime numbers. Modify your an...
read more
Dynamic Programming
DSA
Arrays
subset
Minimum size of subset od String with frequency more than half of Array
Last Updated: 12 May 2024
Given an Array of Strings (Arr), the task is to find the smallest subset of strings in the array such that the total count of those selected strings exceeds 50% of the siz...
read more
Strings
DSA
subset
frequency-counting
MindTickle
Subarrays, Subsequences, and Subsets in Array
Last Updated: 15 January 2024
What is a Subarray?A subarray is a contiguous part of array, i.e., Subarray is an array that is inside another array.In general, for an array of size n, there are n*(n+1)/...
read more
DSA
Arrays
subset
subsequence
subarray
Filter rows based on text patterns using R
Last Updated: 12 April 2024
In this article, we will explore various methods to filter rows based on text patterns by using the R Programming Language. How do we filter the rows based on text patter...
read more
Picked
R Language
subset
Subarray, Subsequence and Subsets in Python
Last Updated: 30 April 2025
Algorithms and data manipulation are areas where it is important to grasp the ideas behind subarrays, subsequences as well as subsets. This article introduces the concepts...
read more
Picked
DSA
Arrays
subset
subsequence
subarray
python
Subset vs Subsequence
Last Updated: 29 November 2024
Understanding the concepts of subsets and subsequences is essential in mathematics and computer science. Although they may seem similar at first glance, there are key diff...
read more
Mathematics
subset
subsequence
1
2
3
4
...
15
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !