We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Can someone help me to understand this question , because it is not at all clear to me , that what is required , and how shall i start coding this one ?
and are all these 6 numbers as input ? or what is the exact i/p
3
1 2 3
1 6
and how 22 is coming as output ( is this that the max number in input is 6 , so wee need to make Permutation and Combination which makes out sume as 6 , and there are 22 possible ways in which sum is coming as 6 , given on the inputs we have ?
(note: making this code on Java 7)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Counting the Ways
You are viewing a single comment's thread. Return to all comments →
Can someone help me to understand this question , because it is not at all clear to me , that what is required , and how shall i start coding this one ? and are all these 6 numbers as input ? or what is the exact i/p 3 1 2 3 1 6
and how 22 is coming as output ( is this that the max number in input is 6 , so wee need to make Permutation and Combination which makes out sume as 6 , and there are 22 possible ways in which sum is coming as 6 , given on the inputs we have ?
(note: making this code on Java 7)