What is difference between list and set?



What is difference between list and set?..

Answer / Dheeraj Singh

The main difference between List and Set is their internal data structure. A List stores elements in a specific order, allowing duplicate elements, while a Set stores elements without any particular order and without duplicates.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is a height of a tree?

1 Answers  


Describe avl tree or height balanced binary search tree.

1 Answers  


Explain the types of linked lists.

1 Answers  


Reverse a linked list from the middle.

1 Answers   Aspiring Minds,


What is the best case complexity of quicksort?

1 Answers  


Does treemap sort automatically?

1 Answers  


What is doubly linked list in data structure?

1 Answers  


How do I sort a hashmap key?

1 Answers  


What is b tree in data structure?

1 Answers  


What is arrays copyof?

1 Answers  


What is Storage Structures and File Structures? Can you show their relation? What are the examples of each? Thanks

1 Answers  


What is circular queue in data structure?

1 Answers  


Categories