minimum path to sum, and some google code challenge problem with predicting integers