Assuming a good hash function and a constant average cost of resolving collisions, what is the expected time complexity of searching for a key in a hash table with n elements?
O(1)
O(log n)
O(n)
O(n^2)
Data Structures and Algorithms Übungen werden geladen ...