CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of MergeSort
C#
public IList MergeSort(IList list)
{
    if (list.Count <= 1)
        return list;
 
    int mid = list.Count / 2;
 
    IList left = new ArrayList();
    IList right = new ArrayList();
by Robert.Eberhart   December 20, 2010 @ 10:30am
317 Views
no comments
 
C#
private LinkedList<Element>MergeSort(LinkedList<Element> linkedList, string sortType) {
    if (linkedList.Count <= 1){
        return linkedList;
    }
 
    LinkedList<Element> left, right, result;
 
    int middle = linkedList.Count / 2;
 
    left = ReturnLinkedListSegment(0, middle, linkedList);
by Robert.Eberhart   December 20, 2010 @ 6:53am
181 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate