in reply to Re: problem while solving basic dynamic programming questionin thread problem while solving basic dynamic programming question