Home / Report Question

Q. Which collection guarantees O(1) time for insertion and lookup?
  • A. TreeSet
  • B. LinkedList
  • C. HashSet
  • D. ArrayList