What is the space used by programs when we use Hashmap in our program?
(A)
O(1)
(B)
O(LogN)
(C)
O(N)
(D)
None
Answer: (C)
Explanation:
The space used by the hashmap in the program is O(N), where N is the number of elements stored in the Hashmap.
So, option (C) is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Recommended Articles