0 votes
in DBMS by
What is the time complexity of basic operations get() and put() in HashMap class?

1 Answer

0 votes
by
The time complexity is O(1) assuming that the hash function used in the hash map distributes elements uniformly among the buckets

Related questions

0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
0 votes
0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
...