Re:What real life bad habits has programming given you?
by Hexstream on Wednesday January 28, 2009 @02:18PM
(#454262)
Walking would be O(n^2) for all but the shortest distances actually, I think. Unless you rested once in a while. Amortized linear time?
[ Parent
| on HN ]
Re:What real life bad habits has programming given you?
by BeefingJection on Wednesday January 28, 2009 @03:34PM
(#454440)
How do you figure?
Re:What real life bad habits has programming given you?
by Hexstream on Wednesday January 28, 2009 @05:21PM
(#455298)
Does walking continuously for 1000km merely take 100 times longer/more effort than 10km?
Re:What real life bad habits has programming given you?
by paulgb on Wednesday January 28, 2009 @09:40PM
(#455669)
Good point, but you answered your own question: the "walk then rest" algorithm will do it in linear time.
Re:What real life bad habits has programming given you?
by tjpick on Wednesday January 28, 2009 @10:10PM
(#455718)
null pointer on your drink-bottle instance results in fatal runtime exception.