Files
java-interview-lab/merge-sort/output/09-linked-list.txt
T

12 lines
395 B
Plaintext

Merge sort on a singly linked list
==================================
before 38 -> 27 -> 43 -> 3 -> 9 -> 82 -> 10 -> null
after 3 -> 9 -> 10 -> 27 -> 38 -> 43 -> 82 -> null
same 7 node objects, relinked: true
1,000,000 random values: top-down and bottom-up both match Arrays.sort
split written with fast = head (instead of head.next), input 2 -> 1 -> null:
java.lang.StackOverflowError