Junior
What is the time complexity of the operation of iterating over all elements of a list?
sobes.tech AI
Answer from AI
O(n), where n is the number of elements in the list. Each element must be visited once.
sobes.tech AI
Answer from AI
O(n), where n is the number of elements in the list. Each element must be visited once.