Data Structures & AlgorithmsModerateProduct Company SDE · complexity

Problem: What does the term 'amortised analysis' mean?

  1. A. The average cost per operation over a worst-case sequence of operations
  2. B. The cost of a single operation in the best case
  3. C. The expected cost over random inputs
  4. D. The cost in memory

Correct answer: A. The average cost per operation over a worst-case sequence of operations

Amortised bounds average the cost over a sequence, so occasional expensive operations are paid for by cheap ones.

More Coding Interview Problems questions

Exams that ask this topic