LinkedIn Python Skill Assessment Quiz Answers

What is the runtime of accessing a value in a dictionary by using its key?

Latest Update on 25th January, 2022 by Certification Course Answers

What is the runtime of accessing a value in a dictionary by using its key?

  1.  O(n), also called linear time.
  2.  O(log n), also called logarithmic time.
  3.  O(n^2), also called quadratic time.
  4.  O(1), also called constant time.

Correct Answer:

  •  O(1), also called constant time.

Latest Updates

No posts found in this category.