Dynamic ProgrammingI am just unable to get the hang of dp. I know what I've to do but am just unable to implement it. ...