Sorting is easy in arrays, there are multiple algorithms which can be used (even the non-comparison sorting algorithms like counting sort). To sort a lined list, we don’t have much optimized options.
I hope you, Enjoyed the differences and similarities..
1 Comment
why we can not use binary search in linked list even it is sorted,what is main reason behind this fact?