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 |
For addition and deletion. Which one is most preferred: array list or linked list?
What are different types of linked lists?
What is adt in data structure?
How many types of data structures are there?
Explain Queue
How many types of data structures are used?
How would you implement two stacks using a single array?
What is impact of signed numbers on the memory?
Which sorting is best in time complexity?
Which is faster hashset or treeset?
in tree construction which is the suitable efficient data structure? (Array, linked list, stack, queue)
Can we store primitives in collections?