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

dynamic-programming

#1

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


#2

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.