Comment on What real life bad habits has programming given you?parentComments−paulgb17yGood point, but you answered your own question: the "walk then rest" algorithm will do it in linear time.−tjpick17ynull pointer on your drink-bottle instance results in fatal runtime exception.−paulgb17yPun intended?−tjpick17yda-da-chhhhh. you're quick ;)
Comments
Good point, but you answered your own question: the "walk then rest" algorithm will do it in linear time.
null pointer on your drink-bottle instance results in fatal runtime exception.
Pun intended?
da-da-chhhhh. you're quick ;)