A

Admin • 825.56K Points
Coach

Q. What is the time complexity of accessing a value from a dictionary?

  • (A) O(n)
  • (B) O(log n)
  • (C) O(1)
  • (D) O(n log n)

Explanation by: Admin
Dictionaries in Python provide average-case O(1) time complexity for lookups.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.