What is meant by ordered and sorted in collections?



What is meant by ordered and sorted in collections?..

Answer / Ram Awadh Vishwakarma

Ordered collections maintain the order of elements, meaning that when an element is added or removed, the position of other elements remains unchanged. Sorted collections not only maintain the order but also ensure that all elements are arranged in a specific order, such as ascending or descending order based on their values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

For addition and deletion. Which one is most preferred: array list or linked list?

1 Answers  


What are different types of linked lists?

1 Answers  


What is adt in data structure?

1 Answers  


How many types of data structures are there?

1 Answers  


Explain Queue

1 Answers   Tech Mahindra,


How many types of data structures are used?

1 Answers  


How would you implement two stacks using a single array?

1 Answers   TCS,


What is impact of signed numbers on the memory?

1 Answers  


Which sorting is best in time complexity?

1 Answers  


Which is faster hashset or treeset?

1 Answers  


in tree construction which is the suitable efficient data structure? (Array, linked list, stack, queue)

1 Answers  


Can we store primitives in collections?

1 Answers  


Categories