Rolling
CodeChefOpen on judge ↗
You are given an array with $N$ elements. You have to make a set which contains size of all the subsets of the array whose sum is $S$. Let's denote this set by $H(S)$. Now, Let maxmz denote the number of unique elements in the set $H(S)$. Your task is to find the minimum and maximum value of maxmz and print the value $S$ for the given array. $S$ may have more than one value. Print the smalle
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start