Variable Sized Arrays

  • + 1 comment

    Big O notation dictates an upper bound not a case by case runtime. In addition Big O dictates that O(n) is equivalent to O(2n) and O(n + m) is equivalent to O(2n) where n = m. Therefore by the transitive property O(n + m) is equivalent to O(n). But it is really irrelevant, I get the point you are trying to make :)