Comment Comment by mindleyhilner Sorry to sound stupid, but how is that exponential? Isn't it O(mn) where m = number of floors and n = number of shafts?EDIT: Unless there's some dependence between m and n, like if taller buildings always need more shafts or something. parent mindleyhilner 9 years ago
EDIT: Unless there's some dependence between m and n, like if taller buildings always need more shafts or something.