Programming Languages Java Mcq
Sep 24, 2025

What is the time complexity of searching in HashMap?

Choose the correct answer:
A) O(1)
B) O(log n)
C) O(n)
D) O(n log n)
Detailed Explanation
HashMap provides O(1) average time complexity for search operations.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback