Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: problem while solving basic dynamic programming question

by jo37 (Monk)
on Mar 15, 2020 at 08:17 UTC ( #11114284=note: print w/replies, xml ) Need Help??


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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11114284]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-06-05 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?