algo4: dp: gmin: Minimum hotel cost along journey