MediumJava CoreMultiple Choice

What is the time complexity of ArrayList.add(0, element)?

Tests your understanding of this concept.

Answer Options

AO(1)
BO(log n)
CO(n)
DO(n²)

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 20+ more Java Core questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Java Core topic (Programming Languages).

More Java Core Questions