Open In App

ISRO | ISRO CS 2017 | Question 50

Like Article
Like
Save
Share
Report

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


Last Updated : 14 Nov, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads