Suppose that we say:

Cons lst = append(x, y);
and that x has length n and y has length m.

What is the Big O of this statement?

  • A: O(n)
  • B: O(m)
  • C: O(n + m)
  • D: O(n) + O(m)
  • E: O(n2 + m2)

    Answer

    Contents    Page-10    Prev    Next    Page+10    Index