Question: JAVA: Can someone write and draw a singly linkedlist for shellsort. Implement a shell sort using Knuths increment sequence: 1, 4, 13,....(3k 1)/2: it should
JAVA: Can someone write and draw a singly linkedlist for shellsort.
Implement a shell sort using Knuths increment sequence: 1, 4, 13,....(3k 1)/2: it should take as input a link to the beginning of a list, and should rearrange the nodes of the list so that they are in sorted order. list is N of random number, but lets use this as example:
[20] -> [5] -> [1] -> [50] -> [7] - > [2] -> [8] - [44] -> [68] -> [22]
Please use
node
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
