Give yourself the competitive advantage you need with UTRGV online business programs. With several class start dates and affordable tuition, you can complete your business degree and be on your way to a more successful career in as few as 12 months.
As a result ArrayList is slower than LinkedList and the latter is preferred in case you need to perform insert and delete operations in the middle of a collection.LinkedList worked 200 times faster than ArrayList when 0.1 million elements were inserted at the start of the collection.
We are given 2 sorted linked lists and we had to merge them into one such that the final list is also a sorted one. Though in C#, we already have a LinkedList class under System.Collections.Generic namespace,its always good to build it from ground up since it helps in understanding fundamentals.. This linked list class has 2 nodes-head and current. Node head points to the beginning of list and current denotes the current node in the list chain. Also we had a public method Add() which adds a node to the end of the linked list. Now coming to the problem.