A

Admin • 831K Points
Coach

Q. What is the time complexity of get() in HashMap in average case?

  • (A) O(log n)
  • (B) O(n)
  • (C) O(1)
  • (D) O(n log n)
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
In the average case, HashMap offers O(1) time for get() operations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.