Updating minimum coins & decode numbers, both are complete.