by aidanhs · 12y ago · 0 comments
I think it's interesting how choice of data structure affects algorithm characteristics.
For sure, if it doesn't make sense to use a linked list in the first place then linked list merge sort definitely doesn't make sense...
1. Yes, merge sort is exactly the kind of algorithm you'd use for sorting linked lists
2. No, sorting linked lists is not the primary application of merge sort