Author | Message |
---|---|
dtang9
Posts: 52
|
Posted 11:14 Dec 07, 2018 |
In Lecture 13, there is only pseudo code for MergeSort. Are we allowed to use the MergeSort code example found in the textbook? |
jhurley
Posts: 207
|
Posted 11:16 Dec 07, 2018 |
no, code it yourself based on the pseudocode |
dtang9
Posts: 52
|
Posted 10:36 Dec 08, 2018 |
For Lecture 13, in the merge method, how do I know if one of the already sorted sublists is exhausted? |
jhurley
Posts: 207
|
Posted 11:25 Dec 08, 2018 |
if you are taking items off one list and adding them to another, the first list is exhausted when there is nothing left in it. |