dynamic programming: min num steps integer