Linked List与Sorting Algorithm结合
<aside> 💡 tips:能不用“global” variable 就不用 “global” variable
java没有真正的“global” variable,这里是指field.
Count the length of LinkedList
find the index - k element of it
Merge two sorted LinkedList
Queue and Stack
<aside> 📌 SUMMARY:
</aside>
<aside> 📌 SUMMARY: LinkedList Reorder, MergeSort一定要记得断开中点和后一个元素。partition记得要curSmall.next = large; curLarge.next = null;
</aside>