Reading Set Data Quiz
Question 1 of 100% Complete
What is the time complexity of checking if an element exists in a set using the 'in' operator?
O(n) - linear time
O(log n) - logarithmic time
O(1) - constant time (average)
O(n²) - quadratic time
What is the time complexity of checking if an element exists in a set using the 'in' operator?
O(n) - linear time
O(log n) - logarithmic time
O(1) - constant time (average)
O(n²) - quadratic time