What is the worst case complexity of accessing an element in ArrayList?
(a) O(n)
(b) O(1)
(c) O(nlogn)
(d) O(2)
This question was posed to me in a job interview.
This interesting question is from Data Structures-List in section java.util – The Collections Framework of Java