3 ms·Good point, but you answered your own question: the "walk then rest" algorithm will do it in linear time.by paulgb 18y agoGood point, but you answered your own question: the "walk then rest" algorithm will do it in linear time.tjpick 18y agonull pointer on your drink-bottle instance results in fatal runtime exception.paulgb 18y agoPun intended?tjpick 18y agoda-da-chhhhh. you're quick ;)