Can map contain duplicate keys?
Answer / Mange Ram
It depends on the programming language. In some languages like Python, JavaScript, and C++, maps (or dictionaries) can contain duplicate keys with multiple associated values. However, in other languages like Java and Swift, maps only allow unique keys.
| Is This Answer Correct ? | 0 Yes | 0 No |
in tree construction which is the suitable efficient data structure? (Array, linked list, stack, queue)
What is difference between list and linked list?
What is data and data types?
What is a hash index?
Why sorting is used?
On clicking a node in a tree, all the adjacent edges are turned on. Calculate min of clicks such that all the edges are turned on.
What is the difference between list, set and map?
Write code for reversing a linked list.
What is the use of treemap?
How many null values are allowed in a set?
What are the different types of data type?
What is stack in data structure with the example?