interactive problems on dynamical programming