Weight Balance
CodeChefOpen on judge ↗
#Problem Statement: Given a list of weights of rocks , Find the number of combinations possible for number 'k' weights. Note: Assume we have infinite source of rocks **Constraints:** 1 < = n < = 100 1 < = arr[i] < = 1000000 **Task:** Debug only count() function **INPUT FORMAT:** First line contains an integer n representing number of elements in the array. Second
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