Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: problem while solving basic dynamic programming question

by jo37 (Deacon)
on Mar 15, 2020 at 08:17 UTC ( [id://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 (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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found