You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*There are N students in a class, and their teacher wants to send a group of students for a competition. Assume there is no limit on the number of students that can be part of a group.
Now, given an array of size N denoting their roll no's, determine in how many ways the teacher can create a group out of those N students. For example, If N = 3 and rollNo[ ] = {1, 2, 3}, then in 7 of the following ways, the teacher can create a group: