EASY DYNAMIC PROGRAMMING -PROBLEM IN SETTING ARRAY LENGTH ,SUBSET SUM (COIN PROBLEM)

Hi,I am confused about assigning the length to the array when it is very large upto (10^12) in the following problem that is used as an example in TOPCODER TUTORIAL link text

The problem which have u attached,answer to that is very simple you just need to divide the number by 26 if it is totally divisible than output the quotient other wise output will be quotient+1.

1 Like