If i want to insert the data in these collection class “Dictionary”,”List” and “Sorted List” which will required the less time to perform the insertion? can you give give me a code to explain that process?
If i want to insert the data in these collection class Dictionary,List and Sorted
Share
Insert a value to LinkedList is O(1) operation. List (implemented by an array) may require additional allocation and copying of items.