Skip to content
Advertisement

Tag: selection-sort

Selection sort with LinkedList in Java

I would like to implement selection sort using LinkedList in Java. I know how to do it with ArrayList, please don’t comment that I should use it instead. I am interested in demonstrating the advantages (fast insertion and removal) and disadvantages of linked lists compared to arrays. I know how to do this in C where I have pointers and

Advertisement