in reply to problem while solving basic dynamic programming question

You describe the output for a single number as input, but your program reads two numbers from <>. The intention is not clear to me.

Don't know if this is related to your problem.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Replies are listed 'Best First'.
Re^2: problem while solving basic dynamic programming question
by haukex (Archbishop) on Mar 15, 2020 at 13:51 UTC
    your program reads two numbers from <>. The intention is not clear to me.

    It's pretty common on sites like HackerRank etc. to have the solutions first read in the number of test cases, and then read in each test case.